** Perl
#+BEGIN_SRC emacs-lisp
- (require 'cperl-mode)
- ;; Use c-mode for perl .xs files
- (add-to-list 'auto-mode-alist '("\\.xs\\'" . c-mode))
- (add-to-list 'auto-mode-alist '("\\.\\([pP][Llm]\\|al\\)\\'" . cperl-mode))
- (add-to-list 'interpreter-mode-alist '("perl" . cperl-mode))
- (add-to-list 'interpreter-mode-alist '("perl5" . cperl-mode))
- (add-to-list 'interpreter-mode-alist '("miniperl" . cperl-mode))
- (setq cperl-hairy t
- cperl-indent-level 4
- cperl-auto-newline nil
- cperl-auto-newline-after-colon nil
- cperl-continued-statement-offset 4
- cperl-brace-offset -1
- cperl-continued-brace-offset 0
- cperl-label-offset -4
- cperl-highlight-variables-indiscriminately t
- cperl-electric-lbrace-space nil
- cperl-indent-parens-as-block nil
- cperl-close-paren-offset -1
- cperl-tab-always-indent t)
- ;(add-hook 'cperl-mode-hook (lambda () (cperl-set-style "PerlStyle")))
+ (use-package cperl-mode
+ :config
+ (progn
+ ;; Use c-mode for perl .xs files
+ (add-to-list 'auto-mode-alist '("\\.xs\\'" . c-mode))
+ (add-to-list 'auto-mode-alist '("\\.\\([pP][Llm]\\|al\\)\\'" . cperl-mode))
+ (add-to-list 'interpreter-mode-alist '("perl" . cperl-mode))
+ (add-to-list 'interpreter-mode-alist '("perl5" . cperl-mode))
+ (add-to-list 'interpreter-mode-alist '("miniperl" . cperl-mode))
+ (setq cperl-hairy t
+ cperl-indent-level 4
+ cperl-auto-newline nil
+ cperl-auto-newline-after-colon nil
+ cperl-continued-statement-offset 4
+ cperl-brace-offset -1
+ cperl-continued-brace-offset 0
+ cperl-label-offset -4
+ cperl-highlight-variables-indiscriminately t
+ cperl-electric-lbrace-space nil
+ cperl-indent-parens-as-block nil
+ cperl-close-paren-offset -1
+ cperl-tab-always-indent t)
+ ;;(add-hook 'cperl-mode-hook (lambda () (cperl-set-style "PerlStyle")))
+ ))
#+END_SRC
** Helm