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
1 answer
46 views

How to center a table with respect to the page, and how to reduce its font size?

I need a table to be centered with respect to the page. By default it is aligned with the left text border, and being large it exceeds the right page margin: This is the Org-mode source: Normal text, ...
Pietro's user avatar
  • 107
0 votes
1 answer
34 views

Copying entries from Org Roam into current buffer

I am using org-roam to store templates that I use frequently. I got tired of copying the templates manually into my current buffer so I decided to write a helper function to automate the process. I ...
leonardo's user avatar
0 votes
0 answers
26 views

How can I control the height of the section superstar in org mode?

If I start Emacs (29.1 on macOS Ventura) using the .emacs file (require 'org-superstar) (add-hook 'org-mode-hook (lambda () (org-superstar-mode 1))) ;; (set-face-attribute 'default nil :foundry "...
Sam7919's user avatar
  • 339
0 votes
1 answer
30 views

How can I get the output of a batch emacs run to a custom path?

This works, but the output file is in the same directory as the source file: $ emacs ./notes.org --batch -f org-html-export-to-html --kill How can I get the output in a different directory? I tried ...
Pietro's user avatar
  • 107
0 votes
0 answers
24 views

Un-wrap cells in org-mode

Is there a way to turn all multiline (wrapped) cells in a table in org-mode into single-line (un-wrapped) cells? The table I have: |------------+----------+-----+-----| | DATE | DESCR | IN | ...
Paolo's user avatar
  • 21
0 votes
1 answer
44 views

How to extract markups?

Sorry for the vagueness of the question, I hope the following explanation will be clear enough. I often keep notes of my readings and most of these notes are composed of extracts of these readings. I ...
crocefisso's user avatar
  • 1,220
0 votes
1 answer
37 views

Is it possible to work with org-mode tables inside org-babel source blocks as if they were placed directly in an org-file?

Imagine we have the following content of an org-file: | | Col 1 | Col 2 | | row 1 | | | | row 2 | | | #+name: Table1 #+begin_src org | | Col 1 | Col 2 | | row 1 | ...
martinoidar's user avatar
0 votes
0 answers
29 views

Schedule repeating org-agenda TODO entry with diary sexp and time

I have repeating appointments for the next half year and want them to show up in my agenda. I managed to make them show on the correct dates like this: * TODO Example Event SCHEDULED: <%%(and(diary-...
Tscheb's user avatar
  • 1
0 votes
1 answer
43 views

org-latex-preview fails when \usepackage{fontspec} used

To write in different language, I'm exploring different LaTeX engine mainly XeLaTex. #+LATEX_COMPILER: xelatex #+LATEX_HEADER: \usepackage{fontspec} #+LATEX_HEADER: \setmainfont{CMU Serif} * This is ...
Garid's user avatar
  • 589
0 votes
1 answer
37 views

How to include .ODG graphs when using org-latex-export?

How do I include .odg files (created by libreoffice-draw) as a figure when exporting org file into PDF file? And, also is it possible to make odg work with M-x org-toggle-inline-images?
Garid's user avatar
  • 589
0 votes
1 answer
34 views

Emacs not showing inline images, I created with doom emacs with org-download

I have an org-file, which I started with doom emacs using org-download clipboard. This results in attachment files like this: When in doom emacs, I can do org-inline-images (org click on it) and it ...
David's user avatar
  • 291
0 votes
0 answers
29 views

How can I make a line-break work in a LaTeX export without any need for special characters?

What I want is to be able to write foo bar and have my LaTeX export recognise the line-break. Two line breaks rather than one would also be acceptable. #+OPTIONS: \n:t gives the behaviour that I ...
J. Mini's user avatar
  • 103
0 votes
1 answer
36 views

change major mode without hiding text or revealing hidden text (for live-coding)

Question I am live-coding. I would like to be able to change the major mode to and from org-mode without un-hiding any of the text that org-mode has hidden. I would switch to a code mode whenever I ...
Jeffrey Benjamin Brown's user avatar
0 votes
0 answers
29 views

How do I trim spaces and indentations after traversing a DOM tree?

The following traverse the dom tree and provide an iterative custom formatting. However during the formatting, there are empty spaces and indentations which I needed to trim. ;;; This is where the ...
alexander's user avatar
  • 133
0 votes
1 answer
40 views

Conversion from html to org-mode error: *** Eval error *** Wrong type argument: listp, " "

I tried to build a small converter which will traverse the dom-tree and output its org-mode equivalent but I faced a *** Eval error *** Wrong type argument: listp, " " error means the ...
alexander's user avatar
  • 133
0 votes
1 answer
29 views

Hide org-mode nodes with priorities below a threshold

Is it possible to hide org-mode nodes with set priorities below a threshold? My use case is: I have a bunch of large org-mode files with lots of nodes in each of them, complex nested hierarchies and I ...
Nikita Fedyashev's user avatar
0 votes
0 answers
44 views

emacs jupyter gives *invalid read syntax* error in org mode

am trying to execute a simple code block in org mode * a simple trial #+begin_src jupyter :session py :async no x = 'foo' y = 'xbar' x + ' ' + y #+end_src I get the following error Code block ...
RoyM's user avatar
  • 123
1 vote
0 answers
41 views

??? showing in Agenda instead of file name

I have several .org file and typically have them all open in Emacs at the same time. Recently, my agenda started showing one of those file names as "???" instead of the actual filename--...
Tom's user avatar
  • 11
1 vote
0 answers
35 views

Programmatically use org-tags-view to search in current subtree

I am looking for a way to programmatically search for headings in the current subtree. More specifically, I have a vocabulary file, in which I store words I need to learn. Each word is a subtree in ...
Zelphir Kaltstahl's user avatar
0 votes
0 answers
13 views

How to define a new org-babel-execute function for a new major mode?

I want to be able to run code in org mode using the major mode defined in the nand2tetris package. How can I write an org-babel-execute function to do this?
user41177's user avatar
  • 121
0 votes
1 answer
41 views

Mixing org-mode export backends

How can I export to a single file using several backends for different parts of the org file? Specifically, when exporting an org file with a specific backend, I want to be able to export some ...
JeanPierre's user avatar
  • 7,363
1 vote
0 answers
55 views

How edit .org file in text mode

Is there any way to temporarily change the mode of org files to be able to edit them as ordinary text files?
balanga's user avatar
  • 115
0 votes
0 answers
13 views

Upgraded emacs and now there's extra whitespace around latex equations using org-latex-preview

This is inside a docstring in a python script, using org-preview-latex: After rendering: The whitespace goes away if I run convert -trim ltximg/org-ltximg_60b58ddb1d181ad22bd828dd88e5039cf2e80a89....
Nawal's user avatar
  • 101
0 votes
1 answer
26 views

can org-refile-targets match headings *without* a given tag?

I can configure org-refile-targets to match headings in an org file with a certain tag. Can I do an arbitrary tag match? I'm interested in headings without a certain tag. (For example, I'd like to ...
Dan Drake's user avatar
  • 573
0 votes
0 answers
14 views

Org-mode: Adding Attributes and Captions to Babel Table Results

Given the following org-mode file: #+TITLE: Tests #+LATEX_HEADER: \usepackage[outputdir=build]{minted} * Export Configuration #+name: Configuration #+begin_src emacs-lisp :results silent :exports ...
Xaldew's user avatar
  • 1,201
1 vote
0 answers
34 views

Can :var NAME=ASSIGN in org mode work if ASSIGN includes a colon?

I use org-ref in org-mode to handle cross references, and I use labels like tab:one, fig:two, etc., to identify label types and format them accordingly (using cleveref in LaTeX export). I then have ...
Stefano's user avatar
  • 141
1 vote
1 answer
28 views

In org-mode, how to reference the value of a property in another property?

For example, when exporting, the #+title property is taken as the title of the document, which will show as the heading in, for example, a latex pdf. Ideally I would like the #+title value to also be ...
patrick's user avatar
  • 13
0 votes
1 answer
38 views

org-mode: How to define then call a Java method using source blocks

I have a super simple example where I have a list, a Java method and a call to this method. It looks like this: #+name: animals - dog - cat - guinea pig - horse #+name: does-contains-cat #+begin_src ...
Nicryc's user avatar
  • 147
0 votes
1 answer
32 views

How to get org-emphasis to work with timestamps?

Org-mode emphasis works fine in my org-mode buffers except with timestamps, i.e. =[2023-09-27 Wed]=. Emphasis work fine with plain words. Removing a square bracket or dash from the timestamp makes it ...
Max Pfleger's user avatar
1 vote
0 answers
20 views

orgtbl-to-orgtbl removes special header lines

I have a table with some formatting lines in the header, e.g., #+ORGTBL: SEND DEST orgtbl-to-orgtbl :splice nil :skip 0 | N | First name | Last name | | / | < | < | | <l&...
Niclas Börlin's user avatar
1 vote
1 answer
37 views

How to export all overdue TODOs as if they are scheduled for today

What I'm trying to do is to export an .ics file daily that can be imported to Google Calendar so that I can view all unfinished TODOs on my phone. In Emacs, I have org-agenda show the unfinished TODOs ...
P. B.'s user avatar
  • 111
0 votes
1 answer
55 views

Fish and org-babel

I am having troubles with the output of a fish session in org-babel. It seems to be related to the bracketed paste, but only happens when :session is used. I was wondering if there is any way to clean ...
barbacoa's user avatar
0 votes
1 answer
33 views

turn off auto-fill in org tables?

I have (setq-default auto-fill-function 'do-auto-fill) in my config file, and I'm noticing that in org mode, auto-fill/wrapping occurs even within (wide) tables, which I don't like. I confirmed that ...
ajp's user avatar
  • 393
1 vote
1 answer
58 views

Help me get Scala source blocks working in org mode

UPDATE: This issue was fixed for me by changing my version of scala from scala 3 to 2.13, as recommended by NickD in the comments below. END UPDATE When I attempt to evaluate Scala source blocks in ...
Duncan Britt's user avatar
0 votes
0 answers
54 views

Help me get Engraved source blocks working

In Org mode mode am trying to export source blocks to Latex using engrave-faces. My init.el includes the following. (use-package engrave-faces :ensure t :init (setq org-latex-src-block-backend '...
argentum_109's user avatar
1 vote
2 answers
115 views

run check-parens or similar when saving or tangling literate configuration?

I use org babel to load my literate configuration file "config.org". But sometimes when editing that org file, I introduce some error -- say, a missed parenthesis -- and then restart emacs. ...
Dan Drake's user avatar
  • 573
0 votes
1 answer
28 views

Expand specific org-mode table column with headings

Consider an org-mode file like so: #+NAME: foobar | | Alice | Bob | Charlie | | Foo | 11 | 12 | 13 | | Bar | 21 | 22 | 23 | | Baz | 31 | 32 | 33 | * Alice - Works at ...
dotancohen's user avatar
0 votes
0 answers
23 views

How to set a buffer local variable (e.g. fill-column) for one specific .org file? [duplicate]

I use fill-column 80 for the majority of my files. Howover, I have a .org with a table that is slightly wider than 80 columns. I'd like to automatically set (setq fill-column 100) for that file only, ...
Lai Yu-Hsuan's user avatar
0 votes
1 answer
40 views

How can I org-store-link when ssh sudo hopping?

I open the file like this, with hopping: C-x C-f /ssh:b0ef@ximian|sudo:ximian:/etc/nixos/configuration.nix RET If I call org-store link, I get this: [[file:/sudo:root@ximian:/etc/nixos/configuration....
Jason Hunter's user avatar
0 votes
0 answers
8 views

don't show images in html or local links in pdf-latex

I want to transfer folders with documents with Syncthing to the Android tablet, the documentation is made in orgmode and I export to PDF or HTML. But they don't resolve local addresses in the tablet; ...
Levo's user avatar
  • 47
0 votes
0 answers
27 views

How to make LaTeX in org-msg e-mails look nice?

I just want to send nice-looking e-mails like this This e-mail is achieved by using Apple Mail, LaTeXiT and a bit of hand-waving. However, in org-msg mode I can by default with dvipng/imagemagick ...
9IPOCJIABbI4's user avatar
0 votes
0 answers
28 views

Use an org-mode code block to execute other code blocks

I want to use a code block to execute other code blocks with a given language. For example, in my document I want to validate every HTML block using the W3 validator. Currently I do it as follows. ...
Tad Lispy's user avatar
  • 133
1 vote
1 answer
22 views

Combined search: notmuch mail, org-mode docs, and filesystem locate?

I often look for information that could be either in some org-mode document, in an old email, or somewhere in the file system (and probably other places). Now I can use org-search, notmuch-search, ...
Ketil Malde's user avatar
0 votes
0 answers
7 views

How to SHIFT-RET to open link in a new tab while preserving RET behavior in org-mode?

In org-mode I want to open link in a new tab when I press Shift-RET. I'm currently using RET to open link. I tried to use (setf (cdr (assoc 'file org-link-frame-setup)) 'find-file-other-tab). That ...
codeDog's user avatar
0 votes
2 answers
67 views

How to add heading in this format

I use org mode for many things including a Getting things done file and daily I am adding many headings, mostly in the format: * TODO [#1] "Heading text here, to be typed in by me" SCHEDULED:...
ironfish's user avatar
  • 148
0 votes
0 answers
31 views

How to fix "cd: Wrong type argument: stringp, nil" error?

I use org-babel-tangle to generate latex documents from org files. These org files have the following first line: #+PROPERTY: header-args :latex :comments org :tangle PATH/FILE_NAME.tex I built a ...
crocefisso's user avatar
  • 1,220
0 votes
0 answers
26 views

Follow symbolic links in alternative org-roam directory

I use org-roam to take notes. I have two org-roam directories. The alternative one has a .dir-locals.el file where I set the value of org-roam-directory and org-roam-db-location with the path to the ...
NandKN's user avatar
  • 73
1 vote
2 answers
68 views

How to tangle code blocks from an org file, compile the output, and open the result, with a single command?

I use org-babel-tangle to generate lilypond and latex documents from org files. These org files have the following first line: #+PROPERTY: header-args :LANG :comments org :tangle PATH/FILE_NAME.EXT ...
crocefisso's user avatar
  • 1,220
2 votes
2 answers
59 views

How do I insert an http link into org-mode with its title?

Is there a way to have org-mode automatically set the description from the html page's when inserting a link into org-mode?
Oin's user avatar
  • 167
1 vote
1 answer
95 views

how to programmatically create list of org-roam nodes with given tag?

I'd like to create (meta) node that contains all references to nodes given org roam tag. For example, Let's say I've tens of org-roam-nodes about python-programming-language (each node has tag python)....
Garid's user avatar
  • 589