LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-10-2006, 09:42 AM   #1
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Rep: Reputation: 15
How to stop emacs trying to autoindent php script


Hi,

I'm running the default emacs that comes with Red Hat 9.0. It seems to have a lot of functionality that I didn't get with the straight emacs that came with SuSE 7.1 - it seems more like xemacs.

Anyway, one thing it does that I don't want it to do is autoindent php script.

How do I stop this please?

TIA

Lost Johnny
 
Old 07-10-2006, 02:28 PM   #2
broknindarkagain
Member
 
Registered: May 2006
Location: Atlanta
Distribution: WinXP, Ubuntu
Posts: 64

Rep: Reputation: 15
You may have syntax hilighting on. Just look around in your options for this. I dont remember where it is at.
 
Old 07-10-2006, 03:46 PM   #3
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by broknindarkagain
You may have syntax hilighting on. Just look around in your options for this. I dont remember where it is at.
I tried turning the syntax highlighting off. This doesn't stop emacs from indenting (and getting it wrong) - it just turns off the feature of colouring the text in according to what is is, which I find helpful, especially as (as far as I've seen so far (my 1st 4 line of php script)) it seems to get it right.

Lost Johnny
 
Old 07-11-2006, 12:17 PM   #4
lostjohnny
Member
 
Registered: May 2006
Distribution: Fedora Core 6
Posts: 37

Original Poster
Rep: Reputation: 15
To answer my own question...

I switched to text mode by typing M-x text-mode.

Lost Johnny
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LXer: Title: PHP/MySQL Classifieds Script AddAsset1.php Script Insertion LXer Syndicated Linux News 0 07-02-2006 07:21 PM
autoindent in eclipse/CDT spuzzzzzzz Linux - Software 0 07-23-2004 07:27 PM
syntax highlighting for php in emacs bm1 Linux - Software 1 01-23-2004 11:32 PM
emacs-21.2 php-mode.el howto ? cicisbeo Linux - Software 1 01-12-2004 09:26 PM
How to open or make a .php file in emacs?? eye Linux - Software 1 12-02-2003 01:19 AM


All times are GMT -5. The time now is 07:13 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration