Emacs: evaluate blink-matching-open when cursor selects bracket

Recently when editing lisp code in emacs, I was upset about tracking the corresponding brackets. (show-paren-mode t) helps when a matching bracket is visible in the buffer along with its match, and (setq blink-matching-paren t) is useful when writing the corresponding brackets. Is there a way to enable show-paren mode so that the blink-mathing-open function is evaluated as part of the "show" process? Thus, I can put the cursor in the bracket and find out what he agrees with, without deleting and re-entering.

Thank,

Setjmp

+5
source share
2 answers

try it

(defadvice show-paren-function (after blink activate)
  (when (= ?\) (char-before (point)))
    (blink-matching-open)))

C-M-b C-M-f .

+2

mic-paren, , , - , ( ).

- load-path .emacs:

(require 'mic-paren)
(paren-activate)

, , .

+2

All Articles