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
1answer
39 views

make org “c-c c-c” actually do something useful on a simple line of text

how can one teach emacs to do something useful here? for example if the current line contains the word "FOO" anywhere, change it to whatever the string returned by special-lisp-function-001
1
vote
3answers
35 views

Convert text under a heading into an org-table

I am using spacemacs. I've written my shortcuts in an org file to not forget them. It has a structure of Description: key, then I go to the next line and enter the next command. For example *** Latex ...
0
votes
2answers
38 views

Org Mode - Targeted Expansion of Headings

In org mode with the headings collapsed you can go to each one and press TAB to expand it. Is there an easy way to not have to navigate to headings by using the arrow keys?
0
votes
1answer
21 views

Org mode 9.2.6 - Org agenda - match tags/prop/todo query hangs

After typing a keyword the command just hangs, regardless of the query. The trace is as follows: Debugger entered--Lisp error: (quit) org-add-prop-inherited("qpct") #[257 "\300!\262\301!\207" [...
1
vote
1answer
50 views

Show headings only in sparse tree

I am generating a sparse tree typically using a regex (, / r ). What I am trying to do is get an overview of where in my document a match occurs, not the exact positions of the matches. So, if I have ...
1
vote
1answer
28 views

Org Mode - Stop Recurring Events From Appearing as Late on Agenda

I am using the org mode agenda and my issue is that recurrent scheduled items appear as late everyday. For example an event that happens every Tuesday will also appear every Wednesday as 1 day late, ...
4
votes
1answer
75 views

Org mode + table.el: Use Org formatting inside cells

Say I have a table in an Org document looking like this: (Source) +----------+-----------+----------+-------------------------------------------------------+ | Date | Day | Pages | ...
0
votes
1answer
36 views

Check whether buffer is in org-mode

I want to programmatically check whether the current buffer is in org mode. I know that major modes should usually define the variable <modename>-mode, i.e., org-mode should be a defined ...
0
votes
0answers
15 views

Render bmp images in org mode

I want to quickly embed images in an org document and am trying to use org-download to help me. However, due to a silly bug in Firefox, images are saved as .bmp files. The result is that org-...
2
votes
1answer
33 views

Org Capture - prepend after org header/config block?

One of my org capture templates (in my init.el) looks like the following: ("n" "Note" plain (file "/path/to/file.org") "* %^{Title} %U \n%? \n" :prepend t) I'd like ...
1
vote
0answers
22 views

Why does this org session src block not give me the right results?

I am trying to up my literate coding chops and solving some programming challenges with it. Here is the full writeup of the exercise I'm playing with Mostly everything works and I understand ...
3
votes
2answers
108 views

How to denote an aside in org?

I am trying to go deeper with org mode to the literate coding stuff itself rather than merely for markup. I am writing a document where I'm solving some coding challenge, and part way through ...
0
votes
0answers
11 views

How to force left flush before next main header in `org-mode`

I am trying to add two more empty lines before the next main header and a solid line like so: ----- * Header 1 ** Header 1.2 \\ \\ ------ * Header 2 How can I align \\ and ----- to left ...
0
votes
0answers
61 views

How to execute a org-babel source block within the working directory?

Say you have the following org-babel source block: #+BEGIN_SRC latex :results raw :file test.pdf \LaTeX #+END_SRC When executing it, org-babel will do the actual compilation in a temporary directory ...
0
votes
0answers
41 views

Constructing a nested tree from an org heading hierarchy

I have a custom tangling function traverses an org file. It matches the nearest heading or block. If it matches a heading it collects a list that looks like (level header tags). If it matches a ...
0
votes
0answers
39 views

How to update Org-mode via Package Manager?

I have org-version 9.1.9 installed on Spacemacs and am attempting to install the latest org-version 9.2.6. Install instructions are on https://orgmode.org/worg/org-faq.html#installing-via-elpa and ...
0
votes
2answers
46 views

how to tell org mode to make subsequent lines children of the hierarchy

I have a list like this: remember to undo: product 0 discrimination limit(100) ENV['MANUAL_...'] When point is at the beginning of line 1, how can I tell org mode to make subsequent lines children ...
0
votes
0answers
11 views

In Org Mode, how do I list all targets for the link?

Suppose I have the following structure: * Chapter 1 ** Trivia * Chapter 2 ** Trivia * Somewhere else This is a document that describes how <<Trivia>> is formed. Now I wanna have a ...
1
vote
1answer
32 views

Ignore a repeated diary entry, just this once, in Org Agenda?

In a nutshell: I'm looking for a way to selectively hide one instance of a repeated diary entry so it doesn't show up in my org-agenda. I have many repeating diary entries for things like weekly ...
0
votes
0answers
37 views

recover org file

I use emacs org mode + EVIL on MacOS. I had a small part of my file visually selected last night when I wrote :wq and hit y to the prompt. To my shock and horror this morning only the visually ...
2
votes
3answers
60 views

How to make a diff tool ignore asterisks?

I want to compare and merge some org files. How can I make a diff tool assume that some tasks or notes are identical, even if they are on different levels, i.e. strings only differ in the number of ...
0
votes
1answer
26 views

Convert a selected region to org table

I have such a block Function Description count Number of non-NA observations sum Sum of values mean Mean of values mad Mean absolute deviation median Arithmetic median of values min ...
0
votes
0answers
33 views

org-tags-view vs. org-agenda, M

My goal is a shortcut for an oft-used command. The oft-used command: An agenda view of all unfinished tasks matching a given tag: 1. M-x org-agenda 2. Prompts for the type of agenda 3. I enter "M"...
0
votes
1answer
17 views

Org export on mac os # option

When I press C-c C-e in org mode I get the export options. However I can not choose "Insert template" as when I try and type the # in mac os I need to press the option key and the 3 key. But Option is ...
1
vote
0answers
25 views

How to make Org lists show collapsed by default? [duplicate]

Simple question: How to make list show collapsed by default? It's very annoying to find the lists uncollapsed and visually not pleasing everytime I open a buffer full of lists. Another thing is that ...
0
votes
1answer
74 views

a lisp function to toggle a mode (org mode in this case) on and off with a single shortcut

I'm trying to create a shortcut (C-c c) regardless of what kind of file is currently opened (it could be a .pl file or a .txt file or an extension less file) pressing C-c c should turn on org mode if ...
0
votes
0answers
19 views

How to revert to specific version of orgmode package in orgmode layer in spacemacs

I am using spacemacs with emacs version 26.3 and would like to use org-drill. Unfortunately, there currently is a bug that prevents org-drill from working with org-mode version 9.2 (which is the ...
1
vote
1answer
60 views

Org-mode agenda: Show list of tasks done in the past, and not those clocked

Similar to this thread and this one, I want to show an agenda view with all items marked as "DONE" in the last two weeks, but without the lines Clocked: (1:00) DONE Some task (because for that I only ...
0
votes
0answers
38 views

how to sort tasks in agenda using todo-state-up?

I defined 4 TODO keywords. Two are in the TODO state and two others (DONE and CNCL) belong to the DONE state: (setq org-todo-keywords '((sequence "TODO" "WAIT" "|" "DONE" "CNCL" ))) I defined ...
0
votes
1answer
24 views

Evaluating `org-babel-clojure` blocks returns nill & result

Why the results is 'nil5'? Can't be just 5? #+begin_src clojure :results (+ 1 4) #+end_src #+RESULTS: : nil5 Also: #+begin_src clojure (print "Hello World!") #+end_src #+RESULTS: : nilnil I was ...
4
votes
1answer
34 views

Searching Greek and Hebrew texts in Emacs with isearch while ignoring accents and diacritics

I have a number of text and org documents that contain Greek and Hebrew text. I want to be able to search these in Emacs using isearch but I also want Emacs to ignore all accents and diacritics. I ...
0
votes
2answers
64 views

emacs org bullets not working

I'm using emacs on ubuntu 19.04. This is my init file (use-package org :ensure t :pin org) (use-package org-bullets :ensure t :config (add-hook 'org-mode-hook (lambda () (...
1
vote
1answer
33 views

How to open text links (hypertext) firefox with mu4e?

I have this function to open links in firefox with mu4e, which I found somewhere here. ;; open with firefox (defun my-browse-url-firefox-new-tab (url &optional new-window) "Open URL in ...
0
votes
0answers
16 views

How to make Alt-h work in Org mode in Spacemacs?

When inside a table in Org mode, I can press Alt-l to move the column to the right. But alt-h does nothing. The same happens when I try to put the heading one level deeper. Alt-l works but alt-h ...
0
votes
0answers
32 views

Jumping to a Heading from Org-Agenda view

I'm trying to jump from Agenda view to a particular Heading in an org file. The Heading has nothing to do with the items currently displayed in the Agenda. If my buffer was an org file, I'd simply ...
1
vote
0answers
19 views

Copy item from Org Agenda

For some reason I cannot explain, org-copy (C-c M-w) does not work from Org Agenda (mini-buffer saying C-c M-w is undefined). org-refile (C-c C-w) does work from the agenda and org-copy as well from ...
0
votes
1answer
29 views

Org: adding category to non-top headers

I use one unique diary.org file for my Org Agenda. My file is structured as :tree-type week, hence is every entry like: * 2019 ** 2019-W21 *** 2019-05-26 **** entry I would like to add category to ...
0
votes
0answers
15 views

Is it possible to reference a variable or constant in a table cell?

I am trying to set a variable or constant to be used within multiple cells in a table, but it is either not possible or I am doing it wrong. For example #CONSTANTS a=3 |----------|--------| | number ...
0
votes
1answer
22 views

How to delay an item in org mode?

I have repeating items that I would like to do every day but sometimes miss, e.g.: ** TODO That nasty habit SCHEDULED: <2019-09-28 Sat 06:00 ++1d> :PROPERTIES:... :LOGBOOK:... I can move point ...
1
vote
1answer
34 views

Org Mode Babel: Is there a way to assert the expected results of evaluation?

Is there a way to assert that the results of evaluating a code block with Babel are equal to an expected text? Ideally, I would use this to stop an export to PDF if one of the assertions does not hold....
1
vote
2answers
72 views

What is the equivalent of save-restriction for org-mode cycling?

I coded a function that accesses lines in a folded drawer: (defun org-try-merging-last-clock-out () "Try to merge the latest clock-out, and catch the error if the discrepancy is not zero." (save-...
0
votes
1answer
78 views

org mode: Can't add deadline to headline (wrong number or arguments)

I have been having the following issue for a whilst now. I try to add a deadline to a headline and I receive the following error: Wrong number of arguments: (1 . 2), 0. Here is the corresponding ...
0
votes
0answers
10 views

Disable priorities and TODO for org-contacts-files

I would like to know if it is possible to disable priorities for contacts.org file. For TODO keywords I just put an empty #+TODO: and its worked, but for #+PRIORITIES: don't.
0
votes
2answers
41 views

How to display org time segment in mini-buffer when logging time into a logbook drawer?

I use org-mode and log time into a drawer ((setq org-clock-into-drawer t)). I often clock in and out in succession and have to go into the LOGBOOK drawer to see how much time I spent. How can I ...
1
vote
2answers
33 views

How to log all state changes of recurring tasks to a drawer just like clock segments?

I have a recurring task with multiple state changes: * TODO Some task SCHEDULED: <2019-09-23 Mon 08:00 ++1d> :PROPERTIES: :LAST_REPEAT: [2019-09-22 Sun 16:40] :END: :LOGBOOK: CLOCK: [2019-09-23 ...
0
votes
1answer
22 views

Specific file for pooling tags in org folder

I'm trying to organize tags among many org files. I have a few tags defined in init.el through org-tag-alist and other tags placed at top of files. I would like to set a tags.org file for tags in ...
0
votes
0answers
35 views

How can I get Tex-latex-mode style inline math fontification in Org mode?

I enjoy the inline math fontification that the AucTeX TeX-latex-mode provides – both the theme-responsive coloring and visual indication for sub- and super-scripted math. I have worked in plain ...
0
votes
1answer
42 views

How to align the source code block when export to PDF in Org-mode?

While using org-mode to export source code to PDF files, the source code is not aligned with the indentation of the text. The .org file are as follow: And the output result looks like this: Would ...
3
votes
2answers
59 views

How can I prevent org-mode reading agenda files when started?

My org-mode agenda files are on a remote machine, accessed via ssh using tramp. When org-mode starts it always reads this file, which is inconvenient as it makes opening any org file very slow. I ...
0
votes
1answer
24 views

How to unpack a tuple from org-sbe evaluating a python code block into multiple columns of a org-table?

I often encounter situations where I can easily think of python code that, given some input values, computes multiple output values at once. As an example, consider the following simple code-block ...