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
|
;;; Show trailing whitespace and remove whitespace on save
|
||||||
(require 'whitespace)
|
(require 'whitespace)
|
||||||
(add-hook 'prog-mode-hook 'whitespace-mode)
|
(add-hook 'prog-mode-hook 'whitespace-mode)
|
||||||
|
(add-hook 'text-mode-hook 'whitespace-mode)
|
||||||
(setq whitespace-style '(face trailing empty))
|
(setq whitespace-style '(face trailing empty))
|
||||||
|
|
||||||
;;; Cleanup whitespace on save
|
;;; Cleanup whitespace on save
|
||||||
|
|
@ -22,9 +23,11 @@
|
||||||
|
|
||||||
;;; Rainbow parenthesis
|
;;; Rainbow parenthesis
|
||||||
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
|
(add-hook 'prog-mode-hook 'rainbow-delimiters-mode)
|
||||||
|
(add-hook 'text-mode-hook 'rainbow-delimiters-mode)
|
||||||
|
|
||||||
;;; Show hex colors as colors
|
;;; Show hex colors as colors
|
||||||
(add-hook 'prog-mode-hook 'rainbow-mode)
|
(add-hook 'prog-mode-hook 'rainbow-mode)
|
||||||
|
(add-hook 'text-mode-hook 'rainbow-mode)
|
||||||
|
|
||||||
;;; When pasting/writing over a selection, replace it.
|
;;; When pasting/writing over a selection, replace it.
|
||||||
(delete-selection-mode 1)
|
(delete-selection-mode 1)
|
||||||
|
|
|
||||||
|
|
@ -40,3 +40,6 @@
|
||||||
;;; Yasnippet configuration
|
;;; Yasnippet configuration
|
||||||
(define-key prog-mode-map (kbd "C-c y") 'company-yasnippet)
|
(define-key prog-mode-map (kbd "C-c y") 'company-yasnippet)
|
||||||
(define-key prog-mode-map (kbd "<f13>") 'company-yasnippet)
|
(define-key prog-mode-map (kbd "<f13>") 'company-yasnippet)
|
||||||
|
|
||||||
|
(define-key text-mode-map (kbd "C-c y") 'company-yasnippet)
|
||||||
|
(define-key text-mode-map (kbd "<f13>") 'company-yasnippet)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue