about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorCase Duckworth2021-04-02 13:28:58 -0500
committerCase Duckworth2021-04-02 13:29:31 -0500
commit382fb6f4e50c34f4fcba679ebac4b213525c7351 (patch)
tree33ec8850f3031f3328ec0be1cb9515eb84209072
parentHook `executable-make-buffer-file-executable-if-script-p' (diff)
downloademacs-382fb6f4e50c34f4fcba679ebac4b213525c7351.tar.gz
emacs-382fb6f4e50c34f4fcba679ebac4b213525c7351.zip
Hook `electric-pair-mode' into `eval-expression'
-rw-r--r--init.el8
1 files changed, 5 insertions, 3 deletions
diff --git a/init.el b/init.el index 8abd171..81e1d52 100644 --- a/init.el +++ b/init.el
@@ -236,6 +236,11 @@
236(setup imenu 236(setup imenu
237 (:option imenu-auto-rescan t)) 237 (:option imenu-auto-rescan t))
238 238
239;;;;; Setup `electric-pair-mode' in the minibuffer only with `eval-expression'
240(add-hook 'minibuffer-setup-hook (defun hook--electric-pair-minibuffer ()
241 (when (eq this-command 'eval-expression)
242 (electric-pair-mode +1)
243 (show-paren-mode +1))))
239;;;; Cursor 244;;;; Cursor
240(setc cursor-type 'bar 245(setc cursor-type 'bar
241 cursor-in-non-selected-windows 'hollow) 246 cursor-in-non-selected-windows 'hollow)
@@ -308,9 +313,6 @@
308(setup eww 313(setup eww
309 (:hook acdw/reading-mode)) 314 (:hook acdw/reading-mode))
310 315
311(add-hook 'text-mode-hook #'goto-address-mode)
312(add-hook 'prog-mode-hook #'goto-address-prog-mode)
313
314;;;; Eshell 316;;;; Eshell
315(setup eshell 317(setup eshell
316 (defun eshell-quit-or-delete-char (arg) 318 (defun eshell-quit-or-delete-char (arg)