summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-07 11:28:15 -0500
committerCase Duckworth2021-04-07 11:28:15 -0500
commitb34fce179cfe31722b81aae7dac3739806a5017f (patch)
treef294cd1979994c08ac858b3a5d8ab3fa26b70bcd
parentFix immortal-buffer bug (diff)
downloademacs-b34fce179cfe31722b81aae7dac3739806a5017f.tar.gz
emacs-b34fce179cfe31722b81aae7dac3739806a5017f.zip
Remove minibuffer hook and make deletions more smarter
Turns out, `smart-hungry-delete-mode' is mostly unnecessary.  I can use the
really dumb version.
-rw-r--r--init.el8
1 files changed, 3 insertions, 5 deletions
diff --git a/init.el b/init.el index cd6efa1..704b307 100644 --- a/init.el +++ b/init.el
@@ -77,7 +77,8 @@
77 (:option whitespace-style 77 (:option whitespace-style
78 '(empty indentation space-before-tab space-after-tab) 78 '(empty indentation space-before-tab space-after-tab)
79 indent-tabs-mode nil 79 indent-tabs-mode nil
80 tab-width 4) 80 tab-width 4
81 backward-delete-char-untabify-method 'hungry)
81 82
82 (add-hook 'before-save-hook #'whitespace-cleanup) 83 (add-hook 'before-save-hook #'whitespace-cleanup)
83 84
@@ -134,10 +135,7 @@
134 135
135 (add-hook 'minibuffer-setup-hook #'acdw/gc-disable) 136 (add-hook 'minibuffer-setup-hook #'acdw/gc-disable)
136 (add-hook 'minibuffer-exit-hook #'acdw/gc-enable) 137 (add-hook 'minibuffer-exit-hook #'acdw/gc-enable)
137 138
138 (hook-defun minibuffer-enable-truncate-lines minibuffer-setup-hook
139 (setq-local truncate-lines t))
140
141 (minibuffer-depth-indicate-mode +1) 139 (minibuffer-depth-indicate-mode +1)
142 (file-name-shadow-mode +1) 140 (file-name-shadow-mode +1)
143 (fset 'yes-or-no-p #'y-or-n-p) 141 (fset 'yes-or-no-p #'y-or-n-p)