LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-06-2004, 09:43 AM   #1
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Rep: Reputation: 15
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!
 
Old 08-06-2004, 10:50 AM   #2
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
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
 
Old 08-06-2004, 11:04 AM   #3
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Original Poster
Rep: Reputation: 15
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
 
Old 08-06-2004, 11:10 AM   #4
wildcat22
Member
 
Registered: Nov 2003
Location: USA
Distribution: Ubuntu
Posts: 102

Original Poster
Rep: Reputation: 15
Excellent, thanks a lot! Works nicely!
 
Old 08-06-2004, 11:12 AM   #5
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 46
you are welcome...

cheers

slackie
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
tabs to spaces in emacs, not working in tcl mode ratm1286 Linux - Software 3 05-08-2005 05:15 PM
What is tcl.h? divoibs Red Hat 3 09-25-2004 09:37 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:36 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration