Use same things as in prog mode, in the text-mode
This commit is contained in:
parent
33741be3e6
commit
b9e1581440
2 changed files with 6 additions and 0 deletions
|
|
@ -6,6 +6,7 @@
|
|||
;;; Show trailing whitespace and remove whitespace on save
|
||||
(require 'whitespace)
|
||||
(add-hook 'prog-mode-hook 'whitespace-mode)
|
||||
(add-hook 'text-mode-hook 'whitespace-mode)
|
||||
(setq whitespace-style '(face trailing empty))
|
||||
|
||||
;;; Cleanup whitespace on save
|
||||
|
|
@ -22,9 +23,11 @@
|
|||
|
||||
;;; Rainbow parenthesis
|
||||
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
|
||||
(add-hook 'text-mode-hook 'rainbow-delimiters-mode)
|
||||
|
||||
;;; Show hex colors as colors
|
||||
(add-hook 'prog-mode-hook 'rainbow-mode)
|
||||
(add-hook 'text-mode-hook 'rainbow-mode)
|
||||
|
||||
;;; When pasting/writing over a selection, replace it.
|
||||
(delete-selection-mode 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue