help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: simple editor required


From: Kai Großjohann
Subject: Re: simple editor required
Date: Wed, 25 Jun 2003 08:17:22 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

"Paul Edwards" <kerravon@nosppaam.w3.to> writes:

> Is there any mode I can switch too, where I can get the behaviour
> I want, without it making a whole set of new problems for me
> (e.g. automatic assumptions about C coding style).  The only
> assumption I want is that it is indented text, so if the previous
> line started in column 16, then the cursor should be positioned
> there when I start a new line.

Well, recent versions of CC mode have the variable
c-syntactic-indentation that you can set to nil from a mode hook:

(defun paul-c-setup ()
  (setq c-syntactic-indentation nil))
(add-hook 'c-mode-hook 'paul-c-setup)

I won't be all that different from text mode, but you can get syntax
highlighting.  Maybe you will like that.

-- 
~/.signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]