commit 60d443c448fc3163e88c132b1178af317269dbe9
parent c55a31050895f5bdbb45293657b6c246f49447eb
Author: Alex Balgavy <alex@balgavy.eu>
Date: Wed, 30 Jun 2021 20:27:22 +0200
emacs: don't auto-format text in markdown
Diffstat:
1 file changed, 7 insertions(+), 0 deletions(-)
diff --git a/emacs/config.org b/emacs/config.org
@@ -260,6 +260,13 @@
#+begin_src emacs-lisp
(add-hook 'before-save-hook 'delete-trailing-whitespace)
#+end_src
+** Auto-formatting
+ Disable fill mode in Markdown
+
+ #+begin_src elisp
+ (add-hook 'markdown-mode-hook (lambda () (auto-fill-mode 0) (flyspell-mode 1)))
+ #+end_src
+
* Misc settings
** Enable all commands
By default, Emacs disables some commands.