LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   TCL Scripting in Emacs (https://www.linuxquestions.org/questions/linux-software-2/tcl-scripting-in-emacs-214247/)

wildcat22 08-06-2004 09:43 AM

TCL Scripting in Emacs
 
Hey all,

I'm doing some tcl scripting at work, since not all of us are using linux, the extension on all of our scripts is .txt. What I can't figure out is how to override Emacs autmatic syntax coloring so that it will treat the .txt files as though they were .tcl files, and colorize it.

Anyone have any ideas?

Thanks!

slackie1000 08-06-2004 10:50 AM

hi there...

add that to your .emacs

-----------------------------------------------------------------------------

(setq auto-mode-alist
(append '(("\\.txt\\" . tcl-mode))))
_________________________________________________

please check syntax...
i got it from my head..

hope it will help....

regards

slackie

wildcat22 08-06-2004 11:04 AM

It looks like it just might help, of course, I have no clue what to check the syntax against.

I definetly feel as though that is the type of thing I need....

Thanks

wildcat22 08-06-2004 11:10 AM

Excellent, thanks a lot! Works nicely!

slackie1000 08-06-2004 11:12 AM

you are welcome...

cheers

slackie


All times are GMT -5. The time now is 08:58 PM.