summaryrefslogtreecommitdiff
path: root/lisp/paren.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-08-03 17:45:17 +0000
committerRichard M. Stallman <rms@gnu.org>1993-08-03 17:45:17 +0000
commit26bc6950ee2bd1cf116cd011589bdd2ac16722f9 (patch)
treefe404fe6b61c55838a55920f69a2ee54528ba05e /lisp/paren.el
parentbe211692f42a01988dfe15be23ec0bf72b621891 (diff)
downloademacs-26bc6950ee2bd1cf116cd011589bdd2ac16722f9.tar.gz
(window-setup-hook): Add hook function.
Diffstat (limited to 'lisp/paren.el')
-rw-r--r--lisp/paren.el9
1 files changed, 8 insertions, 1 deletions
diff --git a/lisp/paren.el b/lisp/paren.el
index e42751c706e..1c517bdf500 100644
--- a/lisp/paren.el
+++ b/lisp/paren.el
@@ -125,7 +125,14 @@
(progn
(setq blink-paren-function nil)
(add-hook 'post-command-hook 'show-paren-command-hook)))
-
+;;; This is in case paren.el is preloaded.
+(add-hook 'window-setup-hook
+ (function (lambda ()
+ (if window-system
+ (progn
+ (setq blink-paren-function nil)
+ (add-hook 'post-command-hook
+ 'show-paren-command-hook))))))
(provide 'paren)
;;; paren.el ends here