Advise `show-paren-function' to not do anything in erc-mode

This commit is contained in:
Case Duckworth 2021-05-25 17:36:37 -05:00
parent bba5214c34
commit 074c1afd6d
1 changed files with 7 additions and 0 deletions

View File

@ -292,6 +292,13 @@
erc-track-exclude-types erc-hide-list
erc-track-position-in-mode-line 'before-modes)
;; Thanks bpalmer!
(advice-add 'show-paren-function :around
(defun show-paren@skip-in-erc (f &rest r)
"Skip `show-paren-mode' in `erc-mode'."
(unless (derived-mode-p 'erc-mode)
(apply f r))))
(:hook erc-autoaway-mode
erc-track-mode
erc-truncate-mode))