Pumpkin, Inc.

Pumpkin User Forums

Emacs font decorations for Salvo words

If you have a general question or comment regarding Salvo, post it here.

Emacs font decorations for Salvo words

Postby zoomcityzoom » Tue Jan 31, 2006 10:24 am

I find it beneficial to have the Salvo function calls and labels standout a bit in the source code when editing with Emacs. Add the following to your .emacs file to enable this for yourself. Replace the face values with something differnt if you wish. To see the face values available, enter the command M-x list-faces-display.

BTW, my labels are always in the form of LBL_AAAA_nn. Modify the regular expression to match your label format.

<See my post on autonumbering salvo labels>


;; Highlight Salvo function calls
'(("OS_*\([A-Z]+[a-z]+\)+" . 'font-lock-SpringGreen4-face)))

;; Highlight Salvo labels
'(("LBL_[A-Z]+_[0-9]+" . 'font-lock-AntiqueWhite4-face)))

Also, if you use emacs, take the time to install the ECB (Emacs Code Browser) package. We're talking speedmenu on crack! I've been using this for a week now and I'm totally hooked.



[This message has been edited by zoomcityzoom (edited February 15, 2006).]

Tom Deutschman
Wizbang Designs, Inc.
Posts: 13
Joined: Sat Dec 24, 2005 12:00 am
Location: Spokane, WA, USA

Return to General

Who is online

Users browsing this forum: No registered users and 0 guests