]> git.eshelyaron.com Git - emacs.git/commitdiff
(window-setup-hook): Add hook function.
authorRichard M. Stallman <rms@gnu.org>
Tue, 3 Aug 1993 17:45:17 +0000 (17:45 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 3 Aug 1993 17:45:17 +0000 (17:45 +0000)
lisp/paren.el

index e42751c706e6d0b3a4b8173b09b17b781267a0d1..1c517bdf500817712a43ccd22f790ba6bfd0fa8b 100644 (file)
     (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