2022 Developer Survey is open! Take survey.

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
1 vote
1 answer
124 views

How to add a default #+SETUPFILE: header to every published org-mode file

I have a bunch of org-mode files in a directory structure and would like to export to html using org-publish. Not all of them have the #+SETUPFILE: header, and I'd like to avoid having to add that in ...
0 votes
1 answer
71 views

Can TODO headings in org mode inherit part of the heading style, specifically fontsize?

Emacs initiate here, I've just now added different heading sizes for org-mode to my init file, according to the answer on this page: Setting for org-mode bullet font size (custom-set-faces '(org-...
4 votes
2 answers
542 views

org mode: how to expand <s after heading without indentation?

I am using Org Mode version 9.3 with (require 'org-tempo) in my configuration. Observed behaviour: A. Given * Heading <s TAB produces * Heading #+begin_src #+end_src B. Given * ...
1 vote
3 answers
72 views

Checkbox statistics in nested headings

I would like to see a summary of checkbox statistics in next items within subheadings. In the following example the subheadings update when I check or uncheck a checkbox. However, the top heading ...
0 votes
1 answer
28 views

Assign function to one key that marks a heading DONE and jumps to the next TODO-style heading

I would like to just use one key to mark a heading DONE and jump (skip all DONE-style headings between) to the next visible TODO-style heading. I found a suggestion here, but I get the error apply: ...
0 votes
1 answer
22 views

C-c C-c on #+PROPERTY: keyword line changes the mode from Org to TeX

Context Linux Mageia 8 GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.24, cairo version 1.16.0) of 2021-04-01 Issue With: this (rather long) org-mode file, open with emacs -Q, C-c ...
17 votes
6 answers
2k views

Reducing LATEX_HEADER clutter at the top of my org files

I often write notes in org mode and export them to latex. However, because some documents are complex I need to include many latex packages at the top like so: #+LATEX_HEADER: \usepackage[margin=1....
0 votes
0 answers
14 views

Replicating Doom's Tab Key Behavior Using Evil in Org-Mode

When I'm editing an Org file using Doom Emacs in insert mode and my cursor is on the line of a heading, the Tab key seems to demote the heading while Shift-Tab seems to promote the heading. On the ...
0 votes
1 answer
125 views

How to put a html attribute in the header of an orgmode file so it applies to all images on export?

To export to html an orgmode file which has links to multiple images, each of which has to have a given width, you can put something like #+ATTR_HTML: :width 800 above each image. Is there a way to ...
0 votes
1 answer
57 views

Footnote-like custom function for org-roam-insert

I am trying to make a custom function for org-roam which inserts footnote-like links in the current note. The idea is to insert links on this way The logistic regression [fn:20200612000001]... * ...
0 votes
1 answer
30 views

Specifying a subdirectory in the argument of :tangle: effect only non-interactively

Recently, I added to this answer to the question “How to specify a directory to tangle all code blocks into”, the following comment: “AFAICS, specifying a subdirectory in the argument of :tangle ...
0 votes
1 answer
109 views

Org-roam raises "Selecting deleted buffer" error after formatting laptop

I recently formatted my laptop's hard drive and reinstalled my OS (Manjaro in dual boot with Windows 11). I restored my entire emacs configuration on Manjaro and everything seems to work properly, ...
1 vote
2 answers
47 views

How to generate well-aligned Equal Signs?

There are many project description files using a quite neat structure like this: Introduction ============ ......bla..bla..... Details ======= ......bla..bla..... My question is: Is there any ...
0 votes
0 answers
10 views

Diff SQL in Literal Examples

I need to store a diff of two SQL files in an org-mode note as a Literal Example. Part of that diff looks like this: +INSERT INTO `foo` VALUES (64,99,1,4,64); -INSERT INTO `bar` VALUES (1,1,'2022-04-...
2 votes
1 answer
272 views

org capture at point as sibling of heading

org 9.2 used to support this feature. when (org-capture 0), it used to place the selected template entry as a sibling of heading at point. in org 9.3 however, it fully respects the heading level ...
1 vote
1 answer
68 views

Orgmode link description without https

I would like to have a capture template that would take a pasted link like: https://orgmode.org/manual/Completion.html and return: [https://orgmode.org/manual/Completion.html][orgmode.org/manual/...
0 votes
0 answers
23 views

Writing elements of directory to file

I am trying to set up my own system for a personal wiki using my org-mode files. I currently have my notes organized into directories for different classes/topics that are all contained in a single ...
0 votes
2 answers
93 views

Automatically `expand-abbrev` with `org-meta-return` and `org-insert-heading-respect-content`

I take notes with org-mode and abbrev-mode. Normally pressing SPC or RET leads to any abbreviations at point expanding before the edit is made. This doesn't happen when I use C-RET (org-insert-...
0 votes
1 answer
28 views

Org mode: Open more than one level for a certain heading?

Org mode: Open more than one level for a certain heading? For example * test... * test2... If i open test... it should open all levels, but test2 should stay the same. * test ** testa *** testb * ...
2 votes
2 answers
319 views

How to specify a directory to tangle all code blocks into

I am writing a report in latex, many of which contain code blocks which will be rendered with asymptote. Since all the scripts will be tangled into the same subdirectory asyscripts, I don't want to ...
1 vote
1 answer
429 views

Using org-roam tags when org publishing

When publishing it's possible to get a list of filetags for an org note by doing something like (org-export-data (plist-get info :filetags) info) in publish.el and loop over them to create markup. I ...
0 votes
2 answers
37 views

Capturing output scheme when executing a code block in org-mode

I cannot find a way to intercept the output when I evaluate a scheme code block as below (I'm trying with Geiser): #+NAME: test #+BEGIN_SRC scheme :session sicp :lexical t :results output verbatim ...
1 vote
1 answer
42 views

How to export bibliographies with Org-Mode?

Org-Mode can now handle citations through #+bibliography: biblio.bib and org-cite-insert. For example, [cite:@ref1; @ref2] in an org file, will show @ref1 and @ref2 short content contained in biblio....
0 votes
0 answers
35 views

How to update org mode?

I have emacs 28.1 (released on Apr 4, 2022) installed through snapcraft. When I do M-x org-version it says Org-mode version 9.3.4 (which is more than two years old), when the latest version is 9.5 (7 ...
2 votes
1 answer
233 views

problem with org-impress export

I want to use https://github.com/kinjo/org-impress-js.el with emacs-25.1 and the last org-mode. Here my configuration: (eval-after-load "org" '(progn (add-to-list 'load-path "~/.emacs.d/...
0 votes
2 answers
131 views

How to include an image in the cover front before OR after the title in exported ODT from org?

I have an org document which I export to several different formats: Markdown PDF HTML ODT I need to include an image (the logo of the company) in the cover front page, before OR after the title of ...
1 vote
1 answer
33 views

How to use an org mode document's title in the LaTeX export headers?

I'm using org mode to write letters using a custom LaTeX class provided by my employer. With this class I have to define the title of the document in the LaTeX header like this: \def\subject{This is ...
1 vote
1 answer
207 views

Repeat tasks - mark done in a datetree

In my org file, I have the following lines: #+STARTUP: logdone logrepeat logreschedule logredeadline logrefile logdrawer #+ARCHIVE: ::datetree/ When I mark a repeat task done, I want to: Continue ...
0 votes
1 answer
30 views

Why org-mode related settings aren't applied on desktop.el restored .org files?

When my emacs start, previously visited buffers/files are restored with desktop.el. So far so good. But my settings related to org-mode files are somehow not applied. If I open a new org file or if I ...
0 votes
1 answer
51 views

sending the results of org-mode block execution to another buffer

I'd like to be emulate something similar to using a repl with clojure/cider using org-mode where the results of the evaluation are not put in directly into the document but sent to the repl buffer. ...
0 votes
1 answer
23 views

Pass default value to org-set-property

The documentation says: (org-set-property PROPERTY VALUE) When called interactively, this will prompt for a property name, offering completion on existing and default properties. And then it will ...
1 vote
1 answer
29 views

org-publish: Wrong number of arguments: plist-get

I tried to configure org-publish with some html variables, but I'm getting this error let: Wrong number of arguments: plist-get, 3. I've debug-on-error enabled but doesn't show up the minibuffer. This ...
0 votes
1 answer
24 views

In which variable are past sparse tree queries saved

I'm executing sparse tree queries programmatically, and I'd like to save the search queries in the same history variable that org-mode uses by default. I'm guessing I can/should do this with add-to-...
0 votes
1 answer
59 views

Breaking an org-mode headline into two

I'd like to break the following headline into two headlines, where ‸ is my text cursor: * An item‸Another item I can hit M-RET or C-RET, but that will just produce * An item Another item * ‸ To end ...
1 vote
1 answer
215 views

`org-re-reveal` custom slide keyboard bindings

Per the reveal.js docs on keyboard bindings, I'd like to find a way to configure the keyboard bindings in the following way: Reveal.configure({ keyboard: { // left, down -> next 40: '...
2 votes
1 answer
178 views

Encrypt excerpts in org file (passwords only)

I keep project info in .org file together with passwords. When I share a screen it is annoying to show passwords in a buffer accidentally. I want to keep .org file in plain text format but mark some ...
0 votes
1 answer
20 views

org-mode #+SETUPFILE not working with properties drawer

Give this file :PROPERTIES: :header-args:sh: :var A="this is a" :END: #+begin_src sh echo ${A} #+end_src #+RESULTS: : this is a I would like to move the properties drawer to a separate ...
0 votes
2 answers
50 views

How to navigate to last headline in a tree?

In large org trees, it would be useful to jump from a heading to the last (direct) subheading to the last or first heading on the same level Are there functions in org-mode that accomplish this?
0 votes
1 answer
91 views

export custom element in html from org-mode

I'm trying to figure out the simplest possible way to export an html document from org-mode and have it include a working custom-element. I've tried the following, but it gives me an error message in ...
0 votes
1 answer
18 views

How do i get org mode inside balanced comments in source file?

I know the reverse is possible. You can insert source code blocks in org files. But how do I do the opposite? I have figured out a way where I can insert a link to a line in a file in my source file ...
0 votes
0 answers
33 views

orgmode - expand babel results after execution

I have installed latest orgmode (release_9.5.3-480-g0b07b3), after run C-c C-c to execute a babel code, the results block has been folded by default. How can I config it to expand the results block by ...
0 votes
1 answer
128 views

spacemacs and org-log-done

In org-mode for emacs I used to get a prompt while closing a recurring task. This gave the ability to leave a note. Trying to configure this with org-log-done hasn't worked out. Anyone an idea how ...
3 votes
1 answer
383 views

org-mode: Set maximum image width limit

Using org-image-actual-width will both downscale and upscale. I just want to downscale big images to fit the current width. Any ideas?
1 vote
2 answers
677 views

visibility cycling - org mode - save and restore folding state of sub trees

Is it possible to have a SAVED visibility in Org mode ? Something like: ,-> FOLDED -> SAVED -> CHILDREN -> SUBTREE --. '--------------------------------------------' akin to this....
32 votes
4 answers
14k views

org-mode: How to export underscore as underscore instead of highlight in HTML?

I am using org-mode, and the document I am writing has a table name whose name looks like this: tab_weekly_report. When I export the document to HTML, I expect the name to exported as ...
0 votes
1 answer
21 views

Org-Ref LaTeX citation (v3) export not working correctly

I am writing my dissertation in org-mode with org-ref to handle citations. I can not get a multi-source multi-note citation to export correctly. Here is the org-mode code: [[cite:On Van Tillian ...
2 votes
1 answer
119 views

Emacs org mode WYSIWYG editing

Intro Is it possible to replicate the following rendering of org mode blocks like in LogSeq? I have done some research but failed to find any kind of solution that would achieve it and I have a ...
1 vote
1 answer
42 views

How do I correctly use org-entry-put with "DEADLINE" in a capture

I want to set the deadline of every org-capture per some considerations and I want to do this after the capture rather than in the capture template. Given the following example code: (defun post-...
1 vote
1 answer
82 views

How to use the headline numbering for links in org-num-mode

I use org-num-mode to have headlines with a numbering 1.1.1 or 1.2.1... etc When I use org-insert-link, I want the default description to be this number. For now, it is the text in the headline but I ...
0 votes
1 answer
26 views

How do I define default language for org-mode source code blocks?

I want to do literate programming. Entering language after every code block is prone to errors and distracting. To make matters worse, I do not know how to verify if all my blocks were tangled. I can ...

1
2 3 4 5
100