diff options
author | Case Duckworth | 2021-04-02 13:28:58 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-02 13:29:31 -0500 |
commit | 382fb6f4e50c34f4fcba679ebac4b213525c7351 (patch) | |
tree | 33ec8850f3031f3328ec0be1cb9515eb84209072 | |
parent | Hook `executable-make-buffer-file-executable-if-script-p' (diff) | |
download | emacs-382fb6f4e50c34f4fcba679ebac4b213525c7351.tar.gz emacs-382fb6f4e50c34f4fcba679ebac4b213525c7351.zip |
Hook `electric-pair-mode' into `eval-expression'
-rw-r--r-- | init.el | 8 |
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) |