|
@ -395,9 +395,14 @@ Highlight whitespaces, tabs, empty lines. |
|
|
(use-package whitespace |
|
|
(use-package whitespace |
|
|
:demand t |
|
|
:demand t |
|
|
:ensure nil |
|
|
:ensure nil |
|
|
:hook |
|
|
|
|
|
((prog-mode . whitespace-turn-on) |
|
|
|
|
|
(text-mode . whitespace-turn-on)) |
|
|
|
|
|
|
|
|
:init |
|
|
|
|
|
(dolist (hook '(prog-mode-hook |
|
|
|
|
|
text-mode-hook |
|
|
|
|
|
conf-mode-hook)) |
|
|
|
|
|
(add-hook hook #'whitespace-mode)) |
|
|
|
|
|
;; :hook ;;not working in use-package 2.3 |
|
|
|
|
|
;; ((prog-mode . whitespace-turn-on) |
|
|
|
|
|
;; (text-mode . whitespace-turn-on)) |
|
|
:config |
|
|
:config |
|
|
(setq-default whitespace-style '(face empty tab trailing)) |
|
|
(setq-default whitespace-style '(face empty tab trailing)) |
|
|
) |
|
|
) |
|
@ -416,7 +421,10 @@ Disable Eldoc, it interferes with flycheck |
|
|
Colorize colors as text with their value |
|
|
Colorize colors as text with their value |
|
|
#+begin_src emacs-lisp |
|
|
#+begin_src emacs-lisp |
|
|
(use-package rainbow-mode |
|
|
(use-package rainbow-mode |
|
|
:hook prog-mode |
|
|
|
|
|
|
|
|
:ensure t |
|
|
|
|
|
:init |
|
|
|
|
|
(add-hook 'prog-mode-hook 'rainbow-mode t) |
|
|
|
|
|
;; :hook prog-mode ;; not working in use-package 2.3 |
|
|
:config |
|
|
:config |
|
|
(setq-default rainbow-x-colors-major-mode-list '()) |
|
|
(setq-default rainbow-x-colors-major-mode-list '()) |
|
|
) |
|
|
) |
|
|