http://qs321.pair.com?node_id=441715


in reply to Desparately seeking a bilingual vim/Emacs expert


Here is a minimal usable .emacs file for Perl programming.
;; Use cperl mode instead of the default perl mode (defalias 'perl-mode 'cperl-mode) ;; Turn syntax highlighting on (global-font-lock-mode 1) ;; 4 space indent in cperl mode (setq cperl-indent-level 4) ;; Insert spaces instead of tabs (setq-default indent-tabs-mode nil)

It is better to use Ilya's cperl mode than the default perl mode. The syntax highlighting is optional but recommended. The last two commands set the indent level and the tab expansion. Combined with cperl mode these replicate the vi tab stop behaviour.

It may also be worth adding a link to the Emacs Wiki which is a great source of information.

--
John.