summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-10-07 16:01:24 -0500
committerCase Duckworth2021-10-07 16:01:24 -0500
commitc7ef58ec8a4157ac569a755b0090a2e82de0e79b (patch)
tree52dbfd28869d34d7d83e6de7ee44219796028313
parentChange definition to use seq-some (diff)
downloademacs-c7ef58ec8a4157ac569a755b0090a2e82de0e79b.tar.gz
emacs-c7ef58ec8a4157ac569a755b0090a2e82de0e79b.zip
Disable nyan mode sometimes
-rw-r--r--init.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/init.el b/init.el index aa2bb9a..a633387 100644 --- a/init.el +++ b/init.el
@@ -1139,6 +1139,7 @@ specific to most general, they are these:
1139 scroll-margin 0 1139 scroll-margin 0
1140 word-wrap t 1140 word-wrap t
1141 wrap-prefix (repeat-string acdw-irc/left-margin " ") 1141 wrap-prefix (repeat-string acdw-irc/left-margin " ")
1142 nyan-mode nil
1142 line-number-mode nil 1143 line-number-mode nil
1143 column-number-mode nil 1144 column-number-mode nil
1144 file-percentage-mode nil) 1145 file-percentage-mode nil)
@@ -1860,7 +1861,13 @@ browser defined in `browse-url-secondary-browser-function'."
1860 (:option nyan-animate-nyancat nil 1861 (:option nyan-animate-nyancat nil
1861 nyan-bar-length 20 1862 nyan-bar-length 20
1862 nyan-minimum-window-width fill-column) 1863 nyan-minimum-window-width fill-column)
1863 (nyan-mode +1)) 1864 (nyan-mode +1)
1865 (defun disable-nyan-mode ()
1866 "Disable `nyan-mode' in current buffer."
1867 (setq-local nyan-mode -1))
1868 (dolist (mode '(eshell-mode
1869 comint-mode))
1870 (add-hook mode #'disable-nyan-mode)))
1864 1871
1865;; (setup (:straight olivetti) 1872;; (setup (:straight olivetti)
1866;; (:option olivetti-body-width (+ fill-column 4) 1873;; (:option olivetti-body-width (+ fill-column 4)