From 66bd497d8c5f9a7acab4ed2074f200d7d9e8b0f6 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 29 May 2021 14:31:44 -0400 Subject: [PATCH] Visual line mode disabled by default Having it enabled by default was causing more of a hassle than it was worth. --- config.org | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/config.org b/config.org index 7cda77f..d0d5970 100644 --- a/config.org +++ b/config.org @@ -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 -- 2.39.2