Skip to content

Instantly share code, notes, and snippets.

@miyagawa
Created March 29, 2013 06:25
Show Gist options
  • Save miyagawa/5269087 to your computer and use it in GitHub Desktop.
Save miyagawa/5269087 to your computer and use it in GitHub Desktop.
;; Perl mode
(autoload 'cperl-mode "cperl-mode" "alternate mode for editing perl script." t)
(autoload 'perl-mode "perl-mode" "Edit perl script." t)
(setq auto-mode-alist
(append '(("cpanfile$\\|\\.\\([pP][Llm]\\|al\\|t\\|psgi\\)$" . cperl-mode)
("\\.cgi$" . cperl-mode)) auto-mode-alist ))
;;; cperl-mode
(custom-set-variables
'(indent-tabs-mode nil))
(setq cperl-auto-newline t)
(setq cperl-indent-parens-as-block t)
(setq cperl-close-paren-offset -4)
(setq cperl-indent-level 4)
(setq cperl-label-offset -4)
;(setq cperl-electric-parens t)
(setq cperl-continued-statement-offset 2)
; (setq cperl-invalid-face nil)
(setq cperl-highlight-variables-indiscriminately t)
(setq cperl-indent-subs-specially nil)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment