Move doom|disable-show-paren-mode to autoload/ui

This commit is contained in:
Henrik Lissner 2019-06-27 13:25:14 +02:00
parent 2387f56ba1
commit 2aa9252725
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 5 additions and 4 deletions

View file

@ -47,6 +47,11 @@ are open."
(with-silent-modifications
(ansi-color-apply-on-region compilation-filter-start (point))))
;;;###autoload
(defun doom|disable-show-paren-mode ()
"Turn off `show-paren-mode' buffer-locally."
(setq-local show-paren-mode nil))
;;
;; Commands

View file

@ -298,10 +298,6 @@ read-only or not file-visiting."
(def-package! paren
;; highlight matching delimiters
:after-call (after-find-file doom-switch-buffer-hook)
:init
(defun doom|disable-show-paren-mode ()
"Turn off `show-paren-mode' buffer-locally."
(set (make-local-variable 'show-paren-mode) nil))
:config
(setq show-paren-delay 0.1
show-paren-highlight-openparen t