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
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
0 votes
0 answers
25 views

org-mode: How do I insert correctly escaped text using elisp?

I want to insert some code using elisp into org-babel source blocks. This needs some escaping, such as replacing * with ,*. Is there a builtin insert function that handles these escape rules ...
HappyFace's user avatar
  • 791
1 vote
1 answer
36 views

Configuring org-msg to use Lualatex in emails

I'm using Lualatex with a custom package and have org-mode configured to it using (setq org-latex-compiler "lualatex") I also put all the Latex-packages I usually need into a custom one and ...
Alexander Praehauser's user avatar
0 votes
0 answers
32 views

org mode, collect today's tasks into a buffer and edit them

In short, is there a agenda-like view that is also editable (without going to the original org file) For instance, I'd like to create a view which shows all the todo items which have deadline today. (...
eugene's user avatar
  • 489
0 votes
0 answers
16 views

Syntax highlighting for source blocks inside special blocks

Syntax highlighting doesn't work for source blocks that are nested inside special blocks: #+BEGIN_test #+begin_src js return 14 #+end_src #+RESULTS: : 14 #+END_test #+begin_src js return 14 #+...
feelsbadman's user avatar
0 votes
1 answer
18 views

Org mode not returning last evaluated line of lisp

I can't figure out why evaluating this lisp code with C-c C-c doesn't return 832040 and instead returns the function name FIB: #+begin_src lisp (defun fib (n) "Return the nth Fibonacci ...
Ryan Fleck's user avatar
0 votes
0 answers
11 views

Org mode keyword completion with pcomplete showing uppercase and lowercase duplicates

Invoking complete-symbol after #+ in an Org buffer uses pcomplete to display the following completion candidates list: ORG: org: BIND: bind: DATE: date: etc. I would like to remove the duplication of ...
user615536's user avatar
0 votes
0 answers
24 views

color org-agenda entries by level

My org agenda (I use it as a todo-list without dates with the alltodo type, generating a list of all todo entries for each file) has many entries with many subheadings (which can again have multiple ...
swhalemwo's user avatar
0 votes
0 answers
16 views

Need help using a custom tcblistings environment for src blocks

I'm trying to advise the function org-latex-src-block--listings to use a tcblistings environment that I like. In LaTeX the environment is used like... \begin{code}[title=TITLE, language=LANGUAGE, file=...
user41177's user avatar
  • 121
0 votes
0 answers
16 views

How do I add an option to quote blocks to preserve newlines?

Some blocks such as begin_verse or begin_example preserve newlines. But the begin_quote block does not and we need two new lines to create a new line in the exported HTML. What's the best way to have ...
HappyFace's user avatar
  • 791
2 votes
1 answer
52 views

Why are LaTeX previews oversized when using Imagemagick but not when using Dvipng?

I am taking mathematical notes using org mode and would like to have inline previews for commutative diagrams. For mathematical equations this works perfectly with dvipng. However, dvipng doesn't play ...
Dargscisyhp's user avatar
1 vote
0 answers
26 views

Track navigation after opening an org link

This is a longshot, but does the following exist already? You have an link in your org file like: * TODO Learn elisp [[info:eintr#Arguments][eintr#Arguments]] You open that link. You go to the next ...
hbogert's user avatar
  • 191
1 vote
0 answers
21 views

How to remove results drawer from emacs jupyter?

I am using emacs-jupyter (commit - 16cbda79167b4e2f2c6b61b218658f0f660d97f9 [otherwise I get an error]) on emacs-29.1 and org-9.7pre. My default header arguments are... org-babel-default-header-args:...
user41177's user avatar
  • 121
0 votes
1 answer
24 views

How do I interpolate elisp variables in org-mode option headers?

I want to achieve something like this: #+latex_header: \input{${PUT_SOME_ELISP_VALUE_HERE}night_beamer_common1.tex}
HappyFace's user avatar
  • 791
0 votes
0 answers
10 views

List Adaptive Fill Keeps Growing for Lists in Olivetti Mode

I'm having trouble with my org lists. They seem to have an ever increasing amount of adaptive-fill as I nest them deeper and deeper. A picture of the problem is below. These are all single lines in ...
FTWynn's user avatar
  • 121
0 votes
0 answers
67 views

Enable citation in doom emacs org-mode

I am unable to make citations work in my doom emacs installation, from the manual it is not clear which changes I need to add to the config. What I want: #+bibliography: notebook.bib This is text with ...
lf_araujo's user avatar
  • 123
1 vote
0 answers
28 views

In Org mode, what is the priority order for a file's initial visibility?

Three things control an Org mode file's Initial Visibility: a heading's VISIBILITY property, the file's #+STARTUP: line, and the org-startup-folded variable. In terms of priority, I've always assumed ...
tkp's user avatar
  • 151
0 votes
1 answer
34 views

Exporting disjoint parts of Org document with marks

I am interested in exporting disjoint sections of my Org document via setting marks, as I find them most convenient. I am aware of the :export and :noexport tags, but seeing as how I have to ...
daedsidog's user avatar
  • 157
0 votes
1 answer
43 views

Error in converting org file to md file: Unknown "nil" back-end: Aborting export

I'm trying to export simple org file to md format using command below: emacs --batch myLanes.org --eval "(progn (require 'org) (org-export-as 'md))" > myLanes.md I'm getting the error: ...
user1146081's user avatar
1 vote
0 answers
49 views

How To Tangle Org Src Code Block Under Conditions

I'm using .org files to keep track of my system configuration across different machines and I want certain code blocks to be tangled only if certain conditions are met. Let's say I have something like ...
thanosapollo's user avatar
0 votes
0 answers
23 views

Displaying a rendered content of .org file into the terminal

I got a zsh script which do some work for me. Somewhere in the body of that script I'd like to have nicely rendered .org file displayed, and my zsh script to continue further. In sudo code something ...
user1146081's user avatar
1 vote
1 answer
39 views

function needed to replace short, static list of keywords

In my workflow I copy emails into an orgmode file. I'd like to have head of the email formatted. In english emails (just as an explanation) I'd like to have *To:* instead of To:, because orgmode then ...
Keks Dose's user avatar
  • 508
1 vote
0 answers
34 views

Headline as the default description for an org-id link

I am using org-id to create links to different headlines in an org file. When using org-insert-link (C-c C-l), I select id as the link type option. Then I press RET. I have :complete configured to ...
NandKN's user avatar
  • 73
0 votes
0 answers
26 views

org-babel-detangle writes duplicated code

I am trying to use org-babel-detangle for a while, but the source code is detangled twice in the main org file. Interestingly, when I run (org-babel-detangle "file_name.cpp") it does not ...
Gabriel Petrini da Silveira's user avatar
0 votes
0 answers
22 views

How to write BCE dates in org-mode

I need to write BCE dates in org-mode. I'm particular about consistency and it kills me to have to write dates two different ways. I'm hoping there's something like [-7000-01-01] to denote January 1st ...
MountainMan's user avatar
0 votes
2 answers
75 views

how to swap month with day

I have a file with the date of birthday of my friends, I use this to remember me the date if birthday...But I have a problem: the date are set in the US way (month-days-year). I would like to change ...
RenatoP's user avatar
  • 121
0 votes
0 answers
72 views

How to make org-babel evaluate noweb reference only once?

To get user input for a shell script, I prepared an emacs-lisp source block. #+name: get_text_from_user #+begin_src emacs-lisp (let ((text (read-from-minibuffer "Enter some text> "))) ...
lecodesportif's user avatar
1 vote
2 answers
64 views

Difference between emacs and emacs --load ./init.el

I have the init.el file with following configuration: (require 'package) (add-to-list 'package-archives '("tromey" . "http://tromey.com/elpa/")) (add-to-list 'package-archives '(&...
Org Mode Beginner's user avatar
0 votes
1 answer
54 views

How can I remove the tex file after generating pdf using `org-latex-export-to-pdf`?

My goal is to export org file into a pdf file . In order to achieve it I am using org-latex-export-to-pdf: org-latex-export-to-pdf Export current buffer to LaTeX then process through to PDF. ...
alper's user avatar
  • 1,300
0 votes
1 answer
36 views

How to Create a Sparse Tree Based on Two or More Properties

I have multiple headlines with two Properties A and B, storing the numerical values 0, 1, 2, 3, e.g.: * Headline :PROPERTIES: :A: 2 :B: 3 :END: I want to create a sparse tree based on the values ...
GNUmon's user avatar
  • 122
0 votes
0 answers
16 views

Can a noweb block be directed to a specific output block?

I know you can give a block the property :noweb-ref give it a reference name like foo and then in another noweb block you can refer to the reference block with <<foo>>. However this means ...
Ian Pringle's user avatar
0 votes
0 answers
32 views

How can I simulate book parts in org-mode?

I can get a nicely highlighted separation of chapters with book.org #+title: Species #+author: CRD #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="style.css"...
Sam7919's user avatar
  • 339
0 votes
0 answers
12 views

A file I was using for org-capture has been renamed (*filename*.org -> *filename* (1).org, is this normal?

I wanted to rule out this being a feature of org-capture, maybe a result of manually editing the file or something? If anyone has any other suggestions as to what else could have caused it I would be ...
Sean's user avatar
  • 1
0 votes
0 answers
21 views

Evaluating expressions inside conditionals in org tables [duplicate]

Evaluating expressions inside conditionals works in elisp (defun usd(amount currency) (if (string= currency "USD") amount (/ amount 3.75))) (usd 123 "USD") ; => 123 ...
azizan's user avatar
  • 1
0 votes
0 answers
10 views

Org included child documents and macro expansion

I have a master doc (master.org) and child docs (A.org, B.org, etc.) I have a macro which uses the name of the current file to create chapters, so for example when I do {{{sections}}}, the macro ...
daedsidog's user avatar
  • 157
0 votes
0 answers
27 views

can not pass :font attribute to face-remap-add-relative

The doc for face-remap-add-relative said: This function adds specs as relative remappings for face face in the current buffer. specs should be a list where each element is either a face name, or a ...
HalmondD's user avatar
0 votes
1 answer
46 views

use keyboard in org calendar

I want to use keyboard when selecting a date in calendar (while setting deadline or schedule in org mode). The cursor is set to nil and it's not visible where the cursor is. I've tracked down the code ...
eugene's user avatar
  • 489
0 votes
0 answers
33 views

shift+arrow for org-mode

https://orgmode.org/manual/Conflicts.html#index-windmove_002eel says ;; Make windmove work in Org mode: (add-hook 'org-shiftup-final-hook 'windmove-up) (add-hook 'org-shiftleft-final-hook 'windmove-...
eugene's user avatar
  • 489
0 votes
0 answers
34 views

Using org-goto across multiple files

Is there a way to use org-goto with opened buffer files (and maybe agenda files), just like org-refile does through org-refile-targets? I have configured org-refile to show the options to choose with ...
NandKN's user avatar
  • 73
0 votes
0 answers
33 views

Is there a way to hide link prefixes in org-mode?

For some link types it would be nice to hide the link prefix automatically. This post does this with text properties, but I'd prefer if it was possible to do with something like prettify-symbols or ...
user41177's user avatar
  • 121
0 votes
0 answers
13 views

Bulk rescheduling agenda items without altering time of day or DEADLINE?

I currently bulk reschedule agenda items using: (setq org-agenda-bulk-custom-functions '((?D (lambda () (call-interactively 'org-agenda-date-later))))) This command can be used without a prefix ...
Max Pfleger's user avatar
0 votes
2 answers
36 views

is it possible org style doc (as comment) in c++ or any other programming language?

can you use org style document in c++'s comment region? I could open up an org doc and type there and copy the contents as a comment block inside /* */ I wonder if it can be done without leaving the ...
eugene's user avatar
  • 489
0 votes
1 answer
58 views

How to collapse the output of code evaluation in org mode?

I would like to evaluate the code blocks in org-mode. However, when the output is lengthy, I want the output result to be collapsed. When I export the org file to the html, I want to see the result. ...
virtual_mind's user avatar
2 votes
1 answer
92 views

Calculating overtime in org tables

I enter my daily work hours in a spreadsheet. My daily target working time is 8 hours. In the first line my overtime is calculated with this: | Overtime | 2.5 | |----------+------| | Day 1 | 8 |...
ontheair's user avatar
0 votes
0 answers
10 views

How to prevent org-exporter from prepending "file://" to the beginning of absolute file paths when exporting to HTML?

I use org-mode to write HTML pages for a website. When I use relative links for navigating the website's directory structure in my org-mode files and I export the org files to HTML, the links work as ...
Blender's user avatar
  • 25
1 vote
1 answer
80 views

How to express time inside an org-table formula?

Consider the following org-table, where the first 3 columns are inputs: |----------+-------+-------+----------+------+--------| | Date | Start | End | H. slept | | Delta | |----------+-----...
crocefisso's user avatar
  • 1,220
0 votes
1 answer
18 views

Calling function with string argument containing strings

I'm trying to call a function with an argument string, where the string should contain a string inside: (org-ql-sparse-tree "(tags \"week4\")") If I just do M-: and type (org-ql-...
Ivan Perez's user avatar
1 vote
0 answers
36 views

clickable buttons on headings

Emacs shows clickable buttons when visiting NEWS (C-h n): This is controlled by outline-minor-mode-use-buttons. How to make Org do the same thing?
shynur's user avatar
  • 4,563
0 votes
1 answer
25 views

Prevent temporary buffer from overwriting main buffer

I am encountering a strange behavior where any temporary buffer overwrites the main buffer content. Using org time-stamp for example; the expected behavior is: Invoke org time-stamp from within an ...
David Cooper's user avatar
0 votes
0 answers
18 views

Repeat an hourly task in org-agenda grid

Why an hourly scheduled (repeating) task would appear only once in org-agenda grid? I assumed that this entry should appear again (at 17:09, 18:09, 19:09...). This org-agenda is generated with: (...
Daniel Krajnik's user avatar