File: emacsen-startup

package info (click to toggle)
libperl-critic-perl 1.156-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 3,544 kB
  • sloc: perl: 24,092; lisp: 341; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 722 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;; -*- mode: emacs-lisp -*-

(if (not (file-exists-p "/usr/share/emacs/site-lisp/perlcritic.el"))
    (message "libperl-critic-perl removed but not purged, skipping setup")

  ;; these setups as recommended in the perlcritic.el comments
  (autoload 'perlcritic        "perlcritic" nil t)
  (autoload 'perlcritic-region "perlcritic" nil t)
  (autoload 'perlcritic-mode   "perlcritic" nil t)

  ;; these per the suggested add-hooks in the perlcritic.el comments, but
  ;; just offered as options
  (custom-add-option 'perl-mode-hook  'perlcritic-mode)
  (custom-add-option 'cperl-mode-hook 'perlcritic-mode))

(if (fboundp 'conf-mode) ;; new in emacs22
  (add-to-list 'auto-mode-alist '("/\\.perlcriticrc\\'" . conf-mode)))