From dee0a8eeb99b52f981cd10ffb3ef0e3c367c6f44 Mon Sep 17 00:00:00 2001 From: Protesilaos Date: Wed, 12 Aug 2026 06:43:17 +0300 Subject: [PATCH] emacs: add show-paren-not-in-comments-or-strings for reference --- emacs/.emacs.d/prot-emacs-modules/prot-emacs-langs.el | 3 ++- emacs/.emacs.d/prot-emacs.org | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/emacs/.emacs.d/prot-emacs-modules/prot-emacs-langs.el b/emacs/.emacs.d/prot-emacs-modules/prot-emacs-langs.el index 68af4618..706b4494 100644 --- a/emacs/.emacs.d/prot-emacs-modules/prot-emacs-langs.el +++ b/emacs/.emacs.d/prot-emacs-modules/prot-emacs-langs.el @@ -51,7 +51,8 @@ (setq show-paren-style 'parenthesis) (setq show-paren-when-point-in-periphery nil) (setq show-paren-when-point-inside-paren nil) - (setq show-paren-context-when-offscreen 'overlay))) ; Emacs 29 + (setq show-paren-context-when-offscreen 'overlay) ; Emacs 29 + (setq show-paren-not-in-comments-or-strings nil))) ; Emacs 31 ;;;; Plain text (text-mode) (prot-emacs-configure diff --git a/emacs/.emacs.d/prot-emacs.org b/emacs/.emacs.d/prot-emacs.org index d45d47ed..eff3805c 100644 --- a/emacs/.emacs.d/prot-emacs.org +++ b/emacs/.emacs.d/prot-emacs.org @@ -9143,7 +9143,8 @@ and I use it globally. Simple and effective! (setq show-paren-style 'parenthesis) (setq show-paren-when-point-in-periphery nil) (setq show-paren-when-point-inside-paren nil) - (setq show-paren-context-when-offscreen 'overlay))) ; Emacs 29 + (setq show-paren-context-when-offscreen 'overlay) ; Emacs 29 + (setq show-paren-not-in-comments-or-strings nil))) ; Emacs 31 #+end_src *** The =prot-emacs-langs.el= settings for plain text (no double spaces, ~auto-fill-mode~)