]> git.armaanb.net Git - config.org.git/commitdiff
Visual line mode disabled by default
authorArmaan Bhojwani <me@armaanb.net>
Sat, 29 May 2021 18:31:44 +0000 (14:31 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Sat, 29 May 2021 18:32:03 +0000 (14:32 -0400)
Having it enabled by default was causing more of a hassle than it was
worth.

config.org

index 7cda77f377082886ab477b5bc2f9c3f6e7402e2b..d0d5970bb73256c5c2fc333e55b443994a66ca68 100644 (file)
@@ -131,13 +131,12 @@ Show a ruler at a certain number of chars depending on mode.
   (blink-cursor-mode)
 #+end_src
 ** Visual line mode
-Soft wrap words and do operations by visual lines except in programming modes.
+Soft wrap words and do operations by visual lines in some modes.
 #+begin_src emacs-lisp
-  (global-visual-line-mode 1)
-  (dolist (hook '(prog-mode-hook
-                  calc-trail-mode-hook
-                  org-agenda-mode-hook
-                  mu4e-headers-mode-hook))
+  (dolist (hook '(text-mode-hook
+                  org-mode-hook
+                  markdown-mode-hook
+                  mu4e-view-mode-hook))
     (add-hook hook (lambda () (visual-line-mode -1))))
 #+end_src
 ** Display number of matches in search
@@ -298,9 +297,6 @@ Use elfeed for reading RSS. I have another file with all the feeds in it that I'
     :bind (("C-c e" . elfeed))
     :config
     (load "~/.emacs.d/feeds.el")
-    (add-hook 'elfeed-new-entry-hook
-              (elfeed-make-tagger :feed-url "youtube\\.com"
-                                  :add '(youtube)))
     :bind (:map elfeed-search-mode-map ("C-c C-o" . 'elfeed-show-visit)))
 
   (use-package elfeed-goodies
@@ -372,7 +368,6 @@ Contexts are a not very well known feature of mu4e that makes it super easy to m
                          :key ?b))
     :hook ((mu4e-compose-mode . flyspell-mode)
            (mu4e-compose-mode . auto-fill-mode)
-           (mu4e-view-mode-hook . turn-on-visual-line-mode)
            (message-send-hook . (lambda () (unless (yes-or-no-p "Ya sure 'bout that?")
                                              (signal 'quit nil))))))
 #+end_src