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.
5,705
questions
0
votes
1
answer
596
views
How to do date calculations in org-mode tables
I would like to enter a date (as active or inactive timestamps) in column 1 ( eg [2020-02-02 Sun] ) and a number of days in column 2 ( eg as 5d for 5 days) and then let something like:
#+TBLFM: $3=$1+...
0
votes
1
answer
554
views
Disable evil mode in specific mode doesn't work half the time
I am using doom which has evil everywhere enable.
I tried the following two command which works previously in other mode, but now I have problem disable evil when I am in org agenda mode.
here is what ...
1
vote
1
answer
503
views
Org Mode: exporting agenda with inherited tags
The manual says:
C-x C-w (org-agenda-write)
Write the agenda view to a file. [...] only the body of original headlines are exported, not subtrees or inherited tags.
How to export inherited tags ...
3
votes
1
answer
5k
views
Error enabling flyspell mode in Emacs
I use flyspell hunspell for checking my spelling mistakes in Emacs. Recently, when I run M-x flyspell-mode in .org or .tex files I got the following error:
Error enabling Flyspell mode:
(hunspell ...
1
vote
1
answer
164
views
How to make implicit link target from timestamp in org-mode?
In org-mode I usually create several notes with timestamps under a headline, for example:
* idea
[2018-09-26 Wed 09:39] \\
General description of idea.
** idea development
[2018-09-26 Wed 09:...
4
votes
1
answer
449
views
Why is emacs freezing and how can I prevent it? (likely involving org agenda)
What would cause emacs to "mostly" freeze when creating an org agenda?
I say "mostly" because when you type C-g, it does show "Quit" in the minibuffer, and the time logging number in the minibuffer ...
0
votes
2
answers
40
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 ...
0
votes
2
answers
142
views
set org startup folding in .dir-locals.el?
I would like to have different start up folding in org mode for different directories. is this possible?
I have this in my .dir-locals.el
((org-mode . ((org-startup-folded . showeverything))))
It ...
0
votes
1
answer
16
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&...
1
vote
1
answer
96
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 ...
1
vote
1
answer
50
views
Calling org-indent-mode from org-mode hook causes infinite recursion?
I have the following code in my emacs init files, and it is causing an infinite recursion, which eventually bottoms out and throws an error.
(defun robs-org-mode-hook ()
(org-indent-mode)
...)
(...
0
votes
1
answer
209
views
insert cursor postion in org-structure-template-alist
It's easy to insert source code template in org 9.1 by
it is configured as
("s" "#+BEGIN_SRC ?\n#+END_SRC")
Of them, ? for cursor position,
unfortunately, it does not work in 9.2
Custormize ...
0
votes
1
answer
43
views
+50
org-mode: per-exporter #+SELECT_TAGS & #+EXCLUDE_TAGS?
Problem statement
In Emacs org-mode, I am looking for a way to define #+EXPORT_EXCLUDE_TAGS (which defaults to :noexport) and #+EXPORT_SELECT_TAGS on a per-exporter basis, such that they apply only to ...
1
vote
1
answer
191
views
Failed to add wikinodes to ‘org-font-lock-extra-keywords
I want to use org-wikinodes (http://orgmode.org/worg/org-contrib/org-wikinodes.html)
Org wikinode is activated :
(setq org-modules (quote (org-wikinodes)))
I can follow wikinodes links with C-c C-o.
...
0
votes
0
answers
7
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 the level of refactoring tools that I'm used to when working ...
0
votes
0
answers
7
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 ...
0
votes
1
answer
729
views
Custom sorting of agenda (by tag)
Is there a way to customize how tags get sorted in org-agenda weekly view? I don't like the default which is sorting alphabetically (within tasks of the same date/priority).
It would be more useful ...
0
votes
0
answers
23
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: "...
0
votes
1
answer
165
views
org export with tikz entries
I would like to use orgmode for preparing exam questions.
For tex-template I am using tikz which includes some text entries e.g. for the title and subtitle.
The tex part for tikz looks e.g. like:
\...
0
votes
1
answer
29
views
org-agenda-prefix-format change file name
Can you change categories based on their files? For example there is a file todo.org in an orgzly folder and another todo.org in a local folder. Could you change org-agenda-prefix-format (or something ...
0
votes
2
answers
44
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 ...
3
votes
2
answers
148
views
Package that links words as they are typed to existing org-files/-headers?
A silly question.
I try to link my org-files more closely together. I looked into org-roam and org-brain but i'm not convinced that these packages provide what i have in mind (haven't tested it).
As ...
1
vote
1
answer
813
views
Changing the color of items in org-mode agenda (depending on keyword/tag)
I'm using a script to translate my calendars from ics to an org file, so that scheduled events appear in my agenda. An entry in the org file has the following format, with CALENDAR being an agenda ...
1
vote
1
answer
489
views
"Ignoreheading" Beamer Environment doesn't work with :BEAMER_act: Overlay
What I would like to do is the following:
I have a beamer frame where I added :BEAMER_act: [<+->].
This works well with all blocks that follow, but not when I set :BEAMER_env: ignoreheading.
...
1
vote
1
answer
449
views
How can you set clocktable scope dynamically? Or call it programmatically?
I want to get a clocktable for a list of files defined by a function, and I can't see a way to do that. In theory (according to this answer: Is there a simple way to use all org-files referenced in a ...
0
votes
0
answers
33
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 #+...
4
votes
1
answer
2k
views
Can I automatically export org deadlines and scheduled tasks as an iCal file and import it with another calendar app?
I would like to update Google Calendar / iCal automatically by exporting my org deadlines and scheduled tasks in .ics format, then automatically importing them into a cross-platform calendar app. I ...
2
votes
1
answer
335
views
Problem evaluating a `sage-shell-mode` function through `ob-sagemath`
I'm trying to use sage-math within an org-mode file. So far I've been able to configure the sage-shell-mode package (I'm impressed that sagemath can be installed in Debian using the package manager), ...
0
votes
2
answers
128
views
Problem inserting timestamps when the year is far removed from the current date
I am editing an old text file that has each entry preceded by a date = 11/23/1983. I would like to reformat this date to a org timestamp. Using the various methods specified in the documentation is ...
0
votes
1
answer
50
views
How can I directly org-attach from M-x locate results?
What I'm trying to do is use org-attach-dired-to-subtree when I find something I'm looking for with M-x locate.
That doesn't work, cause M-x locate results is not a dired buffer.
0
votes
0
answers
9
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:
(...
0
votes
2
answers
579
views
How to avoid this question: "Non-existent agenda file. [R]emove from list or [A]bort?"
When I create an .org file (C-x C-f, find-file), the following appears in the mini-buffer: "Non-existent agenda file. [R]emove from list or [A]bort?". The question is not asked when creating ...
1
vote
1
answer
564
views
How to open a link to a folder/file in Finder, not Dired
I used to be able to create links with open-insert-link pointing to folders or files. When I clicked on them, I would be redirected to Finder. Lately, they are shown within Dired. How to control this ...
0
votes
1
answer
162
views
org-sort expands all subtrees and drawers
When I use org-sort (Ctrl-^) all the to-be-sorted subtrees are expanded including their properties. I kind of lose orientation. I have to collapse them manually again or use overview (Shift-Tab) and ...
0
votes
1
answer
17
views
In org-mode, undo the effects of :results pp
In my org-files I usually always enable pretty-printing at the top because I find it preferrable to Org's default of trying to fit output into tables and whatnot. But I have now hit a snag.
In a clean ...
0
votes
1
answer
27
views
Is there something like `org-blank-after-new-entry` for org mode headings?
There is org-blank-before-new-entry to insert a blank line before a new entry. But is there a similar variable for adding a blank line after a new entry? It would be useful when inserting an entry ...
0
votes
1
answer
31
views
How to set keybindings to jump to next/previous latex math environment?
In vim (I think with vimtex) one can jump to the next or previous math zone (inline or display mode) with a keybinding.
Using auctex or org mode (preferably org mode), how could one do that in emacs ? ...
0
votes
0
answers
7
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 ...
0
votes
1
answer
27
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 :...
0
votes
1
answer
312
views
Maxima won't start, but works in org-mode
This is very odd, but I've got latest greatest everything -- 26.1; org-mode 9.1.14 9.1.14-9-g131531-elpaplus; maxima-5.42.1 (installed from source) -- and have this in my .emacs:
(add-to-list 'load-...
0
votes
0
answers
17
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 ...
0
votes
1
answer
985
views
Tangle only selected src blocks using org-babel on export
I have a document with only several source code blocks that should be tangled. So the structure is:
# Some main.org
...
#+BEGIN_SRC awk :tangle file1.awk
...
#+END_SRC awk
...
...
8
votes
3
answers
2k
views
Show current org-mode outline position in modeline
I'm using org-mode with really huge files (what I love in org-mode is having everything in a single file).
I would like to know where I am in the file by having a look at the modeline.
If I have the ...
0
votes
1
answer
31
views
my TRAMP connection (?error) to org file has duplicated my org entries
now I have a file of a lot of such structure:
* one
:PROPERTIES:
:CUSTOM_ID: one
:END:
* one
:PROPERTIES:
:CUSTOM_ID: one
:END:
* one
:PROPERTIES:
:CUSTOM_ID: one
:END:
* one
:PROPERTIES:
:CUSTOM_ID: ...
0
votes
1
answer
293
views
org-mode table editor behaves strangely
With cursor in row 2, col 3
| a | b | c |
| 1 | 2 | 3 _|
Pressing <TAB> creates a new row:
| a | b | c |
| 1 | 2 | 3 |
| | | |
Type more than one character and press tab. Vertical ...
0
votes
1
answer
400
views
emacs org-mode error during installation in windows
While I try to install org-mode using M-x package-install RET org RET, I am getting the following error. I am new to both emacs and org-mode and using Windows 10.
Debugger entered--Lisp error: (void-...
2
votes
1
answer
734
views
org-agenda-files not setting after update?
I recently upgraded to emacs 25.1.1 and noticed my org setup wasn't working as usual. in my init.el I have:
(setq org-directory "~/Dropbox (Personal)/org")
(setq org-archive-location "~/Dropbox (...
5
votes
2
answers
1k
views
Exporting Org document to HTML/PDF *without* opening Emacs
I am using Org mode to build a website that contains my notes on various topics, which I read on my phone on the way to work. To introduce more automation into my workflow, I would like to have ...
0
votes
2
answers
127
views
How can I paste a defvar into the minibuffer?
I've written a regular expression to transform Markdown links into Org Mode links and I've stored it into a variable.
(defvar markdown-link-to-org-regexp "s/\[\(.+\)\](\(.+\))/[[\2][\1]]")
...
0
votes
3
answers
141
views
How to express a literal |, not column separator, in a table?
If I press TAB, inside this table:
| foo | bar |
| | | @ |
I get this:
| foo | bar | |
| | | @ |
I'm hoping there is a way to 'escape' the | in cell 2-1 to show that is it ...