Browse files

starter-kit-perl added

  • Loading branch information...
1 parent e17a07e commit 38dc7641a7b97b5ead421abca5474c3bac711c8d @genehack genehack committed with Dec 27, 2008
Showing with 24 additions and 0 deletions.
  1. +1 −0 init.el
  2. +23 −0 starter-kit-perl.el
View
1 init.el
@@ -49,6 +49,7 @@
(require 'starter-kit-registers)
(require 'starter-kit-eshell)
(require 'starter-kit-lisp)
+(require 'starter-kit-perl)
(require 'starter-kit-ruby)
(require 'starter-kit-js)
View
23 starter-kit-perl.el
@@ -0,0 +1,23 @@
+;;; starter-kit-perl.el --- Some helpful Perl code
+;;
+;; Part of the Emacs Starter Kit
+
+(eval-after-load 'cperl-mode
+ '(progn
+ (define-key cperl-mode-map (kbd "RET") 'reindent-then-newline-and-indent)
+ (define-key cperl-mode-map (kbd "C-M-h") 'backward-kill-word)))
+
+(global-set-key (kbd "C-h P") 'perldoc)
+
+(add-to-list 'auto-mode-alist '("\\.(?:cgi|p[lm])$" . cperl-mode))
+(add-to-list 'auto-mode-alist '("\\.pod$" . pod-mode))
+(add-to-list 'auto-mode-alist '("\\.tt$" . tt-mode))
+
+;; We never want to edit Rubinius bytecode
+(add-to-list 'completion-ignored-extensions ".rbc")
+
+;; TODO: flymake
+;; TODO: electric bugaloo
+
+(provide 'starter-kit-perl)
+;; starter-kit-perl.el ends here

0 comments on commit 38dc764

Please sign in to comment.