Debian Codegraph @

debian/emacsen-startup

raw
1 ;; -*- mode: emacs-lisp -*-
2
3 (if (not (file-exists-p "/usr/share/emacs/site-lisp/perlcritic.el"))
4 (message "libperl-critic-perl removed but not purged, skipping setup")
5
6 ;; these setups as recommended in the perlcritic.el comments
7 (autoload 'perlcritic "perlcritic" nil t)
8 (autoload 'perlcritic-region "perlcritic" nil t)
9 (autoload 'perlcritic-mode "perlcritic" nil t)
10
11 ;; these per the suggested add-hooks in the perlcritic.el comments, but
12 ;; just offered as options
13 (custom-add-option 'perl-mode-hook 'perlcritic-mode)
14 (custom-add-option 'cperl-mode-hook 'perlcritic-mode))
15
16 (if (fboundp 'conf-mode) ;; new in emacs22
17 (add-to-list 'auto-mode-alist '("/\\.perlcriticrc\\'" . conf-mode)))