Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

4
votes
0answers
17 views

Image and text side by side in Org-mode – how to flow text around an inline image?

Images can be easily displayed inline in an Org-mode file. #+STARTUP: inlineimages * headline 1 ** headline 2 [[./dog-o.jpg]] This text should be displayed to the right of the image above. ...
0
votes
1answer
18 views

what does grave accent ` and aposrophe ' do in elisp regular expression?

I use C-h v to check the doc about this variable org-agenda-file-regexp. It says it is a variable defined in ‘org.el’. Its value is "\\`[^.].*\\.org\\'" What is the meaning of grave accent ` and ...
0
votes
1answer
13 views

How can I get superscripts at the beginning of a line in org-mode?

I'm writing a document (in org-mode) that quotes another document, including its footnotes. As such, I'd like to have a line like: #+BEGIN_QUOTE ^123 The contents of footnote 123 go here. #+...
1
vote
1answer
50 views

Insert date using a calendar - where other language rather than english is desired

I am interested in inserting custom dates using the calendar, I found Insert date using a calendar which turned out to be quite useful. Org calendar : change date language? seems to have no effect (I ...
0
votes
0answers
16 views

How can I join these two org-templates, so that the first block can be an option between the other entries?

(use-package org :ensure org-plus-contrib) (use-package org-contacts :ensure nil :after org) (use-package org-capture :ensure nil :after org :preface (defvar my/org-...
5
votes
3answers
435 views

Diminish org-indent-mode

I have enabled org-indent-mode in all org files as such: (add-hook 'org-mode-hook 'org-indent-mode) Now I want to diminish the "Ind" minor mode, which seems to be beyond my abilities. I know the ...
0
votes
0answers
23 views

org-agenda-stuck project' levels

The docs describe the stuck project's level in The Org Manual: Stuck projects The built-in default assumes that all your projects are level-2 headlines, and that a project is not stuck if it has ...
0
votes
1answer
40 views

Retrieve the total time CLOCKED over a given interval

Question: How can I retrieve, over a set of files S (in particular: over my agenda files + their archive files) the total time clocked (as the return value of an elisp function; not as a clock table)? ...
2
votes
1answer
67 views

Adding mathbb letters to org-entities

To make it so that, i.e., \vdots is displayed as ⁞ one can: (add-to-list 'org-entities-user '("vdots" "\\vdots{}" t "&x2999" "..." "..." "⁞") ) However,...
0
votes
0answers
24 views

org-babel results with accented characters

I have a problem with the output of org-babel code blocks when this output contains accented characters. For example, if I execute this code block: #+name: test_accented #+begin_src python :results ...
0
votes
1answer
16 views

how to use link path to set the background face?

I would like to use a custom link, i.e. [[h:blue][blue highlighted text]], to create highlighted text. The background color of the highlighted text is specified by the path. I have (org-link-set-...
1
vote
1answer
34 views

Search across tags / titles in org mode

I keep some files in RST and rst-mode has C-c C-t C-t runs the command rst-toc which open all section titles in separate buffer. I can search ignoring actual document content which tends to have ...
5
votes
2answers
157 views

Org-refile locks up file when used from org capture

I like to use org-refile to refile notes during the capture process. But, since org-refile does not saves the file after the refiling is done, the file ends up being locked up and I need to visit the ...
10
votes
1answer
248 views

Highlighting upcoming dates in org mode agenda

I have entries in my org file similar to: * Birthdays :PROPERTIES: :CATEGORY: birthday :END: %%(org-anniversary 1981 1 2) Harry (%d) What I would like is for these to appear in the agenda (say) 2 ...
3
votes
1answer
443 views

Exporting Org in Landsacpe

I have an org document I'd like to export to PDF - with several wide tables columns in it - so much so that it makes sense to export the whole document in A4 landscape to keep the orientation ...
0
votes
1answer
40 views

How to escape a character within a heading in org-mode?

Documenting this because I could not find an answer in stack exchange. A heading such as this breaks during LaTeX export: * MITRE ATT&CK Rather than switching to a code-block, and loosing the ...
0
votes
1answer
24 views

Retrieving a view of org-mode tasks completed within a range and that have a non-nil property

How can I retrieve, over an elisp list of files list-of-files, a view of all org-mode headers that (i) were CLOSED in between start and end such that (ii) these headers have a property P defined (that ...
0
votes
1answer
9 views

Org mode: Issue with export using HTML template with #+SETUPFILE

I have download two HTML themes from this git to my home directory. Following the instruction I have put the following line on top of my .org file: #+SETUPFILE: "/home/myusername/org-html-themes/...
0
votes
0answers
11 views

How to prevent org-resolve-clocks from exiting on wrong key/Non-character input-event?

I use org-clock-idle-time to automatically resolve on idle time. When I get back to my computer, Emacs runs org-resolve-clocks-if-idle which runs org-resolve-clocks with the idle time. This is great,...
0
votes
1answer
40 views

org-mode datetree forward one day in the future

At work we do standups about what we did yesterday, I'm using datetree for my org-capture but the date recorded is by default today's date, I would like to change this so the date is of tomorrow ...
1
vote
0answers
140 views

How to move by columns in an org table?

The title pretty much says it all. I'm looking for something similar to M-f and M-b to move right or left column-wise in an org-mode table.
1
vote
0answers
21 views

unbind ALL C-x and C-c shortcuts in org-mode with CUA-mode

For a special purpose application of emacs with org-mode I want to dramatically simplify the shortcuts. I'm already quite satisfied with my config based on CUA mode. The one thing that bothers me ...
0
votes
0answers
6 views

Obtaining the results of babel evaluation of docker-compose commands

this is an odd behavior which seems to happen for some docker-compose commands but not others. If I try to evaluate certain commands like #+BEGIN_SRC sh dir: . docker-compose exec app rspec #...
1
vote
0answers
20 views

Customize org-mode state change logging text

How can I edit the format of the org-mode state change logging text? Specifically I'd like to be able to log with a timestamp excluding the time like - State "DONE" from "TODO" [2019-05-...
2
votes
1answer
51 views

Org export to html

I tried exporting several org files to HTML without success. That came as a surprise, since I've done that tons of times. The message I was getting on the minibuffer shed some light. End of file ...
0
votes
0answers
13 views

Cannot refile to last subtree in narrowed buffer

In org mode, evaluate the expression and narrow the buffer to the first subtree (C-x n s). * one (setq org-refile-targets '((nil . (:maxlevel . 3)))) ** two ** three * four Now put point on the ...
1
vote
0answers
18 views

Insert the same item in multiple rows in orgmode

I would like to be able to insert the same string in consecutive rows of some column of an org-table. I am using spacemacs and there is a vim way to insert the same instances in all visually selected ...
0
votes
1answer
46 views

Retrieving All Tasks “CLOSED” Inside a Time Interval

Question: How can I retrieve, over a set of files S (in particular: over my agenda files + their archive files) all org-mode headers that are marked "CLOSED" (i.e., have a "CLOSED" stamp like CLOSED: [...
1
vote
1answer
67 views

Fontify headline with todo keyword color

I would like to fontify headlines with the same color/weight as their TODO keywords. So for example, the default is like this: TODO Headline And I want it to look like this: TODO Headline Any ...
1
vote
0answers
28 views

Make a call to katex to render LaTeX from Org to HTML

This would allow the resulting HTML buffer to be viewed in eww, then allowing org-preview-html to work with LaTeX equations. Any inline LaTeX equations in the Org document ($eq$ and etc) can be ...
1
vote
1answer
42 views

How to disable the “Press M-x…” title line of org-search-view command's output?

I use GNU Emacs 26.1 and want to remove the following enormous message Press ‘M-x org-agenda-manipulate-query-add’, ‘M-x org-agenda-manipulate-query-subtract’ to add/sub word, ‘M-x org-agenda-...
0
votes
2answers
207 views

Emacs not loading org-agenda-files on startup

So i've put this in my emacs.org: (setq org-agenda-files (list "~/todo.org")) But whenever i close and reopen Emacs, my org-agenda is empty until i reload my config-File. Is there anything ...
1
vote
0answers
18 views

Leave noweb references in Org-Babel unevaluated with variables

I'm currently getting into Literate Programming with org-mode in Emacs. One of the key features to make it tractable as a programming style is macros. I would like to be able to do something like this:...
0
votes
0answers
18 views

How to indent truncated lines?

For me it seems like a really ruff edge that default spacemacs comes without an option to give my lines a correct indentation, when they are wrapped. (Click the first link if you want to see the issue ...
2
votes
2answers
52 views

Open org-mode links to info in different window?

I was wondering if anyone knew of a way to open links to info pages (Emacs manual) from org-mode without changing the current buffer to that info page? The reason I would like to do this is because I ...
0
votes
1answer
138 views

How to jump to a heading in a date tree

What's the easiest way to jump to a heading in a datetree programmatically? I basically want: whenever I open my org file with file+olp+datetree structure to jump to a current day, if there's no ...
23
votes
4answers
5k views

org: How to sort headings by TODO and then by priority?

I often have a list like this: * Main heading ** TODO [#A] Make world better ** TODO [#B] Make Emacs better ** TODO [#B] Customize emacs ** DONE [#C] some task ** TODO [#A] Launch rocket to mars I ...
0
votes
0answers
18 views

Insert a node at a specific place in org-mode

I'd like to insert a node into a specific place. Each day, I log in, expand the following nodes: "Engineering worklog" > "2019" > "Q2" > "week 20" > "05/20/15". I'd love to have a single command to ...
0
votes
1answer
47 views

Org capture template output to two files

I am currently using two separate Org files to manage my work Todos. One is a file that I edit directly and keep notes on each todo task (Work.org). The other is a schedule file which is synced with ...
0
votes
2answers
26 views

How to suppress output of link with elisp function in org-mode?

When using elisp function in the link in org-mode, like [[elisp:(func)][text]] after clicking the link, the function itself will be printed in *Message* buffer. How should I prevent it from being ...
0
votes
0answers
26 views

Change in org-ctrl-c-ret?

I use spacemacs only for an org-mode todo file. I recently re-installed spacemacs and emacs and noticed a behavior change. Let's say I have a file like: * TODO Header - List item 1 - List ...
1
vote
2answers
136 views

Capture under heading

If we have org file with datetree and repeating actions, how can I capture under last heading of some level. Let's say we have this: * 2018 ** 2018-W47 *** 2018-11-21 Wednesday **** Gym Session **...
0
votes
1answer
62 views

How to use org-capture in a function without killing the buffer, customize capture refile

I am trying to create a function, which captures a note and then copies the same note to another file (In my case for a google calendar synchronization). The problem ist that after giving the capture ...
3
votes
1answer
80 views

I want shell code blocks executed via emacs org babel to be verbose, stoppable, interactable, asynchronous

I want shell code blocks executed via emacs org babel to be a) verbose - output should be shown live b) stoppable c) interactable d) asynchronous Has this been already done by a third party package/...
4
votes
1answer
123 views

Eval SQL in Org Babel using sql-connection-alist for credentials

I would like to evaluate SQL source blocks in Org Babel using the connections I have set up in sql-connection-alist from sql-mode. This way I can save database credentials in a private (Elisp) file ...
0
votes
1answer
70 views

Keymap on region only updating from mouse click

I have defined some keymaps on org-mode src-blocks. If I click in the block with a mouse, I see the keymap is changed, e.g. the menu items change, and the new keybindings are active. However, if I use ...
0
votes
1answer
32 views

Implmentation of org-id-goto but for arbitrary properties?

Does there exist a function similar to org-id-goto, but instead one that can allow you to jump to tasks that have arbitrary property names (other than just "ID")? So for example (org-goto "ID1" "VALUE"...
2
votes
2answers
61 views

How can I insert org-capture-templates into a document I'm editing

I have a capture template for TODO items defined as follows ("t" "todo" entry (file "~/org/refile.org") "* TODO %?\n%U\n%a\n" :clock-in t :clock-resume t) While editing a document, I ...
11
votes
4answers
1k views

Convert org-mode structure to dot source

Fast generation of graphs from a tree-like structure can be very useful when making notes in org-mode that require sharing and or beautification for other humans. I couldn't find any way to do this ...
0
votes
0answers
18 views

`org` mode filtering on `TAGS` containing the @ character

I use the format @User as a TAG in some TODO lines in my org files. I've just noticed that, when calling the sparse-tree function, with C-u / m (so that it only acts on TODO items), or equivalently I ...