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))
|
(define-key agw-mode-map (kbd (concat "C-<tab> " key)) def))
|
||||||
|
|
||||||
(defun agw-prog-mode ()
|
(defun agw-prog-mode ()
|
||||||
"Sets up `prog-mode'."
|
"Sets up `prog-mode' and `text-mode'."
|
||||||
(setq-local tab-always-indent nil
|
(setq-local tab-always-indent nil
|
||||||
tab-width 3
|
tab-width 3
|
||||||
standard-indent 3
|
standard-indent 3
|
||||||
|
|
|
@ -52,6 +52,11 @@
|
||||||
(add-hook 'prog-mode-hook #'subword-mode)
|
(add-hook 'prog-mode-hook #'subword-mode)
|
||||||
(add-hook 'prog-mode-hook #'agw-prog-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'
|
;; `hack-local-variables'
|
||||||
(add-hook 'hack-local-variables-hook #'agw-after-local-vars)
|
(add-hook 'hack-local-variables-hook #'agw-after-local-vars)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue