Highlight-numbers on every prog-mode
This commit is contained in:
parent
a07126f611
commit
90d09e6f93
6 changed files with 3 additions and 7 deletions
|
@ -736,6 +736,7 @@ windows, switch to `doom-fallback-buffer'. Otherwise, delegate to original
|
||||||
(run-hook-wrapped 'doom-init-ui-hook #'doom-try-run-hook))
|
(run-hook-wrapped 'doom-init-ui-hook #'doom-try-run-hook))
|
||||||
|
|
||||||
(add-hook 'doom-post-init-hook #'doom|init-ui)
|
(add-hook 'doom-post-init-hook #'doom|init-ui)
|
||||||
|
(add-hook 'prog-mode-hook #'highlight-numbers-mode)
|
||||||
|
|
||||||
(provide 'core-ui)
|
(provide 'core-ui)
|
||||||
;;; core-ui.el ends here
|
;;; core-ui.el ends here
|
||||||
|
|
|
@ -79,8 +79,7 @@ compilation database is present in the project.")
|
||||||
;;; Better fontification (also see `modern-cpp-font-lock')
|
;;; Better fontification (also see `modern-cpp-font-lock')
|
||||||
(add-hook 'c-mode-common-hook #'rainbow-delimiters-mode)
|
(add-hook 'c-mode-common-hook #'rainbow-delimiters-mode)
|
||||||
(add-hook! '(c-mode-hook c++-mode-hook)
|
(add-hook! '(c-mode-hook c++-mode-hook)
|
||||||
#'(highlight-numbers-mode
|
#'(+cc|fontify-constants))
|
||||||
+cc|fontify-constants))
|
|
||||||
|
|
||||||
;; Custom style, based off of linux
|
;; Custom style, based off of linux
|
||||||
(unless (assoc "doom" c-style-alist)
|
(unless (assoc "doom" c-style-alist)
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
#'(;; 3rd-party functionality
|
#'(;; 3rd-party functionality
|
||||||
auto-compile-on-save-mode doom|enable-delete-trailing-whitespace
|
auto-compile-on-save-mode doom|enable-delete-trailing-whitespace
|
||||||
;; fontification
|
;; fontification
|
||||||
rainbow-delimiters-mode highlight-quoted-mode highlight-numbers-mode +emacs-lisp|extra-fontification
|
rainbow-delimiters-mode highlight-quoted-mode +emacs-lisp|extra-fontification
|
||||||
;; initialization
|
;; initialization
|
||||||
+emacs-lisp|init-imenu +emacs-lisp|disable-flycheck-maybe))
|
+emacs-lisp|init-imenu +emacs-lisp|disable-flycheck-maybe))
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@ is loaded.")
|
||||||
python-indent-guess-indent-offset-verbose nil
|
python-indent-guess-indent-offset-verbose nil
|
||||||
python-shell-interpreter "python")
|
python-shell-interpreter "python")
|
||||||
:config
|
:config
|
||||||
(add-hook 'python-mode-hook #'highlight-numbers-mode)
|
|
||||||
|
|
||||||
(set-env! "PYTHONPATH" "PYENV_ROOT")
|
(set-env! "PYTHONPATH" "PYENV_ROOT")
|
||||||
(set-electric! 'python-mode :chars '(?:))
|
(set-electric! 'python-mode :chars '(?:))
|
||||||
(set-repl-handler! 'python-mode #'+python/repl)
|
(set-repl-handler! 'python-mode #'+python/repl)
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
:mode ("\\.zunit\\'" . sh-mode)
|
:mode ("\\.zunit\\'" . sh-mode)
|
||||||
:mode ("/bspwmrc\\'" . sh-mode)
|
:mode ("/bspwmrc\\'" . sh-mode)
|
||||||
:config
|
:config
|
||||||
(add-hook 'sh-mode-hook #'highlight-numbers-mode)
|
|
||||||
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
(set-electric! 'sh-mode :words '("else" "elif" "fi" "done" "then" "do" "esac" ";;"))
|
||||||
(set-repl-handler! 'sh-mode #'+sh/repl)
|
(set-repl-handler! 'sh-mode #'+sh/repl)
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@
|
||||||
(add-hook! (css-mode sass-mode stylus-mode)
|
(add-hook! (css-mode sass-mode stylus-mode)
|
||||||
#'(yas-minor-mode-on
|
#'(yas-minor-mode-on
|
||||||
flycheck-mode
|
flycheck-mode
|
||||||
highlight-numbers-mode
|
|
||||||
rainbow-mode))
|
rainbow-mode))
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue