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
6
votes
1answer
2k views

Show only today's tasks in org-agenda

I am using org-mode to organize my life. I got used to planning with DEADLINE. Additionally, I am using Effort property to predict how much effort that I have to show to finish all tasks. org-agenda-...
6
votes
1answer
352 views

How to make org-mode DWIM when it reads times in timestamps?

Q: how can I make org-mode read the time in timestamps intelligently? org-mode uses org-read-date (which in turn relies on parse-time-string) to create/modify timestamps, scheduled items, and ...
6
votes
1answer
578 views

How to export headlines, including subheadings, without other contents in org-mode?

In the org-mode documentation regarding export settings, it describes arch as follows. Configure export of archived trees. Can be set to headline to only process the headline, skipping its contents ...
6
votes
3answers
349 views

“Mark and Gather” in Org-Mode?

So, I'm pretty much a noob with regards to Emacs and Org-Mode but I'm wondering if a particular feature exists... A lot of old outliners (I'm talking MS-DOS era) had a feature called "Mark and Gather,...
6
votes
2answers
762 views

Exporting and Tangling simultaneously in org mode

I am writing a literate program in Org mode, and exporting the literate document to html file after tangling. However, after making any change to the Org file, I often have to do the export (Using C-...
6
votes
1answer
401 views

Table cell alignment breaks when using latex inside org table

Let's assume we have a table that looks like this: After running org-preview-latex-fragment command I get this: As you can see the top row is not aligned with the other rows. How can one view ...
6
votes
2answers
2k views

Add caption to an image generated by a code block

Consider the following MWE #+begin_src python :session :results file import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt fig=plt.figure(figsize=(3,2)) plt.plot([1,3,2]) fig....
6
votes
1answer
805 views

How to remap control up in org-mode

Newer versions of org-mode remap C-up to org-backward-paragraph. I would like C-up not to be remapped (and continue to use the standard Emacs' backward-paragraph instead). But the standard ways of ...
5
votes
3answers
341 views

Org-mode: closing the nearest parent

I often find I want to close the nearest parent subtree, but don't know of a better way of doing this than navigating to the header first and then pressing tab. I use evil-mode, so properly this ...
5
votes
1answer
416 views

How do I programmatic add, delete and update org-mode properties from entries?

I want to write a function to help me add/update or delete a custom property in my org-mode's entries. But I'm not really sure where to start, are there org functions that can help me manipulating ...
5
votes
1answer
774 views

How can I see total time today on _all projects_ in the modeline?

The variable org-clock-modeline-total gives me several options for what time to show in the modeline, but they limited to time clocked into the current task. I would like to show the total time clock ...
5
votes
1answer
2k views

How to strike-through or un-strike-through a region or line in org-mode?

Given a region or line of text in org-mode I would like to call a function that either strikes-through the region or removes the strike-through of the region or line if strike-through is already ...
5
votes
1answer
541 views

What is a statistics cookie in Org mode and what is their use?

I am learning to use Org-mode. The manual mentions that command org-ctrl-ctrl-c works depending on the context. One of the examples is that if the cursor is on a statistics cookie, it updates it. ...
5
votes
1answer
613 views

siunitx, MathJax, org-mode and html export

I use org-mode to write documents that are both exported into PDF via latex and HTML. I use the package siunitx to typeset numbers with si-units. It is a bit tedious to do but I got used to it (...
5
votes
1answer
334 views

persistent org-mode clock-in history

Is there a way to make the list of recently clocked-in tasks in org-mode persistent across Emacs restarts and (more importantly) closed buffers? It's annoying having to find the previous task just ...
4
votes
1answer
472 views

Tangling fundamental source blocks with org-header like code

I have a code blocks for a domain specific input files that I want to have in a single org file and tangle them out to separate files (see Tangling non-code files to separate files). However, my ...
4
votes
1answer
1k views

org-drill isn't letting me drill

I'm studying for finals and want to use org-drill . Org-drill sees my flash cards and places UUIDs in properties drawers (see the code snippet below). However, when I call org-drill-cram, it says it ...
4
votes
1answer
159 views

Tangling non-code files to separate files

I have a number of parameter files that my code needs as inputs and I would like them all to be in the same org file in different blocks and have them all tangled to different files. Can I somehow ...
4
votes
1answer
1k views

Org-agenda: how to show todo's with scheduled date within a time interval?

I want to use org-agenda to show todo's with scheduled date or deadline date within at certain time interval. For instance, I want to show todo's with deadline between today and one week ahead (today +...
4
votes
2answers
324 views

Cannot use concat within org-capture template

I am trying to use concat from within an org-capture template. But I keep getting an "Invalid template" error, so something's not right. Here is my code: (setq org-capture-templates '(("j" "...
4
votes
3answers
650 views

Load all org files into buffers?

I've got a couple dozen org files that I'd like to have loaded at once. They're in a directory structure something like this: org/dev org/dev/python.org org/dev/emacs.org ... org/dev/ios org/dev/ios/...
4
votes
1answer
262 views

Move to other cloned buffer to same point? (sync position of indirect buffers) (org-mode)

I like to clone-indirect-buffer . But then once in a while, I want to move to the other buffer and go to the same position as in the previous marker. This is usually the case when I use the indirect ...
3
votes
1answer
190 views

Is there a way to make org-mode count repetitive tasks done certain hours past midnight as done in the previous day?

A lot of times we sleep after 12 o'clock, and some of the tasks that are done before we sleep will be counted as being done in the second day, which causes the repetition schedule to be a bit messed ...
3
votes
1answer
1k views

How can I get with org-store-link relative path instead of absolute?

How can I get with org-store-link relative path instead of absolute? I tried M-x customize-variable RET org-store-link, but did not work. Or do I have to customize it anywhere else?
3
votes
1answer
402 views

Buffer-local tangle in org-mode

When using Org-mode 8.2.10, setting the header-args property does not seem to work as expected with Common Lisp code blocks. The following does not tangle the code blocks in the file: #+PROPERTY: ...
3
votes
1answer
358 views

How set a setting with #+OPTIONS to a list as argument?

Well, my desired behavior is to set this: #+OPTIONS: tasks:(DONE IN-PROGRESS) To export the tasks with these keywords, however I think I don't understand well how the syntax for list looks like. So ...
3
votes
1answer
408 views

Configuring org-export to replace LaTeX def macros

I'm trying to configure org-export to replace LaTeX-def-macros while exporting to TeX or HTML. Current situation: the header #+LATEX_HEADER: \def\R{\mathbb{R}} defines a macro that replaces \R to \...
3
votes
1answer
132 views

Programmatically Start Clock of Specific Heading? (Org-Mode)

I'm aware of C-c C-x C-i (org-clock-in) which starts the clock on the current heading. Question: Is there a way to programmatically target a specific heading with this command? That is, if I have * ...
3
votes
3answers
2k views

Exclude table in org-mode export

While I enjoy the table mode of org and love the way I can work with the data in these tables with eg Python or R I am currently stuck with a simple problem: How can I exclude the table from being ...
3
votes
2answers
159 views

External links to figures in org-mode

I would like to be able to link specific figures from other documents. Basically the function of the xr package in LaTeX where it doesn't necessarily give you an actual link that will take you outside ...
3
votes
3answers
800 views

Conditionally calculate the sum of a column depending on a fields value in another cell of the same row

In orgmode, I do have a table like the following to track my overall working time a day. It is not important for which tasks or projects or even which client I spent my time on, just if I was in ...
3
votes
1answer
342 views

How to do backend-dependent actions in org-mode export?

How do I specify different actions for different export backends in org-mode? To be more specific, I would like to export an pdf figure in latex export, while using a png in html export (in fact, a ...
2
votes
1answer
251 views

Org capture into org table

Normally org-capture lets one insert a templated subtree somewhere into an existing Org file or tree node. Is it possible to use org-capture to instead add a row to an existing Org-mode table?
2
votes
1answer
570 views

how to use minibuffer instead of pop-up window for GPG files?

I am looking for Emacs password manager, and org-password-manager looks nice for my needs. But when I am trying to open created passwords.org.gpg file (I use symmetric encryption for more ease), ...
2
votes
1answer
874 views

How do I customize the process that gets triggered in org-preview-latex-fragment?

All I could find to configure was org-latex-to-pdf-process and org-latex-create-formulat-image-program. The first one only controls the process, when I want to export the entire document, the second ...
2
votes
1answer
336 views

How can I export many org documents to ASCII?

I have a directory ~/foo/ with hundreds of org documents among other types of files. I want to export each org file to ASCII. The only way I know how to do this is to follow the following procedure ...
2
votes
1answer
329 views

Custom theme based on major mode or file type

How can I customize emacs to use a different theme based on major mode or file-type? And, could it work to have different themes active in different windows? My use case would be: have (1) one ...
2
votes
2answers
217 views

Is there a way to export latex template to scimax template?

Scimax has already some templates for various journals. However, is there a way to convert latex templates of some specific journals (like nuclear physics A, European physical journal etc.) to org-...
2
votes
2answers
880 views

Italic paragraphs in org-mode

Does simple markup, such as italic, work for whole paragraphs or only for parts of the line? For example: /first italic paragraph second italic paragraph/ If not - what would be a correct ...
2
votes
1answer
720 views

Recalculating entire org-mode table with multiple sections

How can I recalculate this entire table? If I type C-u C-c C-c with point at the start of the 'End Nubbin' line, only the formula that computes the total above the line containing 'other' gets ...
2
votes
1answer
152 views

Dynamic TOC with an org subtree /element on a new window

How can I set up a dynamic TOC with an org subtree on a new window? (TOC on the left, org heading and contents on the right.) The following functions by @blujay from How can I get an org-mode ...
2
votes
1answer
579 views

Display count of tasks in agenda, instead of tasks, based on tag

I've read through all the questions here, and searched extensively online. Since I've started using org-drill, I have a lot of scheduled tasks with the tag :drill:. Instead of having all these tasks ...
2
votes
1answer
751 views

Copy and Paste From PDF to Emacs as Plain Text

Here is my problem: I often copy text from a PDF (let's say one that is nicely formatted or scanned cleanly) and like to post it in an active org-mode file I have for academic research. However, ...
1
vote
2answers
906 views

can I have a link to a specific point of an external org file?

Is it possible to have a link to a specific heading (e.g. identified by a CUSTOM_ID property) of an external org file? The only relevant example in the external links section of the manual seems to be ...
1
vote
2answers
109 views

Is there a way to use org-mode to render generated code? [duplicate]

I'm new to org-mode, so I apologize if this is a silly question, but I couldn't find the answer on my own. I have the following block: #+BEGIN_SRC sh :exports both :results output verbatim code sed '...
1
vote
3answers
954 views

How can I get all file links in one org-mode file?

There are some local file links existed randomly in my org-mode file. most of them are image links, like (file:images/samples.png) along with some other urls. What I want to do is that parse all these ...
1
vote
1answer
82 views

Calling a fuction after org capturing

Is there a way to call a certain function after a certain org-capture template has been run (successfully, ie. not aborted)?
1
vote
1answer
616 views

Org-mode backend: access properties in heading

I currently begin to write a org-mode backend for a custom file format, so I can export from org-file to that format. Therefore I need to apply properties (or attributes) to headings. My prolbem is ...
1
vote
3answers
1k views

Play Org-Pomodoro sounds

I am running Emacs version 25.0.92.1, Spacemacs 0.105.x, Windows 7. In my .spacemacs, in dotspacemacs/user-config I have: ;; Org ;; Org-pomodoro (setq org-pomodoro-length 25) (setq org-pomodoro-short-...
1
vote
2answers
173 views

In org-mode, how to export sparse tree in buffer without unmatched top-level headings

I'm using sparse trees to find tasks I need to work on in my buffer. The matching headlines are shown, without siblings but with their parents. For example, imagine I have the following tree: * A ** ...