Mercurial > emacs
changeset 60693:0dab980fb0b7
(perl-mode-hook): Defvar it.
(perl-mode): Use run-mode-hooks.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Fri, 18 Mar 2005 00:13:40 +0000 |
parents | e2880855e3d0 |
children | 9e7ee067df09 |
files | lisp/progmodes/perl-mode.el |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/progmodes/perl-mode.el Fri Mar 18 00:12:08 2005 +0000 +++ b/lisp/progmodes/perl-mode.el Fri Mar 18 00:13:40 2005 +0000 @@ -427,6 +427,9 @@ ((looking-at "=cut") 1) (t 3))) +(defvar perl-mode-hook nil + "Normal hook to run when entering Perl mode.") + ;;;###autoload (defun perl-mode () "Major mode for editing Perl code. @@ -519,7 +522,7 @@ ;; Setup outline-minor-mode. (set (make-local-variable 'outline-regexp) perl-outline-regexp) (set (make-local-variable 'outline-level) 'perl-outline-level) - (run-hooks 'perl-mode-hook)) + (run-mode-hooks 'perl-mode-hook)) ;; This is used by indent-for-comment ;; to decide how much to indent a comment in Perl code