summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-19 16:16:19 -0500
committerCase Duckworth2021-04-19 16:16:19 -0500
commite035d7a3781c5ba213d525fcac901b710ff3c9d6 (patch)
treea2d5b1a5acf0a642a3a83a554f651928b4c39a5f
parentHandle cases where ~/.emacs/pkg doesn't exist (diff)
downloademacs-e035d7a3781c5ba213d525fcac901b710ff3c9d6.tar.gz
emacs-e035d7a3781c5ba213d525fcac901b710ff3c9d6.zip
Make `visual-line-mode' and `olivetti-mode' prettier
-rw-r--r--init.el13
1 files changed, 12 insertions, 1 deletions
diff --git a/init.el b/init.el index 25e0055..6f97e02 100644 --- a/init.el +++ b/init.el
@@ -90,6 +90,11 @@
90 (global-display-fill-column-indicator-mode +1) 90 (global-display-fill-column-indicator-mode +1)
91 (global-so-long-mode +1) 91 (global-so-long-mode +1)
92 92
93 (add-hook 'visual-line-mode-hook
94 (defun acdw/disable-fill-column-indicator ()
95 (display-fill-column-indicator-mode
96 (if visual-line-mode -1 +1))))
97
93 ;; Whitespace 98 ;; Whitespace
94 (:option whitespace-style 99 (:option whitespace-style
95 '(empty indentation space-before-tab space-after-tab) 100 '(empty indentation space-before-tab space-after-tab)
@@ -723,7 +728,13 @@ if ripgrep is installed, otherwise `consult-grep'."
723 728
724(setup (:straight olivetti) 729(setup (:straight olivetti)
725 (:option olivetti-body-width (+ fill-column 4) 730 (:option olivetti-body-width (+ fill-column 4)
726 olivetti-minimum-body-width fill-column)) 731 olivetti-minimum-body-width fill-column)
732 (add-hook 'olivetti-mode-hook
733 (defun acdw/olivetti-mode-hook ()
734 (if olivetti-mode
735 (setq-local indicate-empty-lines nil
736 indicate-buffer-boundaries nil)
737 (acdw/setup-regular-modes)))))
727 738
728(setup (:straight form-feed) 739(setup (:straight form-feed)
729 (global-form-feed-mode +1)) 740 (global-form-feed-mode +1))