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

Error in post-command-hook during org-agenda-todo

Ever since upgrading to emacs 24.4.1, when I set something as 'done' from the agenda, I frequently get the error: Error in post-command-hook (org-add-log-note): (error "Variable binding depth exceeds ...
10 votes
2 answers
4k views

How to get org-agenda to prefer split-window-right

After upgrading to Emacs 24.4.1, when I call org-agenda with no splits it will show on the bottom half of the frame. Previously, it would show on the right half. How do I configure this behaviour?
6 votes
3 answers
1k views

How to insert a specific number of newlines in org-mode

Inside org-mode, RETURN is bound to (org-return &optional INDENT). This command apparently ignores C-u numeric prefixes and so if you want to enter 10 newlines, you can't just type C-u 1 0 RET and ...
5 votes
2 answers
3k views

Referring to the org-babel src block name from within the script

This is tangentially related to my previous question on dealing with asynchronous babel scripts. Currently I have to manually specify the name of the src block the babel function is in: #+name: elisp-...
  • 4,606
7 votes
1 answer
845 views

Returning org-babel results from an asynchronous call

I'm currently experimenting with moving more of my development workflow into org-mode so I can keep better track of what testing I've done. However some of the steps involve asynchronous calls to RPC ...
  • 4,606
6 votes
2 answers
2k views

exporting org-mode nested blocks to html

Is there a way to convince org-mode to export nested blocks as nested <blockquote> elements? This would be really cool to handle nested quotes in html emails with mu4e. #+BEGIN_QUOTE hey ho #+...
  • 245
14 votes
3 answers
3k views

Code-block specific interpreter in Org Babel

Is it possible to have, in the same org file, two code blocks in the same language that are run in different interpreters by specifying different options at the top of the code block?
  • 251
2 votes
2 answers
267 views

Org Mode: org-lookup-* functions missing

The functions org-lookup-first, org-lookup-last, and org-lookup-all do not seem to be available to me. These functions are documented at the following link: Lookup Functions. I can't look them up in ...
  • 699
10 votes
5 answers
3k views

Browser not opening when exporting HTML from org-mode

Org-mode can export as HTML and open on a browser with C-c C-e h o (org-export-dispatch), but the problem is that the generated html file opens in a buffer inside emacs. There is no error in the ...
  • 1,581
1 vote
0 answers
250 views

org-mode ignoring category filter on export

I'm trying to create a "calendar only" view of my org-mode agenda -- only headlines that have a "cal" category. The org-agenda-custom-commands below (the first block) works brilliantly for viewing ...
  • 111
11 votes
1 answer
1k views

Org Mode: Using table formula outside of a table?

I'm wondering whether it's possible to display the result of calculations performed on table data, outside of a table. For example, suppose I have a table of with a list of names. Is it possible to ...
  • 699
8 votes
2 answers
537 views

Why does Emacs org-mode ask for master file?

When opening .org files, Emacs asks for a master file. Why is that and how can I disable this feature? I guess it is because of using latex-related packages like ox-latex and ox-beamer. Is there ...
  • 409
20 votes
2 answers
5k views

Using Org Babel to tangle to a variable file name

If I have a code snippet that I tangle to a file, but I expect the file name to change over time, Is there a cleaner way to change the filename than Query-replace? For example, say I tangle code to ~/...
  • 919
6 votes
1 answer
1k views

How can I have Org use `sidewaysfigure` in LaTeX export?

I am writing an Org document with some large figures (images) which I would like to place on a separate page in landscape orientation when exporting to LaTeX. In LaTeX I can achieve what I want by ...
user avatar
8 votes
2 answers
2k views

Alternative Org Mode Implementations [closed]

Has the org-mode text syntax been adopted anywhere besides emacs? The only place I can think of is that Github allows you to write readmes in org mode and can display it like it can markdown. Are ...
  • 81
7 votes
2 answers
845 views

Org-mode -- sub-TOCs for individual sections?

Inside my org-mode documents, I'd like to do sub-TOCs for individual sections and subsections. For example: #+TOC: headlines 1 # This is the "main" table of contents, ...
20 votes
1 answer
571 views

how to prevent faces from bleeding onto surrounding areas of buffer?

Q: How do I keep org-mode link faces from bleeding over into the ... selective display characters at the end of a folded header? This is a visual tick that drives me a little nutty. When, in org-...
  • 32.1k
22 votes
1 answer
3k views

How to export top-level headings of org-mode buffer to separate files?

How can each top-level heading of an org-mode buffer be exported to a separate file named after the value of the corresponding CUSTOM_ID + (sanitized) title? Let's say a buffer contains: * Title of ...
  • 1,692
9 votes
2 answers
2k views

How can I change Org-mode time format for one buffer?

In general all timestamps in Org-mode appears as [YYYY-MM-DD Day]. I have one file (buffer) where I would like the format to be different. Either just [YYYY-MM-DD] or [YYYY-MM]. How do I tell Org-mode ...
  • 4,018
6 votes
1 answer
382 views

Applying major-mode font locking to exported org-babel snippets

Currently I have a bunch of code snippets in my Org-based presentation. I'm exporting them with ox-reveal, but the exported code doesn't have any syntax highlighting. Is there any way to: have syntax ...
  • 4,606
4 votes
2 answers
265 views

Show siblings of visible headers after hide-other

I'm using Outline mode (usually the minor mode, but it shouldn't matter) or Org mode. I have a file that looks like this: -*-outline-*- * Chapter 1 ** Section 1.1 *** Subsection 1.1.1 foo *** ...
13 votes
3 answers
1k views

Prevent org-mode from swallowing file-local variables

It is sometimes convenient to define file local variables with comments such as the following, which must be at the end of a file. # Local Variables: # fill-column: 80 # End: However, in org-mode ...
  • 22.7k
20 votes
1 answer
995 views

I want to have the <kbd> tags for my blog written in org-mode

I write and publish my blog with org-mode and org-page. The thing is that I want to write about Emacs and, I would like to have the keystrokes highlighted as Stack Exchange does with the <kbd> ...
  • 2,682
8 votes
1 answer
2k views

Have org-mode's exported HTML use CUSTOM_ID when linking to sub-sections in TOC

If I have an org-mode buffer like that looks like: * My headline :PROPERTIES: :ID: id1 :END: * My second headline :PROPERTIES: :ID: id2 :END: And I export this to HTML with a table-of-contents, the ...
  • 2,669
24 votes
2 answers
5k views

When are org-mode attachments preferable to file hyperlinks?

As far as I can tell, org-mode attachments solve the same problem as do file hyperlinks but in a clunkier way. In what situations would attachments be the superior solution?
6 votes
1 answer
692 views

Predicates in ibuffer saved filter groups

How do I add a new ibuffer saved filter group which matches all files in org-agenda-files? Something like: (setq-default ibuffer-saved-filter-groups `(("Default" ("...
21 votes
1 answer
2k views

Org Mode: Prevent editing of text within collapsed subtree

Is it possible to prevent editing of text within a collapsed subtree in Org Mode? That is, I would like to make it impossible to edit the hidden text. This seems like something that should exist but I ...
  • 699
5 votes
1 answer
1k 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 ...
7 votes
1 answer
2k views

Create table for existing data using org-mode

Is there a way of creating table for existing data using org-mode ? Let's assume I have the following data row1 row2 row3 And now I want to create a table of dimension 1x3 (col*row) on it. The ...
  • 3,573
7 votes
2 answers
3k views

How can I have an agenda timeline view of multiple files?

I'm using org-mode as a knowledge base, where each file is for a specific project that I'm working on. Each file has its own journal and I would love to see an aggregated journal of all the things I'...
  • 187
5 votes
2 answers
311 views

Detect when a key is rebound to another command

First, some context: I am in the process of debugging a strange interaction between smartparens and Org Speed Keys: After editing an .org file for a while, specific speed keys for navigating the ...
  • 14.4k
5 votes
2 answers
541 views

Using evil-mode with a function that does not work well with evil-mode

The great org-mode has a fast way to jump between headings in an org file; M-x org-goto or C-c C-j. This doesn't work with evil mode that well. If I am on evil normal mode in an org file, C-c C-j ...
  • 463
17 votes
2 answers
3k views

How to bind a key to a specific agenda command/list in org mode

I've added a custom key for the org agenda to show all unscheduled TODO items following Sacha Chua: (defun sacha/org-agenda-skip-scheduled () (org-agenda-skip-entry-if 'scheduled 'deadline 'regexp "...
6 votes
1 answer
831 views

time value in org-table formula

Is there any way to have time constant in an Org spreadsheet formula? For example, i would like to have something like this: @>$3=@>$5-'08:00:00'*vcount(@2..@-1) to calculate how much longer I'...
  • 163
2 votes
3 answers
4k views

What's wrong with my org-mode capture settings?

I've been trying to setting the capture configuration for org-mode, however, when I try to select a capture template, I get this message: Template key: byte-code: Capture template `p': listp Here ...
  • 2,682
13 votes
2 answers
1k views

How do I speed up org-mode agenda generation

It takes several seconds for Emacs org-mode to generate my agenda. How can I make it faster? I'm already using archive files, and I have less than 30 .org files, all of them reasonably short. Partial ...
11 votes
5 answers
951 views

Preview fields in org table

Sometimes it is convenient to set a manual column width when creating a table in org-mode. This makes it so that columns do not have to grow to the size of their longest entry. When an entry in and ...
  • 8,103
3 votes
1 answer
477 views

Adding table headings to #+RESULTS: tables

I'm using org-babel to generate a result I want to export in my table. However I can't find a way to easily control the heading of the table. At the moment the best I can manage is echo'ing some CSV ...
  • 4,606
10 votes
2 answers
620 views

Truncate beginning of right-aligned column in org table

I have a column in an org-mode table that contains long file names. The interesting part of the filename is the last few characters rather than the first. For example, given the files below: /data/...
  • 8,103
13 votes
1 answer
1k views

How to control in which window a buffer is displayed?

Q: how can I control which window org-deadline uses to display the calendar? org-deadline temporarily pops up the calendar buffer in a window when setting a deadline, and then closes it again after ...
  • 32.1k
8 votes
1 answer
1k views

Listing SCHEDULED headlines from an org file ordered by date

A few months ago, I converted my init file into an org file, and I’ve since been using it as a way to organize my blog posts. I won’t go into too much detail here, suffice to say that this is a huge ...
  • 22.7k
5 votes
2 answers
2k views

Supporting images/diagrams in exported org-mode presentations

I'm currently preparing a presentation which I've outlined in org-mode and I'm having difficulty in including diagrams in the exported HTML. I'm currently using org-reveal but I'm happy to use another ...
  • 4,606
9 votes
1 answer
997 views

Creating permalinks for sections in HTML exported from org-mode

By default when org-mode documents are exported to HTML, the section and sub-section links look like file:///path/to/export/location/doc.html#sec-1-1 The problem is that the above link won't point ...
  • 24.9k
30 votes
4 answers
21k views

Best ways of generating UML from within Emacs

There are a bunch of integration options between Emacs and UML tools, like org-mode's plantuml embedding, a plantuml major mode etc. Of course I can try them out but I'm wondering what other people ...
  • 1,389
23 votes
1 answer
2k views

How to implement Markdown style link IDs in org-mode?

At times, I need to use the same link at multiple places in a long document. For those cases it would be useful to have link IDs like in markdown. From markdown syntax ref, You can optionally use a ...
  • 24.9k
11 votes
1 answer
2k views

How to have org-publish automatically publish generated images?

I use org-publish to publish HTML exports of org-mode files quite often to share documents with my coworkers, however, I generate a lot of diagrams with plantuml and gnuplot. These diagrams aren't ...
  • 2,669
1 vote
1 answer
219 views

org-mode with predictive mode key conflict

I'm using org-mode with predictive and having an issue with predictive changing a key binding that org-mode uses. Specifically, predictive changes M-tab and I prefer to keep org-mode's definition of M-...
  • 900
6 votes
1 answer
400 views

Finding and executing org-babel snippets programatically

I currently I have a couple of org-babel shell snippets to package up a build and push it to a server for later usage. This also handily keeps a reference to the last execution of the snippet so I can ...
  • 4,606
33 votes
5 answers
6k views

How do I automatically save org-mode buffers?

I regularly use org-mode and the agenda to keep track of my to-do list. Since I use Dropbox to sync my list, I need the same tasks to be available on all computers. Sometimes during the course of my ...
  • 3,959
41 votes
2 answers
9k views

Intelligent spell-checking in org-mode

By default, the results of running M-x ispell-buffer in org-mode are very disappointing. Ispell looks inside :PROPERTY: drawers, which commonly contain things like :ID: 797495bd-581b-4a42-...
  • 22.7k