Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
9
votes
3answers
2k views

Orgmode insert link from clipboard?

Is there a simple way to insert an org-mode link directly from the system clipboard? I'm thinking of selecting an URL in Safari, and inserting that link directly in an org-mode document.
8
votes
2answers
4k views

`use-package` with :config to set variables

I'm trying to use use-package to set up my org-mode initialization. I have the following in my ~/.emacs file: (use-package org-mode :mode "\\.org$" :ensure org :config (progn (setq org-...
8
votes
1answer
935 views

Is it possible to file a capture template in a subheading of a day in a datetree?

In Org-mode, I would like to have a capture template get stored like this: * 2015 ** 2015-05 May *** 2015-05-21 Thursday <--- I can get this with file+datetree **** Todo today <-...
7
votes
1answer
616 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 ...
7
votes
2answers
1k views

Fix org-fontification error

My config is a literate org-mode file. On my Linux machine, the code blocks are highlighted with the relevant syntax highlighting (i.e. Elisp). But on my Mac, I get this error when I load the ...
6
votes
1answer
3k 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
369 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
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
2k views

Keep the headlines expanded in Org-Mode

I have started using Org-Mode and every time I close my file every headline is collapsed when I reopen it. Is there any way to stop that? I want every headline fully expanded.
6
votes
1answer
1k views

Shift+arrow to change window does not work in org-mode

I installed a package that changes emacs windows using Shift+arrow, and it works in various modes I use but not in org-mode. Is there a reason why org-mode shadows this command?
6
votes
1answer
429 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
1answer
630 views

How to add dollar amounts in org mode?

Given something like: | $1.10 | | | $2.20 | | | $3.30 | | | | | How do you add the amounts with $-sign? C-c + does not work for me.
6
votes
1answer
832 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 ...
6
votes
1answer
2k views

Create a file link in org-mode that accepts spaces in the text

My org file looks something like this: * Space Radiation ** Gamma Ray Info - file://Library\March 2015\Gamma Ray Radiation Fundamentals.pdf - some notes However the title has spaces so the ...
6
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 ...
6
votes
2answers
865 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
2answers
382 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 ...
6
votes
3answers
372 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,...
5
votes
1answer
618 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
3answers
362 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
801 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
691 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
3answers
537 views

Complete path numbering of org-mode headlines and plain lists

I would like to get the complete hierarchy numbers in the plain lists of org-mode Instead of this: 1. something 1. something 2. something 1. something 2. something 1. something 2. ...
5
votes
1answer
433 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 ...
4
votes
1answer
172 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
2answers
385 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
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
1answer
922 views

Invoke Interactive Function From org-capture-templates

I have a function called create-org-link that creates a file link based on an arbitrary string that I pass to it. I would like to be able to invoke this function when I invoke org capture. Here's ...
4
votes
3answers
687 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
498 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
283 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
2answers
173 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
1answer
319 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?
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
418 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
3answers
883 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
441 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
446 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
155 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
1answer
194 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
861 views

How to show all contents of current subtree and fold all the other subtrees?

When using org build subtree navigation functions to move around, I want to show all the content of current one recursively, and hide any other subtrees that having a higher or same level of the ...
3
votes
1answer
365 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 ...
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 ...
2
votes
1answer
195 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
346 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
977 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
110 views

Prevent org source block face from bleeding out in fold

The problem is that when there is one line in between folded headings with source blocks the text properties of the #end-src line bleeds out. You can see the lines bleeding on the right in the image. ...
2
votes
1answer
395 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
1answer
612 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
798 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, ...