Questions tagged [org-mode]

is an Emacs major mode for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system. Because Org mode is a vast subject area, other tags must accompany the `org-mode` tag.

Filter by
Sorted by
Tagged with
0
votes
0answers
26 views

How to create plain text links or string variables that is displayed as its value in the buffer?

In my org-mode documents I want to be able to write: #+VAR: that_year=2020 and then somewhere in text use it like: "And [[var:that_year]] we are going to..." which should be interpreted and ...
0
votes
1answer
56 views

Hooks for agenda

I need to run a function every time I run org-agenda. However, I need it to run prior to the agenda. I wasn't able to find any hooks for the agenda command in the documentation. Any guidance is ...
0
votes
1answer
27 views

org-sort expands all subtrees and drawers

When I use org-sort (Ctrl-^) all the to be sorted subtrees are expanded including their properties. I kind of loose orientation. I have to collapse them manually again or use overview (Shift-Tab) and ...
0
votes
1answer
24 views

Multiple citations with just one pair of braces

I want to have multiple citations appear in my exported PDF as below: some well-studied fact [12, 13, 20] blah blah But the only way I know to do this is by using inline latex: some well-studied ...
0
votes
0answers
31 views

How to insert quotations in Org tables?

In org mode, how does one insert a quotation in a table cell? I know that #+BEGIN_QUOTE ... #+END_QUOTE is the way to go outside a table, but I can't find a way to use it inside a table cell.
1
vote
1answer
27 views

Can org-babel filter code blocks?

I have a general emacs.org file that I load at init time with org-babel. It's made for desktop use, and I load a bunch of IDE features, face customizations, powerline and so on. However, I also ...
0
votes
0answers
13 views

Recursive task - using diary-style expression

I'm using diary-style expression entries to add the my lecturing schedule to the agenda * FIS-245 :fis245: SCHEDULED: <%%(or (diary-cyclic 7 4 6 ...
0
votes
1answer
31 views

How do I automatically clock-in for SCHEDULED items with org-capture?

I would like to setup my org-capture template for meetings so that I get automatically clocked into the meeting header on the day and time of the meeting. So given: * Meeting with client SCHEDULED:...
0
votes
2answers
67 views

How can I change the TODO state of a task in a given date?

I want to change the TODO state of a task automatically on a give date. I would expect something like this: * FUTU Some task that only becomes actionable of a given date :PROPERTIES: :ACTIONABLE: ...
0
votes
2answers
68 views

Executing code within Org mode `begin_src` … `end_src` blocks

How to configure Emacs to run code in different languages as shown in this post? Specifically, how to run these type of code blocks #+begin_src shell :results list ? After 9 years of vim, that post ...
0
votes
1answer
15 views

call org-html-export-to-html from script failure

I can run org-html-export-to-html on emacs successfully. but when I try to call it in script as below: #!/usr/bin/emacs --script (require 'org) (defun dired-org-to-html () (let* ((org-root ".") ...
0
votes
0answers
18 views

Show only the real matches in clock table - without their parent headlines

The clock table of org mode has so many great features but I couldn't find this: I'd like to have only the headlines with a specific tag without their parents. Example #+BEGIN: clocktable :scope ...
2
votes
2answers
55 views

stop stripping result of :session for python print statement

Since default value for :result header is value print statement will only show with :result output #+BEGIN_SRC python :results output print(' hello') #+END_SRC #+RESULTS: : hello but same ...
0
votes
2answers
34 views

Use structured template in numbered list

Is there any way to include a structured template (#+Begin/end_SRC) in the middle of a numbered list without ruining the numbering? Here is a MWE: 1) First question #+begin_quote Quote needed ...
2
votes
2answers
71 views

In Org mode how to link to a specific line or keyword in a Help or Texinfo page?

For example, I want to create a link pointing to line 16 or the start of the first found keyword "binding" in the projectile mode help page ([[help:projectile-mode]]). I tried the double colon format ...
0
votes
1answer
16 views

Org mode HTML export presets

When I export something with org mode to html, with it comes a load of presets such as id, labels, classes, preambles and post ambles. For example: <div id="outline-container-org16cf335" class="...
0
votes
0answers
36 views

How to call a function in a list and substitute its return value in the same position?

I'm trying to use the following property value in org-publish-project-alist :html-divs ((preamble "header" "preamble") (content "main" (org-export-output-file-name)) (...
0
votes
2answers
57 views

Add-advice :before org-edit-special

I want to advise org-edit-special so that a function runs before Emacs enters org-src-mode. I am not particularly tied to org-edit-special. If there is a hook like org-src-mode-hook (but that triggers ...
0
votes
0answers
31 views

Echo message when copying repeating tasks to archive

I like to move through past days in org-agenda and see every task I logged done on that day. In order to do this, I wrote a function (my/archive-repeating-task) that checks if a task repeats and, if ...
0
votes
0answers
35 views

Is there a limit for the length of tag names in org mode? (hanging up by long names)

In the latest version of org-mode (9.3.6) I get a strange behavior. Setup: empty init.el file (just the information to load the latest org-mode package from the elpa directory) empty org file ...
1
vote
1answer
53 views

org mode: expand all headings that match a search

How can I expand all the headings with a name matching a search term? For example, take the following fully expanded document: * Famous Animals ** Pigs - Ace - Babe ** Cats - Duchess - ...
0
votes
2answers
52 views

Extract value from org-babel-get-src-block-info

I have this elisp code: #+BEGIN_SRC emacs-lisp :dir ~/org/test (defun test () (setq args '(org-babel-get-src-block-info)) (cdr (assoc ':dir args))) (test) #+END_SRC But when I execute the code ...
0
votes
0answers
43 views

Pass org-babel header arguments to elisp function

I have an org-babel code block like so: #+BEGIN_SRC R :var a=~/path/to/project Do something here #+END_SRC How can I reference variable a without having to evaluate the block?
0
votes
0answers
7 views

org-mode: add parent node when exporting to iCalendar

I have an org file: * My Project ** TODO Step1 SCHEDULED: <2020-04-24 Fri 18:00-18:30> When exporting to an iCalendar file, I can only see Step1 in my Apple Calendar, that is not what I ...
1
vote
1answer
134 views

File org-capture entry under current headline at point

Let's say that I have a tree of tasks like so: * TODO Launch website ** TODO Get database running *** TODO Select MySQL vs. PostgreSQL Let's say I'm looking at the "Select MySQL vs. PostgreSQL" and ...
1
vote
1answer
75 views

Display inline eps images in Org mode

Maybe quite a noob question, but I can't figure out how to display inline eps images in an org file. There is no problem with png (or jpeg, ...) images, but I can't preview eps images. Here is a ...
1
vote
1answer
40 views

At what point are file-local and dir-local variables applied to a newly-loaded buffer?

I'm currently attempting to call the function company-org-roam--init-hook from org-mode-hook in order to enable the company-org-roam backend in org-roam buffers. In some of the files in which this ...
0
votes
1answer
40 views

Finding org-mode bindings

I sometimes want to insert a new heading without first jumping to the end of the current tree. It was fairly simple to guess that this could be achieved by calling (org-insert-heading), but from C-h ...
0
votes
3answers
42 views

org-mode spreadsheet multiply 2 columns element-wise using GNU Emacs Calc formula

I am looking for a way to multiply 2 columns element by element and then sum the resulting vector. I have the following example: | | | col1 | enable | |---+-------+------+--------| | | ...
2
votes
1answer
24 views

Auto-generating a fully clocked agenda

Org agenda supports a powerful exporting function (org-agenda-write), which exports your agenda view to pdf, ps, html.. format beautifully. In this post, I hope to make that process automatically. ...
1
vote
1answer
30 views

Can orgmode be made to open all property drawers by default upon opening my document?

I'd like all the property drawers of my org document to be expanded by default when opening my document or launching Emacs with the org document already in my persistent desktop file. I have the ...
1
vote
1answer
26 views

org mode give NAME to clocktable to parse with perl

I try to give a name to a clocktable : #+BEGIN: clocktable :scope file :maxlevel 2 #+NAME: d1 #+CAPTION: Clock summary at [2020-04-21 mar. 14:31] | Headline | Time | |--------------+--------| | ...
0
votes
1answer
33 views

set org-mode as a source-language in an org-mode document

I want to export an org-mode document to markdown. My document contains some content like this: #+BEGIN_SRC * User-defined Markers ** MARKER_1 #+END_SRC I would like to demonstrate how someone ...
0
votes
1answer
15 views

shortname for complex filter in org agenda

I want to give a shortname to a regular filter I use for agenda. To prepare some meeting, i have a list of task / note with tag. I filter tag in org-agenda and before the meeting, i use org-agenda ...
0
votes
2answers
59 views

How to get to my day page with one key

To get to my day page (agenda), currently I have to type in the following keys C-c a (binded to (org-agenda)) a (Agenda for current week or day) d (to switch from week-view to day-view) C-c C-...
1
vote
0answers
17 views

ESS R workflow with package management in renv (or Packrat)

I do all my R development in Emacs via org-mode and ESS. All of my R projects are managed out of a single org-mode document (studies.org). Each project has a header and is tangled to its own project ...
2
votes
1answer
19 views

How to find all TODOs that are scheduled today or before today or TODOs that are not scheduled

How to find all TODOs in org-mode that meet any of the following conditions: TODOs that are scheduled to be done today TODOs that are scheduled to be done before today TODOs that are not scheduled
0
votes
1answer
62 views

Alternate citation with Org-Ref

I am used to manage my bibliography with org-ref and I am very satisfy with it. Nevertheless, in the context of a grant proposal writing, space is limited. So I would to save the space allowed to ...
0
votes
0answers
7 views

ESS/Org-babel - remove long prompt

Consider the following org-babel code block: #+BEGIN_SRC R :session *R* getwd() #+END_SRC If I first enter org-edit-special and then ess-eval-line my *R* buffer displays as expected: > getwd() ...
0
votes
2answers
25 views

Set ESS working directory from header-args with org-babel sessions

I am experiencing a very strange behavior with org-babel code blocks. When I operate without the :session tag, I am free to use :dir to set my working directory. As you can see, the following code ...
0
votes
0answers
21 views

Evaluate org-babel header arguments consistently

Consider the following org-babel code block: #+BEGIN_SRC R :session *R* :dir ~/_test getwd() #+END_SRC When I C-c C-c on my source block, I get the following result, as expected: #+RESULTS: : /...
0
votes
1answer
58 views

Getting Latex preview to work with org mode (.dvi not found)

In my .org file I embedded a simple Latex segment: $f(x) = x^2$ Then I use the following command to generate a preview for that segment: org-toggle-latex-fragment But I get an error: org-...
1
vote
0answers
129 views

org-roam buffer default toggled on

I'm still new to org-mode and am trying to set up this org-roam package. My goal is to have the buffer containing backlinks automatically show whenever I open a file, but can't seem to get that ...
1
vote
1answer
34 views

How to set the end time of a scheduled task in org-mode?

I know I can schedule a starting time for a task using C-c C-s, but is there a way to set a scheduled end time for a task? So that I can see my scheduled range in the agenda view, as follows. Week-...
0
votes
0answers
21 views

org-mode done timestamp only on specific tags

Hello I am using Emacs with Spacemacs and I would like to have the closed tag only if I select done and not if I select my second option which is watched. As you can see in the picture it shows for ...
0
votes
1answer
29 views

Make org-delete-char (C-d) delete extra space after deleted word

Hitting C-d (org-delete-char) in an Emacs org file deletes the word following the cursor. I would like to delete the extra space left also without having to use DEL. I.e. one action to delete word and ...
0
votes
1answer
25 views

Auto evaluate org mode source block on file save

For example, whenever I edit my config, I run this block to reload the config: #+begin_src emacs-lisp :tangle no :var data=replace-symlink :results none (org-babel-load-file (locate-user-emacs-file "/...
1
vote
1answer
46 views

Opposite of org-narrow-to-subtree

I have an org document and I go to one of it's subheading and issue this command: org-narrow-to-subtree As documented, it narrows the buffer to the current subtree. Now how do I un-narrow it ? I ...
0
votes
1answer
14 views

evaluate src blocks only if individually pressed and not if globally executed

Is there a way to enable source block execution only if C-c C-c is pressed and keep them silent when C-c C-v C-b is used, i.e. all source blocks are executed?
0
votes
0answers
22 views

Text properties overriden in org-agenda header

I do load a sexp entry - as a diary- from one of my agenda files which calls a custom function. Everything works fine except that the propertized text using utf glyphs is overriden in the agenda view ...

1 2 3
4
5
80