diff options
author | Case Duckworth | 2021-05-25 17:36:37 -0500 |
---|---|---|
committer | Case Duckworth | 2021-05-25 17:36:37 -0500 |
commit | 074c1afd6d47fdc50ab7a0466611e9ff82a39e5e (patch) | |
tree | c5529a07fe04c234532e3af783404011af151dec | |
parent | Fix `acdw/build-button-url-regexp' to rebuild on call (diff) | |
download | emacs-074c1afd6d47fdc50ab7a0466611e9ff82a39e5e.tar.gz emacs-074c1afd6d47fdc50ab7a0466611e9ff82a39e5e.zip |
Advise `show-paren-function' to not do anything in erc-mode
-rw-r--r-- | init.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el index cbb6575..294c76f 100644 --- a/init.el +++ b/init.el | |||
@@ -292,6 +292,13 @@ | |||
292 | erc-track-exclude-types erc-hide-list | 292 | erc-track-exclude-types erc-hide-list |
293 | erc-track-position-in-mode-line 'before-modes) | 293 | erc-track-position-in-mode-line 'before-modes) |
294 | 294 | ||
295 | ;; Thanks bpalmer! | ||
296 | (advice-add 'show-paren-function :around | ||
297 | (defun show-paren@skip-in-erc (f &rest r) | ||
298 | "Skip `show-paren-mode' in `erc-mode'." | ||
299 | (unless (derived-mode-p 'erc-mode) | ||
300 | (apply f r)))) | ||
301 | |||
295 | (:hook erc-autoaway-mode | 302 | (:hook erc-autoaway-mode |
296 | erc-track-mode | 303 | erc-track-mode |
297 | erc-truncate-mode)) | 304 | erc-truncate-mode)) |