/etc/emacs/site-start.d/50libperl-critic-perl.el is in libperl-critic-perl 1.126-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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)))
|