diff options
Diffstat (limited to 'lisp/paren.el')
| -rw-r--r-- | lisp/paren.el | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/paren.el b/lisp/paren.el index fe2beae4edd..7c6abe087b9 100644 --- a/lisp/paren.el +++ b/lisp/paren.el | |||
| @@ -71,7 +71,7 @@ otherwise)." | |||
| 71 | :group 'paren-showing | 71 | :group 'paren-showing |
| 72 | :version "20.3") | 72 | :version "20.3") |
| 73 | 73 | ||
| 74 | (defface show-paren-match-face | 74 | (defface show-paren-match |
| 75 | '((((class color) (background light)) | 75 | '((((class color) (background light)) |
| 76 | :background "turquoise") ; looks OK on tty (becomes cyan) | 76 | :background "turquoise") ; looks OK on tty (becomes cyan) |
| 77 | (((class color) (background dark)) | 77 | (((class color) (background dark)) |
| @@ -83,13 +83,17 @@ otherwise)." | |||
| 83 | "Show Paren mode face used for a matching paren." | 83 | "Show Paren mode face used for a matching paren." |
| 84 | :group 'faces | 84 | :group 'faces |
| 85 | :group 'paren-showing) | 85 | :group 'paren-showing) |
| 86 | ;; backward-compatibility alias | ||
| 87 | (put 'show-paren-match-face 'face-alias 'show-paren-match) | ||
| 86 | 88 | ||
| 87 | (defface show-paren-mismatch-face | 89 | (defface show-paren-mismatch |
| 88 | '((((class color)) (:foreground "white" :background "purple")) | 90 | '((((class color)) (:foreground "white" :background "purple")) |
| 89 | (t (:inverse-video t))) | 91 | (t (:inverse-video t))) |
| 90 | "Show Paren mode face used for a mismatching paren." | 92 | "Show Paren mode face used for a mismatching paren." |
| 91 | :group 'faces | 93 | :group 'faces |
| 92 | :group 'paren-showing) | 94 | :group 'paren-showing) |
| 95 | ;; backward-compatibility alias | ||
| 96 | (put 'show-paren-mismatch-face 'face-alias 'show-paren-mismatch) | ||
| 93 | 97 | ||
| 94 | (defvar show-paren-highlight-openparen t | 98 | (defvar show-paren-highlight-openparen t |
| 95 | "*Non-nil turns on openparen highlighting when matching forward.") | 99 | "*Non-nil turns on openparen highlighting when matching forward.") |
| @@ -193,8 +197,8 @@ in `show-paren-style' after `show-paren-delay' seconds of Emacs idle time." | |||
| 193 | (progn | 197 | (progn |
| 194 | (if show-paren-ring-bell-on-mismatch | 198 | (if show-paren-ring-bell-on-mismatch |
| 195 | (beep)) | 199 | (beep)) |
| 196 | (setq face 'show-paren-mismatch-face)) | 200 | (setq face 'show-paren-mismatch)) |
| 197 | (setq face 'show-paren-match-face)) | 201 | (setq face 'show-paren-match)) |
| 198 | ;; | 202 | ;; |
| 199 | ;; If matching backwards, highlight the closeparen | 203 | ;; If matching backwards, highlight the closeparen |
| 200 | ;; before point as well as its matching open. | 204 | ;; before point as well as its matching open. |