Move auto-fill-mode to text-mode-hook
This commit is contained in:
parent
3a89c3f79d
commit
51973dca9b
3 changed files with 3 additions and 4 deletions
|
@ -97,6 +97,9 @@ possible."
|
||||||
require-final-newline t
|
require-final-newline t
|
||||||
tabify-regexp "^\t* [ \t]+") ; for :retab
|
tabify-regexp "^\t* [ \t]+") ; for :retab
|
||||||
|
|
||||||
|
;; Favor hard-wrapping in text modes
|
||||||
|
(add-hook 'text-mode-hook #'auto-fill-mode)
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
;;; Clipboard / kill-ring
|
;;; Clipboard / kill-ring
|
||||||
|
|
|
@ -38,9 +38,6 @@ capture, the end position, and the output buffer.")
|
||||||
(set-lookup-handlers! '(markdown-mode gfm-mode)
|
(set-lookup-handlers! '(markdown-mode gfm-mode)
|
||||||
:file #'markdown-follow-thing-at-point)
|
: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
|
;; Prevent mis-fontification of YAML metadata blocks in `markdown-mode' which
|
||||||
;; occurs when the first line contains a colon in it. See
|
;; occurs when the first line contains a colon in it. See
|
||||||
;; https://github.com/jrblevin/markdown-mode/issues/328.
|
;; https://github.com/jrblevin/markdown-mode/issues/328.
|
||||||
|
|
|
@ -845,7 +845,6 @@ compelling reason, so..."
|
||||||
(add-hook! 'org-mode-hook
|
(add-hook! 'org-mode-hook
|
||||||
#'org-bullets-mode ; "prettier" bullets
|
#'org-bullets-mode ; "prettier" bullets
|
||||||
#'toc-org-enable ; auto-table of contents
|
#'toc-org-enable ; auto-table of contents
|
||||||
#'auto-fill-mode ; hard line wrapping
|
|
||||||
;; `show-paren-mode' causes flickering with indentation margins made by
|
;; `show-paren-mode' causes flickering with indentation margins made by
|
||||||
;; `org-indent-mode', so we turn off show-paren-mode altogether
|
;; `org-indent-mode', so we turn off show-paren-mode altogether
|
||||||
#'doom-disable-show-paren-mode-h
|
#'doom-disable-show-paren-mode-h
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue