From: Eric S Fraga <e.fraga@ucl.ac.uk>
To: emacs-orgmode@gnu.org
Subject: Re: How to get rid of first line indent?
Date: Mon, 12 Jun 2017 17:01:13 +0100 [thread overview]
Message-ID: <87k24h9ovq.fsf@delle7240.chemeng.ucl.ac.uk> (raw)
In-Reply-To: <2108366ff0a84d9f9bd291a78ceb30ec@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Birnle's message of "Mon, 12 Jun 2017 15:49:33 +0000")
[-- Attachment #1: Type: text/plain, Size: 761 bytes --]
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
next prev parent reply other threads:[~2017-06-12 16:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <9ef25cc73d884cbbbfe6c097f7b5f8a7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-11 14:51 ` How to get rid of first line indent? Eric S Fraga
2017-06-12 15:49 ` Birnle
2017-06-12 16:57 ` John Kitchin
2017-06-12 21:42 ` Birnle
2017-06-12 23:13 ` John Kitchin
2017-06-13 1:24 ` Birnle
2017-06-13 3:26 ` Marcin Borkowski
2017-06-17 10:14 ` Birnle
2017-06-13 3:21 ` Marcin Borkowski
2017-06-13 8:07 ` Birnle
[not found] ` <2108366ff0a84d9f9bd291a78ceb30ec@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-12 16:01 ` Eric S Fraga [this message]
2017-06-12 16:14 ` Birnle
2017-06-12 17:15 ` John Ankarström
2017-06-12 21:47 ` Birnle
[not found] ` <1916abece6014b148905df8633e60e0e@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-06-13 7:09 ` Eric S Fraga
2017-06-08 20:57 Birnle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k24h9ovq.fsf@delle7240.chemeng.ucl.ac.uk \
--to=e.fraga@ucl.ac.uk \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.