Questions tagged [org-mode]
Org-mode is an Emacs mode for keeping notes, maintaining ToDo lists, doing project planning, and authoring with a fast and effective plain-text system.
2,125
questions
1
vote
0
answers
39
views
Insert \usepackage statements before hyperref, when exporting to Latex in org mode, on a file level
When exporting to Latex I want to include \usepackage statements in a specific org file.
This is possible with #+LATEX_HEADER: or #+LATEX_HEADER_EXTRA:. The problem is that the packages I want to ...
0
votes
0
answers
28
views
failed to change the color theme in org mode by using `face-remap-add-relative`
I use a calm-forest color theme in general. But I want to use a light theme when I edit the org file. Thus I rewrote the emacs-21 color theme to a hook as the following scripts, but I failed to get a ...
0
votes
0
answers
29
views
Error in Emacs: ob-ipython-auto-configure-kernels: Wrong type argument: listp, 0.0
In Emacs, when saving org-mode files, I constantly receive the message:
ob-ipython-auto-configure-kernels: Wrong type argument: listp, 0.0
The result of toggle-debug-on-error is:
Debugger entered--...
0
votes
0
answers
40
views
How to insert date or other `Template expansion` in org capture when no "*" prompt in file?
I want to insert the date in the capture template, but I do not want to add a "*" at the beginning of the file.
How do I achieve this?
An example as follows, C-c c p p work fine, but C-c c p ...
0
votes
0
answers
45
views
How can I adjust the fonts and sizes of bullets in org superstar?
By starting (Gnu/vanilla) Emacs with the .emacs at the bottom of this file I get
headings and subheadings that use larger fonts, obviating the need to typeset into HTML or LaTeX for pleasant reading, ...
1
vote
1
answer
36
views
Is it possible to load modes in interactive functions before the interactive prompt is executed?
This is a follow-up question to this original question.
I try to provide a custom interactive function, requiring the loading of another package, right after startup of Spacemacs. My problem is that ...
0
votes
1
answer
53
views
How can I provide a custom function, depending on major-mode variables, right after the startup of Spacemacs?
I recently started to write some elisp code, mostly to customize my spacemacs -> absolute beginner. Although there are a many different sources of "how to customize..." around, I still am ...
1
vote
1
answer
50
views
Using org-element to parse headlines matching a specific tag (or property)
I'm trying to write custom Elisp functions for word counts based on certain parts of an org-mode buffer, and I was wondering if there is a good way for org-element to parse all headlines matching a ...
0
votes
0
answers
65
views
Emacs org-mode: Find Tags in Folder
I am learning to use Emacs and Org Mode.
I was initially getting no results when I clicked on a tag. I solved my own problem by doing C-c [ (Ctrl-c then [) which adds the file to the 'agenda' with the ...
0
votes
0
answers
19
views
How can a setupfile being considered as safe while exporting through a batch process?
In my org-mode-file I have a source cell which contains the various formats I want to export this file to.
#+title: How to export this document?
#+author: me
#+SETUPFILE: https://fniessen.github.io/...
0
votes
1
answer
48
views
Why is grep only partially working in an org-mode source block?
This is a follow up question about cleaning a SPARQL-dataset.
The dataset is gained by this cell:
#+name: raw-dataset
#+BEGIN_SRC sparql :url https://query.wikidata.org/sparql :format text/csv :cache ...
0
votes
1
answer
30
views
How can I get the results from one org-mode cell as a table to process in another?
In my document I create a first cell block for retrieving data:
#+name: raw-dataset
#+BEGIN_SRC sparql :url https://query.wikidata.org/sparql :format text/csv :cache yes :exports both
SELECT ?wLabel ?...
0
votes
0
answers
19
views
Using ox-pluto to export org document to Pluto notebook
I am trying to export an org document to a Pluto notebook. I am using the package 'ox-pluto.el'
When I run the command M-x ox-pluto-export-as-pluto
I get the error message
Symbol's function definition ...
0
votes
1
answer
41
views
How to change the default face of Org mode to different font from the default face of Emac?
Like the title, the face of the normal text portion is default, how can I change the font of that face but only apply to Org-mode.
I also find a face name: org-default, but when I try to change the ...
1
vote
0
answers
45
views
org mode, export source blocks to tcolorbox instead of lstlisting
I have an org document that contains #+begin_src blocks. These are placed in a \begin{lstlisting}[htbp]\begin{minted} environment when exporting to a latex document. Now there are two problems. First, ...
1
vote
1
answer
67
views
In which cases can the `:title` property of a headline, returned by `org-element` not be a string? (Or how to get the title string reliably?)
I am trying to parse an org file with org-element.
(org-element-map (org-element-parse-buffer 'headline) 'headline
(lambda (a-hl)
(message "debug:title:%s" (org-element-...
3
votes
0
answers
53
views
Create a recurring date range in emacs diary sexp
I'm trying to create a diary sexp to use within an org mode file that will show an entry if it falls between the first day of the month and the first Sunday of the month.
I know how to show an entry ...
-1
votes
1
answer
50
views
In emacs org mode Latex, tyring to use % but I got \%
I am trying create a latex document from org mode,
and want to use % for comment out line, and {} for grouping,
but org-mode output is % , { }.
How can I output without "" escape character ?
...
0
votes
1
answer
32
views
org-mode: Downgrade in priority all items in current buffer
Is there a way to downgrade all items in the current org-mode buffer?
I guess the relevant function is (org-priority-down) but I'm not sure how to apply it recursively. Unless there is a simpler way
...
2
votes
0
answers
123
views
Unable to use org-roam in Emacs on Windows 10
The problem is quite simple :
I want to use org-roam on my Emacs on my Windows 10 laptop, and for a mysterious reason, it just won't work.
What I have done :
I have installed org-roam by adding those ...
0
votes
0
answers
22
views
How to include the file name page number and number of pages when exporting an org mode document toa latex document
I would like to include the file name, page number and number of pages when exporting an org mode file to a latex document.
I tried adding latex code snippets into the org mode document.
#+...
0
votes
1
answer
28
views
Function to list ORG buffers only
I am trying to achieve a Helm-like interface for selecting Org mode buffers, but it's not working:
(defun helm-org-buffers ()
"Use Helm to select an Org mode buffer."
(interactive)
(...
0
votes
1
answer
97
views
How to prevent Org Babel from wrapping Java src code blocks in boilerplate code
In Org Mode in Emacs, while writing Java src code blocks, all src code blocks get wrapped in some boilerplate code. The boilerplate code includes the default class name which is Main and a main ...
0
votes
0
answers
177
views
(Doom) Emacs Org Latex Preview Toggle Errors On New Fragments But not Existing Ones
I am running Doom Emacs, just upgraded, with org mode and I have two latex fragments.
Where n is the row position and m is the column position
\end{text}
\begin{text}
Where n is the row position and ...
1
vote
0
answers
60
views
Incorrect sys.path when executing orgmode python code block under venv
When executing python code block with session modifier python uses global modules but not local, althrough venv is activated. But while executing the same code block without session modifier uses ...
0
votes
0
answers
16
views
how to change the inline reference format "[cite:@A]" to "[cite//b:@A]" in org-cite
By default, the inline reference format is [cite:@A] by org-cite. So how to change it to other formats such as: [cite//b:@A].
Environment:
GNU Emacs 28.1 under ubuntu 22.04
1
vote
0
answers
35
views
how to make the inline format (`[cite:@A]`) of org-cite into the correct format (`\cite{A}`) when export org file to latex file?
I try to use org-cite to deal with the latex pdf export.
However, by default, it convert format [cite:@east_lisi_Allosteric2020; @gasiunas_siksnys_Cas92012] to citation details instead of \cite{...
1
vote
1
answer
84
views
Is there any way to get hyperlinked results from a code block in org mode?
In org mode, when you generate links from code blocks:
#+begin_src shell :results output
for f in *; do
if [[ "$f" == "index.org" ]]; then
continue
fi
printf -- ...
2
votes
0
answers
179
views
How could drag and drop images to markdown mode?
I use org-mode to manipulate large files and obsidian to handle tiny files along with mobile.
Is it possible to drag local images to markdown file as org-download does to org-mode?
0
votes
2
answers
60
views
How to find heading with specific tag in a directory? (not in org-agenda-files)
I have a list of .org files in a directory.
I want to search in all of those .org files using org-tags-view.
But org-tags-view only searches in the files that defined by org-agenda-files.
How do I use ...
0
votes
0
answers
19
views
"@" symbol in .md file leads to broken links with MDRoam and OrgRoamUI?
Recently, I am trying to use MDRoam and OrgRoamUI in emacs to manage .md files. A strange problem troubles me a lot. If there is "@" symbol in .md file, the graph render by OrgRoamUI will ...
4
votes
3
answers
539
views
emacs org-encrypt-entry hangs when file is modified
macos Ventura 13.4 (22F66)
GNU Emacs 28.2 (build 1, x86_64-apple-darwin22.4.0, NS appkit-2299.50 Version 13.3.1 (a) (Build 22E772610a)) of 2023-05-31
org-mode 9.5.5
installed using homebrew emacs-plus@...
0
votes
0
answers
80
views
Create an org-agenda-custom-commands using org-agenda-filter
I use the org-agenda-filter pretty heavily as part of my daily agenda workflow. I have a tag for "Work" related TODO items and repeat this operation several times a day:
Pressing C-a a
...
9
votes
2
answers
282
views
Org Mode syntax checker
The correct syntax is this:
#+PROPERTY: header-args :tangle "~/.config/emacs/init.el"
But once, I had, instead of header-args, header-aegs.
Notice the e instead of r.
I was getting the ...
0
votes
0
answers
25
views
How to get LSP like formatting in Org Mode? [duplicate]
Here is a scenario I use constantly in development:
LSP is always on.
I call the LSP feature "format current buffer" (or whatever it's called).
The LSP returns the buffer formatted (...
0
votes
1
answer
31
views
Org auto numbering of list with <RET>
Lets say I have the following Org file:
Bla bla bla
1. BlaX
And let's say my cursor is where "X" is, and I am in insert mode (I use Evil mode in Emacs). Now, if I press M-RET I will get ...
1
vote
1
answer
184
views
emacs org-mode inline images not updating
I am having a strange problem with org-mode. When I update/change a linked image it does not update in the buffer.
My test uses babel for convenience, but this is true for all images. I already have ...
0
votes
1
answer
168
views
How to hide header/footer of a #+begin_src block in Emacs Org Mode?
How to hide header/footer of a #+begin_src block in Emacs Org Mode?
For example, the org-hide-emphasis-markers t will do it for various kinds of other things in Org Mode, but how to do it for header/...
2
votes
1
answer
255
views
Org doesn't recognize my agenda file while the value of org-agenda-files show it is correctly aimed to where the file is
TLDR: I can't see my org agenda even though the file I added to it shows on org-agenda-files
My code in my init.el is the following (I don't know about elisp and I just started using emacs to use org-...
0
votes
0
answers
97
views
Create a capture template that asks which heading I want to file the task under
I'm trying to create a new capture template in my emacs config (mapped to "t") that allows me to create a new task in a specific file on my hard drive located at "~/Dropbox/org/agenda/...
0
votes
0
answers
119
views
In Org-mode, can I change the font size in a table to make it fit in the page?
I need a wide table in my PDF output, and with the default font size, the same as the normal text, it does not fit in the page width.
Is there a way in Org-mode to use a smaller font for tables? Any ...
0
votes
0
answers
35
views
Return to full view after `org-sparse-tree`
I open foo.org
I run org-tags-sparse-tree to narrow the file to show only a subset of content
I want to go back to the full view of the file
How do I achieve (3) - without deleting the buffer and re-...
1
vote
1
answer
113
views
Embed plotly diagram in html document from orgmode
I have a python script inside a orgmode document that creates a diagram with plotly (which works fine). Now I want the results block to show the diagram on html export. Here is my example document:
#+...
0
votes
0
answers
63
views
BOM \ufeff at beginning of org-babel-tangled file
Recently, I have noticed that \ufeff (BOM for UTF-16) is getting prepended to files tangled using org-babel-tangle.
Is my configuration wrong? If yes, which variable have I inadvertantly ...
1
vote
2
answers
114
views
Filter Custom Org Agenda View To See DONE Items in Past Week
How can I create an Emacs org-mode custom agenda view listing DONE items completed in the past week?
Here is a simplified view of my org-agenda-custom-commands:
(setq org-agenda-custom-commands
'...
0
votes
0
answers
31
views
org-mode: List all items with TODO status changed in the past week, within capture template
I want to have a capture template that gives me a weekly report, that I can annotate. This would look like this:
M-x org-capture RET j pops up the journal.org file with a new header with the week ...
0
votes
0
answers
255
views
Org-Mode capture template: How to use (org-id-uuid) or (org-id-get-create) to create ID
I am trying to write an org-capture template that is expected to create a properties drawer with date and ID entry after which a dashed line will follow.
I've first used (org-id-get-create) as below
(...
1
vote
0
answers
36
views
org-at-timestamp-p is not correctly detecting when at a timestamp
org-at-timestamp-p is supposed to test if point is at a timestamp.
I've written the following function to test it:
(defun my/test-timestamp ()
(interactive)
(if (org-at-timestamp-p)
...
3
votes
1
answer
150
views
How to iterate and process every heading in ORG file
I want to iterate and check every heading in an ORG file, and see if it's a link to an image file or not. If it is, I need to do some processing on the heading.
* no_image_heading # should print ...
0
votes
0
answers
22
views
How do I make Org-mode smartly choose between saving a closing note (if user text present) or discarding it (no edits or empty) automatically?
I've set (setq org-log-done 'note) so that when I close a heading I am prompted to enter a note. For the 3rd time I accidentally pressed C-c C-k instead of C-c C-c, which made org-mode destroy the ...