diff --git a/emacs/data.el b/emacs/data.el index a763d0d..3926dc0 100644 --- a/emacs/data.el +++ b/emacs/data.el @@ -16,7 +16,7 @@ (define-key agw-mode-map (kbd (concat "C- " 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 diff --git a/emacs/init.el b/emacs/init.el index 2f82453..af62878 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -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)