$pgn->comments was Re: DCPM: perltutopen blues....
Steve Marvell
steve at devon-it.co.uk
Mon Jul 7 04:46:20 CDT 2003
Simon Waters wrote:
> > Use cperl-mode, not the default perl-mode with GNU Emacs.
>
> Hmm okay when I figure out how to change mode....
In your ~/.emacs file:
(defun modify-alist (alist-symbol key value &optional search-cdr)
(let ((alist (symbol-value alist-symbol)))
(while alist
(if (eq (if search-cdr
(cdr (car alist))
(car (car alist))) key)
(setcdr (car alist) value)
(setq alist (cdr alist))))))
(modify-alist 'interpreter-mode-alist 'perl-mode 'cperl-mode t)
(modify-alist 'auto-mode-alist 'perl-mode 'cperl-mode t)
Now you don't have to change mode.
Steve
More information about the Devoncornwall-pm
mailing list