about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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))