Skip to main content

Questions tagged [org-mode]

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
49 views

How can i configure (doom) emacs to only count prose text in the word count?

I'd like to use Org mode to write stuff like essays, where a specific word count is required. This would be much easier if I could use headings to structure my essay, but my current solution for ...
DJMoffinz's user avatar
0 votes
1 answer
28 views

Is there an org-mode code block that echoes its content back?

Is there a code block type in org-mode that can echo its context (text) back when executed? So, in pseudo-code, the code block: #+begin_src echo { "id": 1, "name": "James ...
tinlyx's user avatar
  • 1,364
0 votes
1 answer
26 views

How to keybind an org-capture template with use-package?

Suppose I bound org-capture with C-c c and a tmp template with t: (setq org-capture-templates `( ("t" "tmp" entry (file ,(concat captures-path "tmp.org"))...
crocefisso's user avatar
  • 1,363
1 vote
1 answer
56 views

How to use jq-mode to query JSON in org-mode?

I wanted to use jq in org-mode to query JSON, and saw a jq-mode that supports org-babel: jq-mode provides ob-jq for working with literate programming in Org mode. Add jq under org-babel-load-...
tinlyx's user avatar
  • 1,364
1 vote
2 answers
81 views

How can I frame an example block?

In src blocks, I can use LaTeX packages to make them look nice. For example, LaTeX's minted package lets me put a nice frame around my code blocks. The syntax is #+ATTR_LATEX: :options frame=single #+...
J. Mini's user avatar
  • 121
1 vote
0 answers
30 views

Can I make all src blocks of the same programming language inherit the same #+ATTR_LATEX: block?

Suppose that for Python and only Python, I want #+ATTR_LATEX: :options frame=single to customise my #+begin_src blocks. Does Org Mode have any natural way of doing this?
J. Mini's user avatar
  • 121
2 votes
1 answer
39 views

How can I put a letter immediately after inline code in org-mode?

In markdown, I can write `foo`s to get foos. How do I do the same in Org Mode? ~foo~s doesn't do it and ~foo~ s adds a space.
J. Mini's user avatar
  • 121
1 vote
0 answers
39 views

Where to read org-mode patch notes?

I am running latest stable org-mode (9.6.30) and I would like to see what was changed from the previous point release (9.6.29). The only release notes that I could find were for the 9.6.0. Is it just ...
emacs_supporter's user avatar
0 votes
0 answers
30 views

Can identical example and source blocks be made to look different in a PDF export?

I use both #+begin_src and #+begin_example blocks in my org-mode markup that gets exported to PDF. If I put identical text in to these blocks, then they look identical in the PDF export. Is there any ...
J. Mini's user avatar
  • 121
0 votes
1 answer
66 views

Title Case for Org Meta line Keywords and their Colouring

I noticed in Org mode that #+title can be written in lowercase and uppercase. Is there a specific reason for capitalisation? Additionally, the colouring of these keywords varies. Some are grey, while ...
Edman's user avatar
  • 1,229
1 vote
1 answer
38 views

How can I return/print all of my code's results with the code in Org-Mode?

Suppose that I type the following code in to a REPL. (+ 1 2) (+ 1 3) At the end, my REPL looks like * (+ 1 2) 3 * (+ 1 3) 4 I want the same when exporting org-mode to PDF, but I don't get it. This ...
J. Mini's user avatar
  • 121
1 vote
1 answer
65 views

parsing org-mode files from command line

How would you approach querying org-mode files from command line? I first tried using awk/sed, but I've struggled to even print a single item: awk '/^\* foo/,/^\* /' file.org it was recommended ...
Daniel Krajnik's user avatar
0 votes
1 answer
18 views

remove author and date header line to save space

I would like to remove the header line of author and date to save space. I try to set the font size to 0, but it does't work current org file: #+LATEX_CLASS: beamer #+LaTeX_CLASS_OPTIONS: [...
lucky1928's user avatar
  • 1,678
0 votes
0 answers
18 views

Org source block background rectangle colour

Is it possible to set the background colour of the org source code block up to, say, column 80 only? And the rest is the default colour.
Arktik's user avatar
  • 972
0 votes
0 answers
20 views

Elisp in properties header args

I use this: #+property: header-args:R :session (concat "*R:" (f-base (buffer-file-name)) "*") Is it possible to evaluate Elisp code by putting it inside back ticks or something ...
Arktik's user avatar
  • 972
0 votes
1 answer
48 views

How to write an elisp function for converting org files to html with custom classes defined by property?

Suppose I want to run Emacs as emacs -Q --script publish.el, where publish.el is a script that takes care of generating a website I am building. This script should read some org files and convert them ...
Diego Sejas's user avatar
0 votes
2 answers
26 views

How to prevent C-c C-u jumps two headings?

* Infrastructure and Programming Machine :inbox: :PROPERTIES: :Effort: 0:30 :END: ** test1 -test -test2 If my cursor is under "test2" and I use C-c C-u, the ...
David's user avatar
  • 309
0 votes
1 answer
45 views

In org-mode, how can I get some document property value using a script?

I have an elisp script that creates some html pages. I would like to use a custom key-value pair that sets the class for the body part of my document. How can I write an elisp function that gets the ...
Diego Sejas's user avatar
0 votes
0 answers
29 views

Unknown "nil" backend with org-export-dispatch for beamer

I'm trying to use a single org-mode file to make a single org file that is exported to multiple slide-deck pdf files using beamer. I've got each tree labelled with a unique #+EXPORT_FILE_NAME: foo....
Joey Eremondi's user avatar
1 vote
0 answers
20 views

Aggregating clocktables from table, rather than heading, data

I have an archive of org-mode files each containing a clocktable with clock activity for a particular day. These files contain only the tables, without the associated org headings and clock logs from ...
Pablo's user avatar
  • 320
1 vote
1 answer
86 views

How to make shift-selection and shift-control-selection work in orgmode headers?

In orgmode, I'd like shift-cursor keys and shift-control-cursor keys to do selection extension and selection extension by word. I have that partially working already, using the recipe from www.reddit....
yury10578's user avatar
  • 141
1 vote
0 answers
33 views

Org mode: How do I create links with spaces in the directory names?

It seems that I can have links where there are spaces in the filenames, but not in directory names. For example: [[file:FC2/VA/Veterans_Payment_Statement/22-03-05 VPS.jpg][22-03-05 VPS.jpg]] works, ...
RonG's user avatar
  • 11
2 votes
1 answer
53 views

How Do I Calculate the File Time for a Given Week Number?

I would like to create a table where one column contains a range of week numbers and another contains the clocked file time for each of those weeks. The latter column should be filled automatically ...
Wildebeest's user avatar
1 vote
1 answer
41 views

Org mode: Turn off auto-fill altogether?

I'd like to turn auto-fill in org-mode. I see that it can be done on a per-file basis, this way, but I'd like to do it altogether. This answer describes that by default, normal-auto-fill-function is ...
Diagon's user avatar
  • 147
0 votes
1 answer
47 views

How to configure Emacs to use quail for org-mode and other modes?

I recently became acquainted with the quail input method for entering mathematical symbols and really liked it. However, this method works only when I use the agda2-mode, in which I can enter a key ...
tinlyx's user avatar
  • 1,364
0 votes
1 answer
52 views

How to change the formatting of current date in Org agenda

How can I change only the format of current day (using Doom Emacs). What I have: Saturday 20 April 2024 Sunday 21 April 2024 Monday 22 April 2024 W17 Tuesday 23 April 2024 What I want: ...
Random's user avatar
  • 1
3 votes
1 answer
51 views

In org-mode, can one evaluate source code blocks inside a latex equation?

I would like to do something like: \begin{equation} x = src_R{x} \enq{equation} so that the current value of x in the R session ends up in the exported document. However, org-mode does not seem to ...
Stefano's user avatar
  • 175
0 votes
1 answer
53 views

Command to fold all "properties" drawers in file

I’m looking for an interactive command that would fold / unfold all the :PROPERTIES: drawers in an org file. I’m sure this command must exist, I just can’t find it – and I’m curious to how you did ...
kotchwane's user avatar
  • 523
0 votes
1 answer
30 views

Why would this custom org-num-format-function causes a warning when org-latex-preview called?

What I'm experiencing: A custom org-num-format-function causes org-latex-preview warn when it called. Exact warning I'm getting. ⛔ Warning (org-element-cache): org-element--cache: Org parser error in ...
Garid's user avatar
  • 686
0 votes
1 answer
41 views

Doom Emacs - `custom-theme-set-faces` not working for `org-level-n` faces

I am trying to modify a few faces for a specific doom-theme in Doom Emacs. I am only interested in an emacs-lisp solution, I do not want to customize via the dedicated Emacs interface. I got the basis ...
lyndhurst's user avatar
0 votes
0 answers
32 views

Hide repeating tasks in org-agenda's "overdue section"

How would you remove from the "overdue section" (not sure the right name) headings that are scheduled to repeat, e.g. * TODO My task SCHEDULED: <2024-04-02 Fri 16:30 .+1w> this now ...
Daniel Krajnik's user avatar
0 votes
0 answers
10 views

Org-babel remote inline images with TRAMP not exporting in org export

I am trying to find a way to get the images generated in my remote server exported to a HTML locally. Orgmode of a local analysis works as expected, but if I have tramp enabled with: #+PROPERTY: ...
lf_araujo's user avatar
  • 123
0 votes
1 answer
91 views

How to evaluate python code in org-mode when only python3 is provided by the package manager?

Recently I started to use guix as my operating system. I installed python3 for my user via guix install python3. python itself is not available in the package repository, which I verified by running ...
Eldinur's user avatar
  • 13
0 votes
0 answers
21 views

Unable to modify quote and verse blocks in org-mode

Although I have set org-fontify-quote-and-verse-blocks to t, when I call describe-text-properties with point on a #+begin_quote or #+begin_verse block the value of face remains org-block: There are ...
Pablo's user avatar
  • 320
1 vote
1 answer
48 views

How can I add a link to jump to the table of contents?

I would like each chapter title to also be a link to the table of contents, so that I can quickly go back and forth from the TOC to the chapters. This is my example test.org document: #+TITLE: My doc ...
Pietro's user avatar
  • 121
0 votes
0 answers
33 views

How to have timestamp (hour:minute) as prefix to a recurring task started before but recurring in the current day in an agenda view for the current?

The current day is 2024-03-30 . I have the following sample agenda items: * Future ** A meeting non-recurring :meeting: SCHEDULED: <2024-03-30 Sat 11:00> ** Meeting recurring starting today :...
Yu Shen's user avatar
  • 481
2 votes
3 answers
142 views

How to convert an org-table to JSON?

Here is a minimal example of an org-table: #+NAME: radar |----------+------| | Variable | Val | |----------+------| | Red | 43.3 | | Blue | 83.1 | | Yellow | 86.4 | |----------+------| I ...
crocefisso's user avatar
  • 1,363
0 votes
1 answer
53 views

Org-mode: clickable heading

I would like each org-mode section to be expandable with a left mouse click anywhere in the heading (excluding tags). This answer correctly points to org-mouse. However, I must click on the section ...
unvarnished's user avatar
0 votes
1 answer
22 views

use output of python code block from other python code block

My emacs is 29.2 in linux. I try below code to use output from first python block, but the output in second block is None after press C- C-c. #+name: testblock #+begin_src python print("hello&...
beetlej's user avatar
  • 1,100
1 vote
0 answers
19 views

Org-mode+Babel: Refactor across files or code blocks

I'm refactoring my Emacs config files so that they are generated with org-babel-tangle. I am able to do everything I need but I really miss better refactoring support. As an example, after I define a ...
pgpb.padilla's user avatar
0 votes
2 answers
67 views

Is it possible to have autocompletion for properties in org-agenda?

When filtering entries in agenda buffer (including C-c m) I only get auto-completion for tags. But the first thing I want to filter by is always the value of the "Project" property. I set up ...
Reverent Lapwing's user avatar
0 votes
0 answers
11 views

Adding PS1's "user@machine" to the exported version of an org-babel shell block

I am using org-babel for running shell commands. I'd like to export the code block as if it was running from the terminal, so adding "user@machine" before each command. When I export the org ...
Peter Petigru's user avatar
0 votes
1 answer
66 views

Is it possible to do #+SETUPFILE conditionally in orgmode (with regard to included files)?

I'm working on a big text in orgmode, which is expected to be finally exported to Latex & PDF, so I made this kind of a master document in orgmode: #+SETUPFILE: exportoptions.org #+INCLUDE: "...
yury10578's user avatar
  • 141
0 votes
0 answers
55 views

Inserting a Page Break Wherever in ODT Document when Exporting from Org Mode

Is there a simple one-liner to insert a page break wherever when generating ODT from Org mode? I'd rather not dig into styles if I can avoid it. I'd like to be able to do something like #+...
user avatar
0 votes
1 answer
34 views

Tex equation block highlighting in org-mode

I would like to highlight \begin{equation} ... \end{equation} Tex environments with a different color in org-mode. Inline Tex expressions (delimited by the $ symbol) can be highlighted as follows: (...
unvarnished's user avatar
0 votes
2 answers
56 views

Hiding Headings in Doc Exported from ORG-MODE to ODT

I'm writing a short story. The end result will be a 30-page doc with zero chapters or headings, (not even a title.) However, within org mode, I would like to have a foldable outline for working with ...
user avatar
0 votes
0 answers
9 views

Error yas--advance-end-maybe-previous-fields with autoactivating yasnippets in latex environments in org mode

I get the error yas--advance-end-maybe-previous-fields: Assertion failed: (memq field (yas--snippet-fields snippet)) in org mode when I use snippets that: do not contain $1 in the snippet use auto ...
userrandrand's user avatar
0 votes
0 answers
28 views

Org Mode Code Sessions Scope

I'm trying to use sessions within an org file to keep the code workspace as I need something similar in style to the Jupyter Notebooks. The issue I'm having is this isn't restricting the session to ...
ADS_Fibonacci's user avatar
0 votes
1 answer
39 views

Zero padding numbers in org-num-mode?

I like to workingorg-num-mode enabled: ** 4 Actions *** 4.1 WAIT Lorem :visit: ▼ *** 4.2 WAIT ipsum :uni: ▼ *** 4.3 NEXT dolor :...
Garid's user avatar
  • 686
2 votes
1 answer
55 views

How to save org-mode file without results of source code block

I'm preparing a presentation in org-mode and I'd like to demonstrate live the execution of code. So I'd like to start the presentation without any result block. How can I remove (strip) the results on ...
hintze's user avatar
  • 123