mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Add doom|disable-show-paren-mode hook
For disabling show-paren-mode buffer-locally.
This commit is contained in:
@ -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)
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user