(handle (1- (nth 1 last))))
(setcdr precdr (list
(list
- '(eq major-mode 'perl-mode)
+ '(memq major-mode '(cperl-mode perl-mode))
handle
"Perl Files (%d)")
last))))
(add-hook 'font-lock-mode-hook
(function
(lambda ()
- (if (or
- (eq major-mode 'perl-mode)
- (eq major-mode 'cperl-mode))
+ (if (memq major-mode '(perl-mode cperl-mode))
(progn
(or cperl-faces-init (cperl-init-faces)))))))
(if (fboundp 'eval-after-load)
(setq cperl-help-shown nil))
(defun cperl-get-help-defer ()
- (if (not (eq major-mode 'perl-mode)) nil
+ (when (memq major-mode '(perl-mode cperl-mode))
(let ((cperl-message-on-help-error nil) (cperl-help-from-timer t))
(cperl-get-help)
(setq cperl-help-shown t))))