in reply to favorite perl mode for Emacs?
As an alternative to perl-mode, there's also cperl-mode, which most people prefer and is I think also better maintained. There should be a cperl-mode in your emacs installation, but if you want more up-to-date/expermental versions, see the cperl-mode page on emacswiki.
Also: don't forget to switch on flymake-mode. It's one of the most useful tools in emacs, not just for perl:
;; Use cperl-mode for perl (add-to-list 'auto-mode-alist '("\\.\\([pP][Llm]\\|al\\)\\'" . cperl-m +ode)) (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)) (add-hook 'cperl-mode-hook (lambda () (require 'flymake) (flymake-mode 1) ;; use flymake (local-set-key (kbd "C-h f") 'cperl-perldoc))) ;; use perldoc inst +ead of info on C-h f
You might also be interesed in Sepia and other stuff that turns up on CPAN
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: favorite perl mode for Emacs?
by Anonymous Monk on Oct 24, 2009 at 21:20 UTC | |
by Joost (Canon) on Oct 24, 2009 at 22:12 UTC | |
by LanX (Saint) on Oct 25, 2009 at 01:14 UTC |
In Section
Seekers of Perl Wisdom