New answers tagged

0 votes

Why is emacs freezing and how can I prevent it? (likely involving org agenda)

Check your org-agenda-files variable for file duplicates that are in separate directories. Context: I had the same issue with Doom Emacs after I had copied org files to a new directory and added the ...
feldrick's user avatar
0 votes

How can I open the TODO with the highest value of a property?

Here's another solution: it is a bit more general than the accepted solution but probably not as efficient, since it uses general mechanisms which are not tailored to the problem. It uses org-map-...
NickD's user avatar
  • 29.3k
0 votes

org-agenda-prefix-format change file name

Execute C-h v org-agenda-prefix-format RET in Emacs, you will find the answer. Actually, you will find that you can use any elisp expression you want: %(expression) Eval EXPRESSION and replace the ...
whatacold's user avatar
  • 858
0 votes
Accepted

What do you call these labels on the left of org-agenda (filenames)?

Those're categories, you can set them by putting a CATEGORY property under your desired headlines, for example: ** Project Foo :PROPERTIES: :CATEGORY: foo :END: *** TODO task 1 *** TODO task 2 And ...
whatacold's user avatar
  • 858
2 votes

Create table with circles around words and hiding some of the grid lines in Emacs Org-mode

(Author of the original ODT exporter here) All artefacts included in this answer as a zip file This example uses The Authoritative fork of Org mode's ODT exporter and uses the following features that ...
mxnt's user avatar
  • 86
0 votes

org-mode: example blocks are no longer syntax highlighted in emacs

Thanks to NickD's answer, I wrote this patch which can be put in one's config to make this behavior configurable: (defvar night/org-fontify-block-types '("src" "example") "...
HappyFace's user avatar
  • 830
0 votes

In org-mode, undo the effects of :results pp

One workaround would be to explicitly only apply the pretty-printing to some languages like bash #+PROPERTY: header-args:bash+ :results pp #+name: session-name-5 #+begin_src elisp "A fifth ...
Rovanion's user avatar
  • 987
2 votes

org-mode: example blocks are no longer syntax highlighted in emacs

Indeed, 9.6.1 fontifies such blocks and latest does not. A git bisection found this commit: commit 616e80a9f10c4bd085d7b5ac96fd6ea23e9c9191 Author: <elided> Date: Thu Apr 6 08:49:20 2023 -0500 ...
NickD's user avatar
  • 29.3k
1 vote
Accepted

Create table with circles around words and hiding some of the grid lines in Emacs Org-mode

You can't do this with org syntax. However, when org exports to pdf, it converts the text to LaTeX first. As a consequence, you can include raw LaTeX code in your org file. LaTeX is very powerful, and ...
Tyler's user avatar
  • 22.1k
0 votes

Is there something like `org-blank-after-new-entry` for org mode headings?

I solved this problem myself using this hack. It seems to work okay. (defvar night/org-blank-after-new-heading-p t "If non-nil, insert a blank line after inserting a new heading in Org mode.&...
HappyFace's user avatar
  • 830
0 votes

my TRAMP connection (?error) to org file has duplicated my org entries

I have come up with a better-than-nothing solution: a python script filename = "" output_filename = "" with open(filename, mode="r") as f: tmp = f.read() blocks = ...
Alexander Mirnyy's user avatar
0 votes

Separating state change log entries from other notes

I did it like this: (defun salih/toggle-logbook-on (&rest _) (setq org-log-into-drawer t)) (defun salih/toggle-stats-on (&rest _) (setq org-log-into-drawer "STATS")) (advice-add ...
lr0's user avatar
  • 126
0 votes

Create an org-agenda-custom-commands using org-agenda-filter

This seems surprisingly hard to do! The recommended approach seems to be this footnote in the docs. It describes creating custom agenda commands where: ... one of the variables org-agenda-tag-filter-...
projectgus's user avatar
0 votes

Why am I getting the following error: Symbol’s value as variable is void: org-latex-classes

The config section is run after the org package is loaded, but loading the org package alone does not define org-latex-classes. That is defined in ox-latex, so you either need to explicitly require ox-...
NickD's user avatar
  • 29.3k
0 votes

C-c c does not activate Org Capture after upgrading to Emacs 29.2

I managed to fix this issue by moving the three global-set-key configurations to the beginning of the init.el
lloowen's user avatar
1 vote
Accepted

How can I open the TODO with the highest value of a property?

Thanks to NickD, here's a solution;) (defun find-and-open-highest-sway-todo () (interactive) (let ((highest-sway 0) (highest-sway-marker nil)) (dolist (file (org-agenda-files)) (...
Jason Hunter's user avatar
2 votes
Accepted

Play sound when changing checkbox state in Org Mode?

Inspecting the +org/dwim-at-point function, we find that it uses org-toggle-checkbox. Therefore, we can simply advise that function to add the play sound functionality as follows: (defun org-toggle-...
dalanicolai's user avatar
  • 7,785
1 vote
Accepted

In org mode source block, how to prevent lines starting with asterisk being folded?

You have to write it as follows: #+BEGIN_EXAMPLE output line 0. ,* info 0. a53qpb199pb output line 1. ,* info 1. 1iq01a58b39 #+END_EXAMPLE See Literal Examples in the manual. The commas are stripped ...
NickD's user avatar
  • 29.3k
2 votes
Accepted

Org mode shell blocks output with "raw" and "replace"

Try drawer instead of raw: #+begin_src shell :results drawer replace tree . #+end_src raw does not provide any markers, so replace cannot figure out where the results end: you just get the new ...
NickD's user avatar
  • 29.3k
0 votes

export temporary files to another folder in org to latex export

This code works, but how i say no it's a native solution (defun org-latex-move-exported-files (&optional arg) "Mueve los archivos generados por latex a un directorio al final de la ...
Levo's user avatar
  • 47
1 vote
Accepted

macos org-babel python with session output give __PYTHON_EL_eval

I just ran into the same issue, and I bugged someone much smarter than me about it -- her conclusion after some debugging was that it seems like this basically boils down to the Python that comes with ...
Elle Najt's user avatar
  • 126
0 votes

Is there a package or functionality to alias some text into org-mode (not for export) and continuous editing?

There are several snippets mode in emacs that lets you create your own snippets. I use yas-mode.
vcmsxs's user avatar
  • 441
1 vote

Removing certain LaTeX preview matchers from Org mode?

The problem seems to be an issue in the org source. The relevant function, org-format-latex, contains a line (let* ((math-regexp "\\$\\|\\\\[([]\\|^[ \t]*\\\\begin{[A-Za-z0-9*]+}") which ...
user1121974's user avatar
0 votes

org-mode: How to export underscore as underscore instead of highlight in HTML?

If you do not want to change Org-mode behavior globally on your document, use the = symbol: =tab_weekly_report=
Pietro's user avatar
  • 109
0 votes
Accepted

how to move past a drawer when point is on an org mode headline?

Digging through org source code, I found something that works. Hooray, I guess, for obscure, undocumented functions buried in lisp code... :) This uses org-end-of-meta-data: "Skip planning line ...
Dan Drake's user avatar
  • 593
0 votes

how to move past a drawer when point is on an org mode headline?

I don't know of any out of the box solution. However, you could advise org-forward-element as follows (defun org-forward-element-ad (orig-fun &rest args) (condition-case nil (apply orig-...
dalanicolai's user avatar
  • 7,785
1 vote
Accepted

How to unindent after Org list

As it seems you are not using a list key character. The Screenshot indicates a nested heading but no list (ordered or unordered) at all. If you are below a heading there is no possibility to have text ...
Tietan's user avatar
  • 130
0 votes

What could cause org agenda to take very long to start up?

One common cause of a slow start up time when invoking org-agenda (C-a a) is assigning too many files to the variable org-agenda-files. This is easy to check by simply inspecting the variable ...
DCK's user avatar
  • 1
0 votes
Accepted

org-sort not working properly

This is almost certainly a bug, but it has an easy workaround: move the #+TITLE: to the top of the file: although keyword lines like this can theoretically appear anywhere in the file, most people ...
NickD's user avatar
  • 29.3k
1 vote
Accepted

How can M-x locate results be shown in Dired?

C-h m in the *Locate* buffer says: V visits the directory of the file on the current line. This function runs ‘locate-mode-hook’ before returning. so you could (possibly - I have not tried it) even ...
NickD's user avatar
  • 29.3k
0 votes

org-preview-latex permission issues

The issue has something to do with relative vs absolute filepaths. Make the following setting, try to preview a latex fragment, and then inspect /tmp/t: (setq org-preview-latex-process-alist '((...
user615536's user avatar

Top 50 recent answers are included