From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Kitchin Subject: Re: How to get rid of first line indent? Date: Mon, 12 Jun 2017 19:13:43 -0400 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="94eb2c073dee6c547a0551cb7845" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dKYWo-00042u-Ps for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 19:13:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dKYWn-0001uj-JF for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 19:13:46 -0400 Received: from mail-wr0-x233.google.com ([2a00:1450:400c:c0c::233]:35581) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dKYWn-0001uK-7H for emacs-orgmode@gnu.org; Mon, 12 Jun 2017 19:13:45 -0400 Received: by mail-wr0-x233.google.com with SMTP id q97so117611406wrb.2 for ; Mon, 12 Jun 2017 16:13:45 -0700 (PDT) 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: Birnle Cc: "emacs-orgmode@gnu.org" --94eb2c073dee6c547a0551cb7845 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable The C-c n binding is not defined in org-mode though as far as I know. That suggests it is something outside of org-mode doing that. 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 On Mon, Jun 12, 2017 at 5:42 PM, Birnle wrote: > Thank you, John, for your answer. And no, it=E2=80=99s much too early for= me to be > sure =E2=80=A6 But C-c n does actually indent each (first) line with whit= espace > 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 <(412)%20268-7803> > @johnkitchin > http://kitchingroup.cheme.cmu.edu > > --94eb2c073dee6c547a0551cb7845 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
The C-c n binding is not defined in org-mode though as far= as I know. That suggests it is something outside of org-mode doing that.= =C2=A0

=
John

-----------------------------------
Profess= or John Kitchin=C2=A0
Doherty Hall A207F
Department of Chemical Engin= eering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-780= 3

On Mon, Jun 12, 2017 at 5:42 PM, Birnle <birnle= @gmx.de> wrote:

Thank you, John, for your answer. And no, it=E2=80=99s much to= o early for me to be sure =E2=80=A6 But C-c n does actually indent each (fi= rst) line with whitespace according to the number of asterisks in the headi= ng.

The easiest and fastest solution is in fact deleting the le= ading whitespace in every line by replace-regexp (replace ^ + by nothing).<= /p>



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


On Mon, Jun 12, 2017 at 11:49 AM, Birnle <= ;birnle@gmx.de> wrote:
crux-cleanup-buffer-or-re= gion

if that command is what does it, then it i= s happening 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 command is what is doing it, because I also see this hap= pen occasionally. Are you sure it isn't because of=C2=A0org-indent-mode= ?


=
John

-----------------------= ------------
Professor John Kitchin=C2=A0
Doherty Hall A207F
= Department of Chemical Engineering
Carnegie Mellon University
Pittsbu= rgh, PA 15213
412-268-7803

--94eb2c073dee6c547a0551cb7845--