LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-14-2003, 05:57 PM   #1
jeempc
Member
 
Registered: Mar 2003
Location: Ann Arbor, MI
Distribution: Slackware 10.1
Posts: 119

Rep: Reputation: 15
XEmacs and automatic indenting


I am very frustrated.
I like emacs and especially like how when I write a perl script it does the automatic indenting. However, something happened and it no longer does this for me. Help. I want it back.
It does work when I write C programs though. But that is a different mode.
 
Old 03-14-2003, 05:58 PM   #2
jeempc
Member
 
Registered: Mar 2003
Location: Ann Arbor, MI
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
one more thing about xemacs

I already looked through their FAQ's
 
Old 03-14-2003, 06:36 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
The various major-modes are loaded based on the extension of a file. Your ~/.emacs file ought to provide the link between the extension and the desired mode to use.

So, make sure the file you're working on has the right extension (I think the default is .pl for perl). If you obtained a perl-mode off the net somewhere, then you need to verify it's still on your machine. I thik major-mode files are located in ~/.elisp, and you'll need to make sure your .emacs file loads the right one.

I can't provide you with specific commands simply because I don't know them. Sorry...
 
Old 03-17-2003, 06:50 PM   #4
jeempc
Member
 
Registered: Mar 2003
Location: Ann Arbor, MI
Distribution: Slackware 10.1
Posts: 119

Original Poster
Rep: Reputation: 15
Oh Yeah

Come to think of it. When the auto-indent feature worked I did call the script yadayada.pl. It was after I changed the name to a more Linux type name, meaning one without an extension, that it stopped working. I thought emacs seen the #!/us/bin/perl. Now it makes sense since all my C programs are .c.
Thank you very much. I am constantly learning about Linux.
Jeem
 
  


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
xemacs' automatic package tools Weirdofreak Linux - Software 0 07-24-2005 05:11 PM
Emacs, scheme, syntax highlighting, indenting jrdioko Linux - Software 0 07-16-2005 04:13 PM
vim and fortran smart-indenting s_siouris Linux - Software 0 11-23-2004 05:00 AM
Make vi stop indenting tumana Linux - Newbie 1 04-06-2004 09:12 PM
does xemacs have anything to do with color? what is wrong with this xemacs? broodman Linux - Software 0 02-15-2004 10:43 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:56 AM.

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