Add doom|disable-show-paren-mode hook

For disabling show-paren-mode buffer-locally.
This commit is contained in:
Henrik Lissner 2018-07-06 01:06:13 +02:00
parent 80a3c9bf62
commit 15f66f4b52
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 7 additions and 7 deletions

View file

@ -316,6 +316,9 @@ DEFAULT is non-nil, set the default mode-line for all buffers."
(def-package! paren (def-package! paren
:after-call (after-find-file doom-exit-buffer-hook) :after-call (after-find-file doom-exit-buffer-hook)
:config :config
(defun doom|disable-show-paren-mode ()
"Turn off `show-paren-mode' buffer-locally."
(set (make-local-variable 'show-paren-mode) nil))
(setq show-paren-delay 0.1 (setq show-paren-delay 0.1
show-paren-highlight-openparen t show-paren-highlight-openparen t
show-paren-when-point-inside-paren t) show-paren-when-point-inside-paren t)

View file

@ -56,12 +56,14 @@
org-indent-mode ; margin-based indentation org-indent-mode ; margin-based indentation
toc-org-enable ; auto-table of contents toc-org-enable ; auto-table of contents
auto-fill-mode ; line wrapping auto-fill-mode ; line wrapping
;; `show-paren-mode' causes flickering with indentation margins made by
;; `org-indent-mode', so we simply turn off show-paren-mode altogether."
doom|disable-show-paren-mode
+org|enable-auto-reformat-tables +org|enable-auto-reformat-tables
+org|enable-auto-update-cookies +org|enable-auto-update-cookies
+org|smartparens-compatibility-config +org|smartparens-compatibility-config
+org|unfold-to-2nd-level-or-point +org|unfold-to-2nd-level-or-point))
+org|show-paren-mode-compatibility))
;; ;;
@ -113,11 +115,6 @@ unfold to point on startup."
(add-hook 'evil-insert-state-exit-hook #'+org|update-cookies nil t)) (add-hook 'evil-insert-state-exit-hook #'+org|update-cookies nil t))
(add-hook 'before-save-hook #'+org|update-cookies nil t)) (add-hook 'before-save-hook #'+org|update-cookies nil t))
(defun +org|show-paren-mode-compatibility ()
"`show-paren-mode' causes flickering with indentation margins made by
`org-indent-mode', so we simply turn off show-paren-mode altogether."
(set (make-local-variable 'show-paren-mode) nil))
;; ;;
;; `org-load' hooks ;; `org-load' hooks