Re: [O] Insert subheading at top respect content

2019-08-22 Thread Carsten Dominik
You are welcome. Good to hear that you have a good solution now. Carsten On Thu, Aug 22, 2019 at 9:14 PM Nathan Neff wrote: > > > On Wed, Aug 21, 2019 at 12:28 AM Carsten Dominik wrote: > >> Hi Nate, >> >> What do you mean by passing "the right argument". Which argument do you >> want to

Re: [O] Insert subheading at top respect content

2019-08-22 Thread Nathan Neff
On Wed, Aug 21, 2019 at 12:28 AM Carsten Dominik wrote: > Hi Nate, > > What do you mean by passing "the right argument". Which argument do you > want to pass? > I mean the hard-coded 1 on org-next-visible-heading. > > At first, I thought the direct way to fix your function would be > >

Re: [O] Insert subheading at top respect content

2019-08-20 Thread Carsten Dominik
Hi Nate, What do you mean by passing "the right argument". Which argument do you want to pass? At first, I thought the direct way to fix your function would be (defun njn-subheading-respect-content () (interactive "") (org-next-visible-heading 1) (org-insert-heading nil) ) because in

Re: [O] Insert subheading at top respect content

2019-08-20 Thread Nathan Neff
On Tue, Aug 20, 2019 at 5:42 PM Nathan Neff wrote: > > > On Fri, Aug 16, 2019 at 4:03 AM Carsten Dominik wrote: > >> >> >> On Fri, Aug 16, 2019 at 10:21 AM Nathan Neff >> wrote: >> >>> Hello all, >>> >>> Something that's eluded me all this time has been an >>> "Insert subheading, after the

Re: [O] Insert subheading at top respect content

2019-08-20 Thread Nathan Neff
On Fri, Aug 16, 2019 at 4:03 AM Carsten Dominik wrote: > > > On Fri, Aug 16, 2019 at 10:21 AM Nathan Neff > wrote: > >> Hello all, >> >> Something that's eluded me all this time has been an >> "Insert subheading, after the content, but before other subheadings" >> >> For example: >> If my

Re: [O] Insert subheading at top respect content

2019-08-16 Thread Carsten Dominik
On Fri, Aug 16, 2019 at 10:21 AM Nathan Neff wrote: > Hello all, > > Something that's eluded me all this time has been an > "Insert subheading, after the content, but before other subheadings" > > For example: > If my cursor is anywhere between lines 1 and 4, I would like the subheading > to be

[O] Insert subheading at top respect content

2019-08-16 Thread Nathan Neff
Hello all, Something that's eluded me all this time has been an "Insert subheading, after the content, but before other subheadings" For example: If my cursor is anywhere between lines 1 and 4, I would like the subheading to be inserted at line 5. 1* Heading :PROPERTIES:... 2 Some content 3