From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How to get rid of first line indent? Date: Mon, 12 Jun 2017 17:01:13 +0100 Message-ID: <87k24h9ovq.fsf@delle7240.chemeng.ucl.ac.uk> References: <9ef25cc73d884cbbbfe6c097f7b5f8a7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <877f0ifugj.fsf@delle7240.chemeng.ucl.ac.uk> <2108366ff0a84d9f9bd291a78ceb30ec@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> Reply-To: Eric S Fraga Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49467) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKRmO-0001V1-It for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 12:01:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKRmK-0007Z7-KA for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 12:01:24 -0400 Received: from mail-ve1eur01on0138.outbound.protection.outlook.com ([104.47.1.138]:60649 helo=EUR01-VE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dKRmK-0007Y8-8z for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 12:01:20 -0400 In-Reply-To: <2108366ff0a84d9f9bd291a78ceb30ec@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> (Birnle's message of "Mon, 12 Jun 2017 15:49:33 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 | =E2=80=98replace.el=E2=80=99. |=20 | (replace-regexp REGEXP TO-STRING &optional DELIMITED START END | BACKWARD) |=20 | 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 =2D-=20 : Eric S Fraga (0xFFFCF67D), Emacs 26.0.50, Org release_9.0.7-531-g530113 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQSPXCedOQfhSlwpVw3IkZPY//z2fQUCWT66yQAKCRDIkZPY//z2 fVrzAKCQ8UcJwKqhAlsN/BL246b29tynVACdE1spSrKwrFotYmrAFE9/MmTRC/s= =oWRD -----END PGP SIGNATURE----- --=-=-=--