# 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.

5,049 questions
Filter by
Sorted by
Tagged with
9 views

### How to have a consistent use of CDLaTeX between Org and AUCTeX?

I'm trying to evaluate the differences of writing in Org and LaTeX for my Master's thesis. A feature I find very useful in Org is CDLaTeX. To have a unique workflow between the two, I'd like to use ...
12 views

### How to set org-tag-alist on a per capture template?

I would like to have different fast tag selections depending on the capture template used. Personal template - org-tag-alist = gym, family, friends, chores Work template - org-tag-alist = ...
• 101
18 views

### How to programmatically create a new org-roam file?

I want to create a new org-roam (v2) file (i.e., an org-roam node that is a file…) from an elisp script. I know what I want the content of that file to be, and I want the file to be created and the ...
• 239
13 views

• 65
14 views

### Updating closed drawers on save safely

I have a function I wrote that edits a file's PROPERTIES drawer on save and, if it finds the "MODIFIED" field it updates it with the current time. This works great as long as the drawer is ...
• 101
22 views

### org-mode structure templates only someone works

I want to use structure templates with tab but only: <c <e <q <v work. (With emacs -Q no templates work.)
21 views

### Executing mit-scheme blocks in org-mode

Using doom emacs in my packages.el: (package! slime) (package! geiser) (package! geiser-mit) (package! scheme) in my config.el: (setq geiser-active-implementations '(mit)) (org-babel-do-load-...
• 1
13 views

### How can I prevent URL to open in the external browser when enter used in org-mode

I am using emacs inside the terminal. In org-mode when the cursor on top of a hyperlink and I press enter the URL opens in the default browser. * hello [[www.google.com]] // cursor is on the google...
• 1,078
12 views

### format old file to org-indent-mode

I want to convert file created without (org-indent-mode) to (org-indent-mode) format. Mostly it's additional 2,3,4 spaces. I was trying to fix it with string-replace. But maybe somebody have better ...
• 389
33 views

### Does enabling by default a custom input method have any side effect on the default method?

I added these to my init.el: (use-package org :ensure nil :hook (org-mode . (lambda () (org-indent-mode) (variable-pitch-mode -1) (...
• 101
29 views

### Org capture template with org-store-link

I would like to create an org-capture template such that when I select it with org-capture (which is mapped to C-c c for me), I want the capture template to ask me for the description and URL of a ...
• 101
40 views

### keep org-mode comments on export

I am drafting a document in org. Because I will have some coauthors, I will have to switch to LaTeX at some point. I am usually putting a very short description of the paragraph on top: # why do we ...
• 175
19 views

### Left-aligning the title in org export to ASCII

When I export an Org document to text, the title (along with the decorative ASCII art above and below it) is centered. What's the best way to suppress the centering, and simply have it start at the ...
19 views

### Can I add content in an org file that is under a heading that isn't part of that heading

Is there a way to add content below a heading, but signal to orgmode that the content should be at the root scope and not under that heading? Basically something like this: This is something at the ...
• 101
36 views

### How to open PDF file with Org-ref?

I have been trying to use the org-ref package with emacs and I copied the setup presented in the package where I placed the .bib files in a directory called ~/papers/ along with any pdfs of the papers ...
17 views

### image-file-name-regexp: Wrong type argument: characterp

I wanted to mark certain filenames as images and added this to my config.el: (add-to-list 'image-file-name-regexps "/preview/") But when I run org-toggle-inline-images now, I get the ...
• 224
18 views

### Re-set timestampt font in org-mode

I've updated Ubuntu to 22.04 and now the font used for time stamps in org-mode is bigger than other fonts (headlines, text, tags, etc.). This is making the file look very awkward and it's difficult to ...
• 350
33 views

### How to use fonts for normal text for org-mode tables?

Since the Emacs version upgrade to version 28 org-mode tables have become very small in size. Their font size has been reduced. Is there a way to tell Emacs to use the default font for the tables? ...
• 13
25 views

### Customise org babel block color

Customise org-babel source block color such that: when the block is folded, the #+begin_src line is the default color when the block is open, the #+begin_src and #+end_src lines are highlighted a ...
77 views

### emacs org mode: How to select multiple tags from dynamically generated tag list

If I have some tags already assigned to headlines and press C-c C-c Tab then org mode presents me with a dynamic list of all tags that are used in the file, eg: Click on a completion to select it. ...
• 103
23 views

### Global list of TODO items of type: DONE sort by date

After 'List of all TODO entries' command I like to see only DONE task so I press in ex. (e.g. ‘8 r’). But I would expect that tasks should be sorted by CLOSED date. But they are not. I was trying with ...
• 389
28 views

21 views

### Org mode LaTeX preview environmets

Is it possible to preview in org mode also environments \begin{theorem} hello world \end{theorem} I tried but I can't get the Theorem 1.2.3 header.
• 1
22 views

### How to control inter-paragraph spacing in org-mode?

After reading Org Mode Syntax, my understanding is that blank lines in the content section under a heading are used syntactically to separate paragraphs and that each blank line "belongs" to ...
29 views

### (Un-)bind keys for org-agenda in use-package

I want to unbind some keys in the org agenda display with use-package. I did the following: (use-package org :ensure t :pin gnu :config (define-key org-agenda-mode-map (kbd "<C-S-right&...
16 views

I use org-mode and I often copy-paste path in a note file. Is it possible to have link or similar so it open a new terminal and go directly in the location indicated by the path. I don't know much ...
11 views

### org-agenda stuck displaying last file in org-agenda-files list

For some reason, (after recently upgrading packages), running org-agenda via C-c a and then selecting a view from the dispatch buffer (such as a Agenda for current week or day) just shows me a buffer ...
• 371
1 vote
47 views

### Where can I find org-table formatting documentation?

I'd like to do some formatting on org-tables than I'm using. For example, make this table : |----------------+----------+---------+---------+---------| | Russia | 12000000 | 1700000 | 4950000 |...
• 371
23 views

### How to fix/restore org-metaright/metaleft behavior after upgrading org-mode (9.5)

Q: how do I fix/restore the behavior of org-metaright and org-metaleft after an org-mode upgrade? After upgrading to Emacs v. 28.1 (and therefore org-mode v. 9.5.2) via Fedora's package manager, org-...
• 31.2k
1 vote
32 views

### org-export options are off

My org export options become inactive/off. Like the picture below: compare to its previous form: And the export is not functional. I get the following message: Invalid face reference: org-dispatcher-...
55 views

### org mode tables slowed down by evil mode

I am trying to create a table in org-mode like that (/ is where my cursor is) | this is a test | foo | bar | | ---------/---- | --- | --- | If I now press enter, emacs hangs and I have to interrupt ...
• 101
11 views

### Any hints on how to connect org-onenote to MS OneNote?

I have recently tried to use org-onenote* for uploading some Org Mode notes to MS OneNote. Somehow my e-lisp-fu is not strong enough, I have misunderstood the terse documentation, or I am just too ...
36 views

### Fallback font for specific face

I'm trying to set a fallback font for variable-pitch face. More specifically, my current setup is: Default font set to JuliaMono with size 15 via (set-frame-font "JuliaMono 15" nil t). ...
• 121
36 views

### How to include variables within #+INCLUDE:?

In my init file, all the paths that I use are stored at the beginning of the file with a series of lines like this: (setq personal-path "PATH") Then I can use them like this: (set-register ?...
• 371
28 views

### Override usr-full-name with .dir-locals

I've been trying to override the user-full-name by setting it in .dir-locals ((org-mode . ((org-export-with-date . nil) (user-full-name . "Fullname") (org-export-with-...
• 71
20 views

### How do I create an exponentially recurrent item in org-mode

What I am trying to do is essentially this: First, a TODO item should pop up in my agenda after a one day (/week) Second, a TODO item should pop up in 2 days after that ... in 3 days after that... ...
• 35
17 views

### org-agenda-sorting-strategy reset after restart

This variable always returns to default value. I tried to 'erase configuration' & remove it from myinit.el. Have this in myinit.org: (setq org-agenda-sorting-strategy (quote ((todo todo-state-up)))...
• 389
11 views

### S-Tab to reverse indent inside src_block in org-mode

I'm writing Haskell in src blocks in org-mode. Tab lets me advance through possible indentations*, but often makes mistakes, so I want to unindent with S-Tab. That is already bound to cycling between ...
14 views

### Emacs HTML Preamble in setup file

I have a project with a few org files that are exported as HTML to create a website. All org files that correspond to web pages have #+SETUPFILE: my-setup.org declared in it. And the my-setup.org file ...
• 103
28 views

### How to set a specific background color for a certain string in text?

I would like to highlight each occurence of some word e.g. "covid" in a text when the file is loaded. It will be in org files but even global scope for all files is not a problem. So, I can ...
• 35
42 views

### Moving *** b3 from * b1 > ** b2 > *** b3 to * a1 > ** a2 > *** b3 in Org mode

I am trying to move *** b3 from this state: * a1 ** a2 * b1 ** b2 *** b3 to this state: * a1 ** a2 *** b3 * b1 ** b2 But I can't do that with (org-refile), because it allows me to only target * a1 ...
• 35
39 views

### How can I specify arbitrary headline numbering in org mode?

Suppose I have the following org file (example.org): * Alpha ** Aleph * Beta * Gamma When I export it to HTML I get: 1. Alpha 1.1. Aleph 2. Beta 3. Gamma Which is quite useful in most cases. Now ...
• 371
61 views

### How to show an org-table from another file?

I have a refcards.org file where I store and maintain tens of tables (each having a specific name, e.g. #+name: key-somename). I would like to mention and show these tables in some other org files ...
• 371
40 views

### How to create a non-existing subheader in another local org file from a link?

Let's say I have this in my games.org file: * Games I own ** Adventures *** Adventure - Police Quest *** Adventure - Mixed-Up Mother Goose And I want to link to the Adventure - Mixed-up Mother Goose ...
• 35
1 vote
152 views

I don't know if the presence of a leading * was meant to be in the code or if it's just a typo, but still I didn't expect it would break the code as if interpreted as a headline. Has dis been ...
• 535
27 views

### How to open a startup file in view-mode?

I configured Emacs (28.1) to open an index file (index.org) at startup. Now I would like this file to be opened in view-mode. I tried (setq initial-buffer-choice "~/PATH/index.org") (view-...
• 371
44 views

### How to write a newline in org-mode?

I tried to do \n, but it did not work. What string may I write in org-mode to create a new line? For example, I wrote the following lines in literate programming: #+begin_src clojure "test/...
• 227
52 views

### Getting content of paragraph element using Org Element API

I've been trying to get the content of the paragraph element unsuccessfully using org-element-contents, is there something I am missing here? I have a org document as follows: * world ** China *** ...
• 103