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
5
votes
1answer
116 views

Display relative dates in org-mode property drawers

In org-mode documents, I very often add drawer properties to hyperlinks. To illustrate, here is an example with various data attached to a GitHub repository link: * https://github.com/caddyserver/...
0
votes
2answers
57 views

How to build an agenda buffer from specific files listed in org-agenda-files?

A being the set of all the .org files I use for schedules, I restrained agenda searches to A like this : (setq org-agenda-files (quote ("../file_1.org" ".....
0
votes
1answer
21 views

evil mode: delete word starting with backslash leaves the last character

I am using evil mode. In org-mode files, when I try to delete a word with dw and the word starts with a \, the last letter of the word is not deleted. For example, if my cursor is on the b of \begin{...
0
votes
1answer
36 views

Trouble rendering lilypond source block in org-babel

I am relatively new to org mode and, as someone who enjoys writing about music, i decided to try org-babel-lilypond. I use MacOSx Monterey. I have lilypond installed via Macports, as was recommended ...
0
votes
1answer
80 views

Org publish does not load Latex packages

I need the following two packages and I add them to my org file like this, #+LATEX_HEADER: \usepackage{siunitx} #+LATEX_HEADER: \usepackage{cancel} but this does not work. How can I fix this? I tried ...
0
votes
0answers
30 views

Org Mode bullets indentation display differently between normal and server mode

Does anybody has any clue why the same configuration yield different appearances between normal vs server-mode ? Here's the normal mode (the correct one) And here's when run Emacs in server-mode (...
0
votes
0answers
34 views

How to use org-tag-persistent-alist AND per-file dynamic tags

Reading the org manual about setting global/per-file tags, I wonder if it is possible to use org-tag-persistent-alist AND per-file dynamic tags. When using org-set-tags-command, I’d like to select ...
0
votes
1answer
31 views

How to export the scheduled date to taskjuggler

Having (require 'ox-taskjuggler) in my init.el and hitting org-taskjuggler-export-process-and-open in foo.org renders the current date instead the expected scheduled date. Content of foo.org *** Foo ...
0
votes
0answers
62 views

How could I go about syncing my org files with Apple Notes?

I'd been using Apple Notes to keep track of pretty much everything by linking notes together with iCloud links until recently when frustration with the extremely limiting functionality of Notes led me ...
0
votes
1answer
30 views

Two functions run on the same org-export filter; first has no effect

I'm passing more than one headline filter function to a BIND inside my org file, and I can't see why only the second seems to have an impact: #+BEGIN_SRC emacs-lisp :exports results :results none (...
1
vote
1answer
75 views

Shift+Ctrl+arrow to enlarge and shrink windows does not work in org-mode

Similarly to what is described here, org-mode overrides C-S-<arrow> key-binds which, in order to control the size of the windows, I have defined as follows: (global-set-key (kbd "S-C-<...
0
votes
1answer
64 views

Org mode: Enable line numbers only in source code blocks

Is there a way to enable line numbers only for the source code blocks between #+BEGIN_SRC and #+END_SRC?
1
vote
1answer
46 views

What is meant by "variable expansion"?

I'm looking at the ob-core.el source and see docstrings like: Expand variables in PARAMS... The Emacs manual talks about macro expansion, which is when a macro is converted to executable source code ...
0
votes
1answer
61 views

org-agenda-prefix based on timestamp

While I understand the DEADLINE and SCHEDULED timestamp keywords are all that org mode support natively, I am wondering if it is possible to have something like this: *** TODO [#1] Assignment DEADLINE:...
0
votes
1answer
38 views

Org-mode element API returns (slightly) incorrect results

I have a use case where I tag a particular node in my Org-mode document with a unique hash. I then want to be able to programmatically access that node and append something to it. To that effect I ...
0
votes
2answers
43 views

How to force org-attach to create lowercase UUIDs

When using the org-attach function on macOS the IDs are that are created are uppercase. It is possible to change the folder name to lowercase via (advice-add #'org-attach-id-uuid-folder-format :filter-...
0
votes
0answers
13 views

Can I interrogate org-export-filter info object to check if the text format is UTF-8?

The signature of org-export-filter functions is (data backend info). I want to write a function that will know if I'm exporting to ascii or latin1 or utf-8. The backend appears to be 'ascii no matter ...
0
votes
1answer
25 views

Avoid `\begin{center}` environment when including external PDF image

By default a code such as this in org-mode [[foo.pdf]] will produce the following code in the exported .tex document \begin{center} \includegraphics[width=.9\linewidth]{foo.pdf} \end{center} How can ...
0
votes
1answer
32 views

BIND org-export-filter with multiple functions

I'd like to be able to pass more than one headline filter function to a BIND inside my org file: #+BIND: org-export-filter-headline-functions (tmp-f-one tmp-f-two) Although the pluralised name of the ...
4
votes
1answer
233 views

Is there indentation in org src blocks?

I'm going kinda crazy trying to understand what's going on here... Asked this question on the r/emacs subreddit so apologies if any of you are seeing this again. Do org blocks allow TAB indentation ...
0
votes
1answer
36 views

Using `:scale` with org-mode's image links and include first and last page of pdf in latex export

I'm trying to include the first and last page of a PDF document in a new PDF document that I create via org-mode's Latex export engine. With this I have two issues: I would like to include the first ...
0
votes
1answer
39 views

How to evaluate Python code blocks with pipenv instead of system environment?

I'm trying to use org-mode as an alternative to Jupyter. I'm able to evaluate code blocks with system environment by doing C-c C-c on blocks, but I don't know how to evaluate it through pipenv ...
0
votes
1answer
19 views

Hide siblings of first level on sparse tree

By pressing [Enter] on an entry in org-agenda, the sparse tree containing the entry shows up. The variable org-show-context-detail controls how to see such a sparse tree (docs). Pairs "context -&...
0
votes
1answer
24 views

Skeleton for org source blocks causing issues

I've tried to setup a skeleton to speed up entering org source blocks (define-skeleton skel-org-block "Insert an org block, querying for type." "Type: " "#+begin_" ...
0
votes
1answer
45 views

How to export code outputs to HTML using org-export?

I have an org file with the following contents: #+begin_src python from datetime import datetime return datetime.now() #+end_src #+RESULTS: : 2021-10-30 17:05:27.247133 I want to export this file to ...
1
vote
1answer
54 views

Org-mode: Hide link's URL ([[URL][TITLE]]) in specific file

I'm seeking for a file-local options (#+OPTIONS:) or something similar to auto set link display (See M-x org-toggle-link-display or variable org-link-descriptive). I've tried M-x add-file-local-...
2
votes
0answers
66 views

Org-mode: custom syntax for smallcaps, like *bold* and /italic/

I use org-mode a lot to export PDFs through LaTeX. How can I define a custom syntax for org-mode to mark small caps—so, for example, ^this^ gets translated to \textsc{this}, the way *this* gets ...
1
vote
1answer
36 views

Key sequence to automatically make math-mode fragments in org-mode?

My hands are getting lazier every day. Is there a key sequence to automatically type \(_\), where _ just denotes the position of my cursor, when I'm in org-mode? (Or \[_\], of course: same question.)
0
votes
0answers
15 views

Setting variables for async org export

I have this function: (defun cpm/org-export--file-beamer-handout () "Export file content to PDF handout. Handout uses a distinctive quote style." (interactive) (let ((org-latex-default-...
0
votes
0answers
28 views

Link to item in org document

I have nested headings with lists on them. I want to create a list outside of all those headings that "links" or references items in the other lists, such that changes on them, will affect ...
1
vote
1answer
43 views

Show all prioritized items in sublistings

I have trees of tasks in org-mode. They are organized into several headings, and subheadings. I have prioritized items at every level. Is there a way to show all the prioritized item from all ...
0
votes
1answer
20 views

Unexpected org-export text duplication of hyperlinks

Given the following in my org-mode: **** heading ***** [[https://somewhere.com][somewhere.com]] ***** [[https://somewhereelse.com][somewhereelse.com]] (which my editor displays as links) and the ...
1
vote
0answers
25 views

Hide source block (but not result) in org-tree-slide presentation mode

I'm using org-tree-slide for simple presentations. I'm using source code blocks in the following way: #+begin_src python .... some code here.... .... #+end_src C-c C-c to evaluate #+RESULTS: ...
0
votes
0answers
35 views

org-babel how to run d3.js code in code block

Anyone can help direct me about how to run d3.js code to draw graph in org-babel code block? d3.js is a javascript library but it need to output svg to html body. I saw markdown language support it ...
0
votes
0answers
14 views

org-babel named block for static string(constant)

I'm trying to extract a constant that is used by several blocks in my org-babel file. #+name: myconst 6522332123432 Unfortunately it somehow adds a new line symbol to that string which breaks my ...
1
vote
1answer
44 views

Cite all publications with some author from bibtex in org mode

I would like to nocite all of my papers in an org document to make a publication list. Because of how I format my reference keys in the .bib file, this would be quite easy with pattern matching, but ...
2
votes
1answer
136 views

How to stop ESS from asking for "R starting project directory"?

Every time I execute all code blocks in an org mode file that contains an R code block (using org-babel-execute-buffer with C-c C-v C-b), ESS pauses to ask for R starting project directory, which ...
1
vote
0answers
57 views

How can I generate images from LaTeX without using ghostscript/ImageMagick?

My question here is about generating images from LaTeX source blocks in .org files The following source block (edited down to a simple use case) works fine and produces a .pdf, but this does not ...
0
votes
1answer
24 views

How to get user entered refile location, and return information on the chosen heading?

I would like to write a function that prompts the user to enter a refile location (with completion, like when you call org-refile). When the user chooses a refile location, I would like to return the ...
0
votes
0answers
40 views

With org-agenda, how can you allow a tag to show in Agenda but disallow it from Tasks?

I've been working off of a few blog posts as well as the org-manual, and I can't help but feel like I'm almost there. (setq org-agenda-custom-commands '(("d" "Daily agenda and all ...
1
vote
1answer
26 views

How to apply code sample inside a line using org mode

In org-mode when I type following example code: #+begin_src python def main(*args): from brownie import network, project #+end_src it will be previewed as, equivalent for Code Sample in markdown: ...
0
votes
1answer
32 views

Cannot define custom latex class in org-mode [duplicate]

This is the code I tried: (after! ox-latex (add-to-list 'org-latex-classes '("deeparticle" (concat "\\documentclass[11pt]{article}\n" "\\usepackage{...
0
votes
1answer
31 views

How to get org-time-stamp to return timestamp rather than inserting?

I am writing a function that includes the formatted timestamp that is produced by the prompt from org-time-stamp. However, calling the function cause it to insert the timestamp into the buffer. Is ...
0
votes
0answers
25 views

Missing values in Org macro replacement

The Org Manual says: "The ‘keyword’ macro collects all values from NAME keywords throughout the buffer, separated with white space." (https://orgmode.org/manual/Macro-Replacement.html). ...
0
votes
2answers
32 views

Spacemacs org-mode faces

How do I turn off all of the custom faces used by Spacemacs org-mode? For example, the background colouring, the overlines, the bold faces etc. I tried using the Customize sub-menu from the Org menu ...
0
votes
1answer
24 views

Ignore footnotes when exporting org texts to html

I want to export org texts to HTML. This is easy if I use org-export-string-as. The problem is, the org texts may contain unreferenced footnotes, I want the export function to ignore the footnotes. ...
0
votes
1answer
47 views

Customising org-mode link click behaviour

My current (default) behaviour when click a [[link]] in org-mode is for Emacs to search a matching heading. However, I wanted to redefine this behaviour to open a file called link.org. That is, for ...
0
votes
0answers
16 views

Using sage-shell-mode, ob-sagemath with conda-env

A while back I installed the SageMath package via Anaconda, meaning I have a separate environment that I have to activate before using sage. After getting used to org-mode and org-babel source blocks, ...
0
votes
0answers
23 views

change font style in Latexpreview in org mode

The latexpreview image is very poor. I increased the font size but it is still not good. I want to make the writings in the image bold or use a better font. How can I do that?
0
votes
0answers
23 views

org-mode based static site generator with categories and sub-categories

I am looking for an org-mode based static site generator which supports categories and subcategories like mediawiki. The existing static site generators support only tags. For eg: consider an org file ...

1 2
3
4 5
97