Diminish and re-enable global-visual-line-mode

This commit is contained in:
Evie Litherland-Smith 2024-01-11 14:59:56 +00:00
parent 91db76b200
commit 5a142466db

View file

@ -198,11 +198,9 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1))) (add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))
(use-package word-wrap-mode (with-eval-after-load 'diminish
:ensure t (diminish 'visual-line-mode))
:diminish (global-visual-line-mode +1)
:init
(global-word-wrap-whitespace-mode +1))
(use-package which-key (use-package which-key
:ensure t :ensure t
@ -389,8 +387,8 @@ Loading this file is handled automatically on my [[https://git.xenia.me.uk/xenia
:ensure t :ensure t
:diminish :diminish
:init :init
(add-hook 'magit-pre-refresh-hook 'diff-hl-magit-pre-refresh) (add-hook 'magit-pre-refresh-hook #'diff-hl-magit-pre-refresh)
(add-hook 'magit-post-refresh-hook 'diff-hl-magit-post-refresh) (add-hook 'magit-post-refresh-hook #'diff-hl-magit-post-refresh)
:config :config
(global-diff-hl-mode) (global-diff-hl-mode)
:custom :custom
@ -1043,7 +1041,8 @@ Set fill column to 88 and enable display in python buffers
:map mu4e-view-mode-map :map mu4e-view-mode-map
("o n" . mu4e-org-store-and-capture)) ("o n" . mu4e-org-store-and-capture))
:custom :custom
(add-hook 'mu4e-compose-mode-hook #'(lambda () (auto-save-mode -1))) ; Don't auto-save to drafts (add-hook 'mu4e-compose-mode-hook (lambda () (auto-save-mode -1))) ; Don't auto-save to drafts
(add-hook 'mu4e-headers-mode-hook (lambda () (visual-line-mode -1))) ; Disable visual-line / word wrapping in mu4e headers
(mu4e-completing-read-function #'completing-read-default) (mu4e-completing-read-function #'completing-read-default)
(mu4e-split-view 'vertical) (mu4e-split-view 'vertical)
(mu4e-attachment-dir "~/Downloads") (mu4e-attachment-dir "~/Downloads")