Nice bracket matching function.

This commit is contained in:
Julien Palard 2014-09-09 10:06:45 +02:00
parent efd6adf667
commit 1ee9533167
1 changed files with 7 additions and 0 deletions

7
emacs
View File

@ -231,3 +231,10 @@
nil)))
nil))
(add-to-list 'find-file-hook 'konix/find-file-hook)
(defadvice show-paren-function (after my-echo-paren-matching-line activate)
"If a matching paren is off-screen, echo the matching line."
(when (char-equal (char-syntax (char-before (point))) ?\))
(let ((matching-text (blink-matching-open)))
(when matching-text
(message matching-text)))))