Fixed: show-paren-mode was disabled by large files because is it global mode.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 31 Dec 2020 00:20:03 +0200
changeset 1656 0445e8ee4912
parent 1655 05502e8a049d
child 1657 5992e8df79c5
Fixed: show-paren-mode was disabled by large files because is it global mode. Allow to disable show-paren-mode for certain buffers making preference buffer local.
.emacs-my
--- a/.emacs-my	Thu Dec 31 00:08:10 2020 +0200
+++ b/.emacs-my	Thu Dec 31 00:20:03 2020 +0200
@@ -971,7 +971,9 @@
 ;; parenthesis, expression, mixed
 (setq show-paren-style 'expression)
 
-(show-paren-mode 1) ; Parenthesis matching via highlighting.
+;; show-paren-mode is global, to override have to be local variable.
+(make-variable-buffer-local 'show-paren-mode)
+(show-paren-mode 1)
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "input method")
@@ -1250,7 +1252,7 @@
   (font-lock-mode -1)
   (jit-lock-mode nil)
   (buffer-disable-undo)
-  (show-paren-mode -1)
+  (setq-local show-paren-mode nil)
   (auto-revert-tail-mode -1)
   (set (make-local-variable 'global-hl-line-mode) nil)
   (set (make-local-variable 'line-number-mode) nil)