Move auto-fill-mode to text-mode-hook

This commit is contained in:
Henrik Lissner 2019-10-14 18:25:02 -04:00
parent 3a89c3f79d
commit 51973dca9b
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 3 additions and 4 deletions

View file

@ -97,6 +97,9 @@ possible."
require-final-newline t
tabify-regexp "^\t* [ \t]+") ; for :retab
;; Favor hard-wrapping in text modes
(add-hook 'text-mode-hook #'auto-fill-mode)
;;
;;; Clipboard / kill-ring

View file

@ -38,9 +38,6 @@ capture, the end position, and the output buffer.")
(set-lookup-handlers! '(markdown-mode gfm-mode)
:file #'markdown-follow-thing-at-point)
;; Enable hard-wrapping. By convention, Doom does this for all textual modes.
(add-hook 'markdown-mode-hook #'auto-fill-mode)
;; Prevent mis-fontification of YAML metadata blocks in `markdown-mode' which
;; occurs when the first line contains a colon in it. See
;; https://github.com/jrblevin/markdown-mode/issues/328.

View file

@ -845,7 +845,6 @@ compelling reason, so..."
(add-hook! 'org-mode-hook
#'org-bullets-mode ; "prettier" bullets
#'toc-org-enable ; auto-table of contents
#'auto-fill-mode ; hard line wrapping
;; `show-paren-mode' causes flickering with indentation margins made by
;; `org-indent-mode', so we turn off show-paren-mode altogether
#'doom-disable-show-paren-mode-h