-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathperl-config.el
38 lines (29 loc) · 1.15 KB
/
perl-config.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; cperl-mode - the best Perl mode for Emacs
;;; This file is part of the Emacs Dev Kit
;; use cperl-mode instead of perl-mode
(defalias 'perl-mode 'cperl-mode)
(add-hook 'cperl-mode-hook 'my-cperl-mode-hook t)
(defun my-cperl-mode-hook ()
(setq cperl-indent-level 4)
(setq cperl-continued-statement-offset 8)
;; cperl-hairy affects all those variables, but I prefer
;; a more fine-grained approach as far as they are concerned
(setq cperl-font-lock t)
(setq cperl-electric-lbrace-space t)
(setq cperl-electric-parens nil)
(setq cperl-electric-linefeed nil)
(setq cperl-electric-keywords nil)
(setq cperl-info-on-command-no-prompt t)
(setq cperl-clobber-lisp-bindings t)
(setq cperl-lazy-help-time 3)
;; if you want all the bells and whistles
;; (setq cperl-hairy)
(set-face-background 'cperl-array-face nil)
(set-face-background 'cperl-hash-face nil)
(setq cperl-invalid-face nil))
(autoload 'perlcritic "perlcritic" "" t)
(autoload 'perlcritic-region "perlcritic" "" t)
(autoload 'perlcritic-mode "perlcritic" "" t)
(eval-after-load "cperl-mode"
'(add-hook 'cperl-mode-hook 'perlcritic-mode))
(provide 'perl-config)