From: Armaan Bhojwani Date: Thu, 1 Jul 2021 00:16:41 +0000 (-0400) Subject: Alphabetize dolists X-Git-Url: https://git.armaanb.net/?p=config.org.git;a=commitdiff_plain;h=605ec3175e64da372ad1417372d9e36624fff855 Alphabetize dolists --- diff --git a/config.org b/config.org index 59fef7a..562a12a 100644 --- a/config.org +++ b/config.org @@ -139,16 +139,20 @@ Highlight whitespace and other bad text practices. ** Visual line mode Soft wrap words and do operations by visual lines in some modes. #+begin_src emacs-lisp - (dolist (hook '(text-mode-hook - org-mode-hook + (dolist (hook '( markdown-mode-hook - mu4e-view-mode-hook)) + mu4e-view-mode-hook + org-mode-hook + text-mode-hook + )) (add-hook hook (lambda () (visual-line-mode 1)))) #+end_src ** Auto fill mode #+begin_src emacs-lisp - (dolist (hook '(scdoc-mode-hook - mu4e-compose-mode-hook)) + (dolist (hook '( + mu4e-compose-mode-hook + scdoc-mode-hook + )) (add-hook hook (lambda () (auto-fill-mode 1)))) #+end_src ** Display number of matches in search @@ -728,9 +732,11 @@ Style is basically ddevault's style guide but with 4 spaces instead of 8 char ta ** Spell checking Spell check in text mode, and in prog-mode comments. #+begin_src emacs-lisp - (dolist (hook '(text-mode-hook + (dolist (hook '( markdown-mode-hook - scdoc-mode-hook)) + scdoc-mode-hook + text-mode-hook + )) (add-hook hook (lambda () (flyspell-mode)))) (dolist (hook '(change-log-mode-hook log-edit-mode-hook)) (add-hook hook (lambda () (flyspell-mode -1))))