emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] How to get rid of first line indent?


From: Eric S Fraga
Subject: Re: [O] How to get rid of first line indent?
Date: Mon, 12 Jun 2017 17:01:13 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux)

On Monday, 12 Jun 2017 at 15:49, Birnle wrote:
> Is there no command to "unclean" the file again?

Difficulty is defining what "unclean" means.  For instance, if it is
simply removing spaces at the start of a line, you could use

,----[ C-h f replace-regexp RET ]
| replace-regexp is an interactive compiled Lisp function in
| ‘replace.el’.
| 
| (replace-regexp REGEXP TO-STRING &optional DELIMITED START END
| BACKWARD)
| 
| This function is for interactive use only;
| [...]
`----

and replace "^ +" with "" (no quotes typed).  But this would apply to
all lines.  If you can come up with a regexp for "unclean" lines then
this could work.

HTH,
eric

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113

Attachment: signature.asc
Description: PGP signature


reply via email to

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