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: Tue, 24 Jun 2003 09:16:15 +0200
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

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

> Ok, will try.  But actually, I've thought of a better way of
> abstracting it that will make it more useful.  If RET could
> be newline-and-indent except when I am positioned at the
> beginning of the line (in which case it should be newline
> only) then that is what would be ideal.
>
> Can you think of a way to do that?

(defun pe-newline-and-maybe-indent ()
  (interactive)
  (if (bolp) (newline) (newline-and-indent)))

-- 
This line is not blank.


reply via email to

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