From mboxrd@z Thu Jan 1 00:00:00 1970 From: Birnle Subject: Re: How to get rid of first line indent? Date: Mon, 12 Jun 2017 23:42:16 +0200 Message-ID: References: <9ef25cc73d884cbbbfe6c097f7b5f8a7@HE1PR01MB1898.eurprd01.prod.exchangelabs.com> <877f0ifugj.fsf@delle7240.chemeng.ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_F77DF6DF-13AD-4B78-BD67-C028F1B3F92B_=" Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56816) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKX6U-0000W0-KF for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 17:42:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKX6Q-0005wA-34 for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 17:42:30 -0400 Received: from mout.gmx.net ([212.227.17.20]:52535) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKX6P-0005ve-Mt for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 17:42:26 -0400 In-Reply-To: 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" Cc: John Kitchin --=_MailMate_F77DF6DF-13AD-4B78-BD67-C028F1B3F92B_= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Thank you, John, for your answer. And no, it’s much too early for me to be sure … But C-c n does actually indent each (first) line with whitespace according to the number of asterisks in the heading. The easiest and fastest solution is in fact deleting the leading whitespace in every line by replace-regexp (replace ^ + by nothing). On 12 Jun 2017, at 18:57, John Kitchin wrote: > On Mon, Jun 12, 2017 at 11:49 AM, Birnle wrote: > >> crux-cleanup-buffer-or-region >> > > if that command is what does it, then it is happening outside of > org-mode. > I guess it is a command from here: https://github.com/bbatsov/crux and > that > it is in a hook function somewhere. > > However, I am skeptical this command is what is doing it, because I > also > see this happen occasionally. Are you sure it isn't because > of org-indent-mode? > > > > John > > ----------------------------------- > Professor John Kitchin > Doherty Hall A207F > Department of Chemical Engineering > Carnegie Mellon University > Pittsburgh, PA 15213 > 412-268-7803 > @johnkitchin > http://kitchingroup.cheme.cmu.edu --=_MailMate_F77DF6DF-13AD-4B78-BD67-C028F1B3F92B_= Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
<= p dir=3D"auto">Thank you, John, for your answer. And no, it=E2=80=99s muc= h too early for me to be sure =E2=80=A6 But C-c n does actually indent ea= ch (first) line with whitespace according to the number of asterisks in t= he heading.

The easiest and fastest solution is in fact deleting the = leading whitespace in every line by replace-regexp (replace ^ + by nothin= g).



On 12 Jun 2017, at 18:57, John Kitchin wrote:

=

= On Mon, Jun 12, 2017 at 11:49 AM, Birnle <birnle@gmx.de> wro= te:
crux-cleanup-buffer-or-region

if that command is what does it, then it is happe= ning outside of org-mode. I guess it is a command from here:=C2=A0https://github.com/bbatsov/crux = and that it is in a hook function somewhere.

However, I am skeptical this com= mand is what is doing it, because I also see this happen occasionally. Ar= e you sure it isn't because of=C2=A0org-indent-mode?



=
John

-----------------------------------
Professor John Kitch= in=C2=A0
Doherty Hall A207F
Department of Chemical Engineering
C= arnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

=
--=_MailMate_F77DF6DF-13AD-4B78-BD67-C028F1B3F92B_=--