emacs: add hooks for text-mode
parent
5d9990eb9e
commit
8e2b1bb7bb
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue