emacs: add hooks for text-mode

master
an 2020-03-20 23:24:06 -04:00
parent 5d9990eb9e
commit 8e2b1bb7bb
2 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,7 @@
(define-key agw-mode-map (kbd (concat "C-<tab> " key)) def))
(defun agw-prog-mode ()
"Sets up `prog-mode'."
"Sets up `prog-mode' and `text-mode'."
(setq-local tab-always-indent nil
tab-width 3
standard-indent 3

View File

@ -52,6 +52,11 @@
(add-hook 'prog-mode-hook #'subword-mode)
(add-hook 'prog-mode-hook #'agw-prog-mode)
;; `text-mode'
(add-hook 'text-mode-hook #'flyspell-prog-mode)
(add-hook 'text-mode-hook #'subword-mode)
(add-hook 'text-mode-hook #'agw-prog-mode)
;; `hack-local-variables'
(add-hook 'hack-local-variables-hook #'agw-after-local-vars)