Highlight an entire expression instead of matching parenthesis.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 31 Dec 2020 00:03:42 +0200
changeset 1654 984c15b493ab
parent 1653 c9e9a3912a95
child 1655 05502e8a049d
Highlight an entire expression instead of matching parenthesis.
.emacs-my
--- a/.emacs-my	Fri Dec 25 20:21:56 2020 +0200
+++ b/.emacs-my	Thu Dec 31 00:03:42 2020 +0200
@@ -966,8 +966,12 @@
 
 (require 'paren)
 
+(when window-system
+  (face-spec-set 'show-paren-match '((t :background "cornsilk"))))
+;; parenthesis, expression, mixed
+(setq show-paren-style 'expression)
+
 (show-paren-mode 1) ; Parenthesis matching via highlighting.
-(setq show-paren-style (quote parenthesis))
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "input method")