Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Re: Xemacs color code

by BazB (Priest)
on Nov 05, 2003 at 12:47 UTC ( #304712=note: print w/ replies, xml ) Need Help??


in reply to Re: Xemacs color code
in thread Xemacs color code

Personally I prefer cperl-mode over the (IIRC) older perl-mode.

Place the following in your ~/.emacs or ~/.xemacs/init.el file to have (X)Emacs automatically turn on cperl mode for perl scripts:

;; Use cperl-mode instead of the default perl-mode (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))

You might also want to put

;; Turn on paren matching and font-lock for all modes (global-font-lock-mode t) (show-paren-mode t)
In your .emacs too.


If the information in this post is inaccurate, or just plain wrong, don't just downvote - please post explaining what's wrong.
That way everyone learns.


Comment on Re: Re: Xemacs color code
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://304712]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (14)
As of 2015-07-29 19:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (267 votes), past polls