ADD fci and auto-fill to markdown mode

This commit is contained in:
Nathan Dwarshuis 2019-12-06 13:02:44 -05:00
parent 9d58f8d78e
commit 64fbaf7f86
1 changed files with 3 additions and 1 deletions

View File

@ -1029,7 +1029,8 @@ Make font sizes smaller and less intrusive for headers
#+BEGIN_SRC emacs-lisp
(use-package markdown-mode
:straight t
:hook (markdown-mode . outline-minor-mode))
:hook ((markdown-mode . outline-minor-mode)
(markdown-mode . fci-mode)))
(add-hook 'markdown-mode-hook
(lambda ()
@ -1040,6 +1041,7 @@ Make font sizes smaller and less intrusive for headers
(set-face-attribute 'markdown-header-face-4 nil :weight 'normal :height heading-height)
(set-face-attribute 'markdown-header-face-5 nil :weight 'normal :height heading-height))))
(add-hook 'markdown-mode-hook #'nd/turn-on-auto-fill-maybe)
#+END_SRC
*** R-markdown
R-markdown is enabled via polymode, which allows multiple modes in one buffer (this is actually as crazy as it sounds). In this case, the modes are yaml, R, markdown, and others. Installing =poly-R= will pull in all required dependencies.