[O] :noweb expansion happens before :prologue expansion. Why?

2019-08-20 Thread Vladimir Nikishkin
Hello, everyone I wanted to do the following #+name: common #+begin_src scheme (display "Common header\n") #+end_src #+begin_src scheme :noweb yes :prologue "<>" (display "particular block") #+end_src This fails, because :prologue is language-specific, and is expanded later than :noweb, so I am

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] Custom function: Detect agenda mode

2019-08-20 Thread Samuel Wales
good point. On 8/20/19, Adam Porter wrote: > Samuel Wales writes: > >> i do (eq major-mode 'org-agenda-mode) > > That works, but you should probably use: > > (derived-mode-p 'org-agenda-mode) > > > > -- The Kafka Pandemic What is misopathy?

Re: [O] Custom function: Detect agenda mode

2019-08-20 Thread Adam Porter
Samuel Wales writes: > i do (eq major-mode 'org-agenda-mode) That works, but you should probably use: (derived-mode-p 'org-agenda-mode)

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] Custom function: Detect agenda mode

2019-08-20 Thread Samuel Wales
i do (eq major-mode 'org-agenda-mode) On 8/20/19, Nathan Neff wrote: > Hello all, > > I would like to map the same key to different functions in evil mode. > > For example, ",s" should be a shortcut to the schedule command. > > I'd like to have one function that I would map the command to, which

[O] Custom function: Detect agenda mode

2019-08-20 Thread Nathan Neff
Hello all, I would like to map the same key to different functions in evil mode. For example, ",s" should be a shortcut to the schedule command. I'd like to have one function that I would map the command to, which would call either org-schedule or org-agenda-schedule, depending on whether the

[O] Unschedule an item from the date prompt

2019-08-20 Thread Nathan Neff
Hello all, I seem to remember a way to unschedule an item from the date prompt. I found: https://orgmode.org/manual/The-date_002ftime-prompt.html But there's nothing mentioned there. Is there a way to unschedule something other than C-u C-c C-s? Just curious --Nate

Re: [O] bug: org-table-convert-region-max-lines causes a "Code block produced nop output"

2019-08-20 Thread Charles Millar via Emacs-orgmode
A follow up On 8/20/19 9:32 AM, Charles Millar via Emacs-orgmode wrote: In an org file I have a source code block to convert entries into and generate a recutils file #+begin_src sh?? :file SomeFile.rec cat << EOF # -*- mode: rec -*- Begin recutils file Approximately 770 records in

[O] bug: org-table-convert-region-max-lines causes a "Code block produced nop output"

2019-08-20 Thread Charles Millar via Emacs-orgmode
In an org file I have a source code block to convert entries into and generate a recutils file #+begin_src sh?? :file SomeFile.rec cat << EOF # -*- mode: rec -*- Begin recutils file Approximately 770 records in recutils format each with about 20 entries; over 17,000 lines including line

Re: [O] NLS/Augment

2019-08-20 Thread Fraga, Eric
On Tuesday, 13 Aug 2019 at 20:39, Jean Louis wrote: [...] > So is the concept of hierarchical data management or structured data > management. You might be interested in reading about Plan 9: https://9p.io/plan9/ -- Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-401-gfabd6d

Re: [O] change font-size in python plots depending on context

2019-08-20 Thread johanna . may
Hi there, thanks to Thomas and Eric. I actually found a rather stupid mistake: I was already using a var (for the png filename generation) and the header did not read the next :var. So I added ,fs=fontsize to the first :var and now it works. I will have a look Eric's function of how to get the

Re: [O] Pandoc and Org-mode: list indention

2019-08-20 Thread Joost Kremers
On Mon, Aug 19 2019, Devin Prater wrote: I’ve taken it upon myself to clean all this up, and Org-mode does it all. The only problem is, when I convert from HTML to Org-mode using Pandoc, just doing: Pandoc -I lesson1.html -o lesson1.org The lists are not made into