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
8
votes
1answer
616 views

Is there a way to make tags work well with line wrapping in emacs org mode?

If the buffer is too narrow, if I make a tag for a heading, the amount of whitespace before the tag causes the tag to wrap past the end of the line onto a new line (I have visual-line-mode turned on). ...
8
votes
1answer
242 views

Speed up org-map-entries when matching by property

Question: Why is org-map-entries property matching so slow, and what can I do to speed it up? Background: I have a relatively simple use for org-map-entries: grab the effort (in integer minutes) from ...
8
votes
1answer
723 views

Org calendar : change date language?

I am able to set the date language with (setq system-time-locale "LOCALE") but it doesn't affect the calendar. How can I change the language of calendar?
8
votes
1answer
215 views

Formulas in plain text export

I am trying to find a way to export an Org document with lots of formulas in plain text, but the results aren't great so far. What I tried: pandoc - basically keeps all math in LaTeX unchanged, ...
8
votes
1answer
546 views

How to export svg images as <img …> in html export

Normally, when I export to html an org-mode buffer that contains a link to an image, the link is coverted to a proper html <img...>. However, if that image has a .svg extension, it is exported ...
8
votes
0answers
113 views

Create a “rabbit hole” task stack that can be pushed/popped?

I frequently fall into a sort of working anti-pattern involving “rabbit holes.”¹ Here’s the form it takes (with a concrete e.g. in parentheses): Start working on something (the “real task”) ...
8
votes
1answer
622 views

org-mode captions not supported for EXAMPLE blocks?

Please consider the following, self-contained .org file MVE, which I hope is self-explanatory: #+OPTIONS: toc:nil Figure [[captions-work-for-src-blocks]] shows that captions are correctly exported ...
7
votes
4answers
3k views

how to use org-mode speed commands (speed keys)?

This keybinding was working on my Spacemacs with evil mode, org-mode, and ivy: t org-todo and is listed in the Spacemacs bindings: http://spacemacs.org/layers/+emacs/org/README.html#key-bindings ...
7
votes
2answers
2k views

In Org-Mode, is there a way to narrow the buffer to just the text under a heading?

For example, say I have a buffer that looks like this: * Org-Mode This is a document written in Org-Mode ** This is a subheading below that Would it be possible to narrow the buffer to just "This ...
7
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-...
7
votes
2answers
2k views

Adding/Modifying TODO keywords

I just installed Emacs 25.1 for windows. I want to modify the TODO keyword list, and I use this code: (setq org-todo-keywords '((sequence "TODO" "MAYBE" "NEXT" "STARTED" "...
7
votes
4answers
3k views

Converting an xls file to org-mode?

Is it possible to convert convert an xls file into an org table? I found this article on the emacs wiki but wasn't able to get it to work.
7
votes
3answers
829 views

How to add new markup to org-mode HTML export?

I would like to add a markup to org-mode, to simplify adding <audio> HTML tags. Like other inline markup: In Thai, /sabai dee mai/ is pronounced as [audio:assets/sabai.mp3] Which would export ...
7
votes
2answers
2k views

Can org-babel replace code with code output on html export?

I'm using org-mode to generate web pages of my notes. Can I embed code to generate additional HTML, etc? org-babel will generate results but it seems to show the results in addition to the code. I ...
7
votes
2answers
408 views

Prevent folding org files opened by ediff

Folding gets in the way when merging two org files using ediff, so I'm trying to disable all folding in org-mode buffers created by ediff. Non-ediff folding behavior should remain unaffected. ...
7
votes
2answers
512 views

What to do to make orgmode faster?

I have org-mode file with more than 10k lines of notes and traversing through the tree (just basic up/down movements) is very slow (to the point that it's unusable). What can i do to make it work ...
7
votes
2answers
1k views

Relative path link to .xls file from org-mode

I want to be able to link to an .xls file from org-mode. Reading up online this seems to be the way to get the links to open correctly, however even if I change the link type to `file+sys' the file ...
7
votes
3answers
95 views

Idiomatic way to count org-mode subtrees?

Is there an idiomatic way to count org-mode subtrees? I searched here on emacs.sx and other search engines, but I could not find an answer. I know one could easily count subtrees with a regex, but I ...
7
votes
2answers
312 views

Make org-mode table formulas use common arithmetic precedence

Given this org-mode document: | 4 | ? | #+TBLFM: $2=$1/2*2 Evaluating the formulas produces (in the second cell) the surprising result 1, instead of (4/2*2=) 4. Apparently, multiplication has a ...
7
votes
1answer
2k views

How to fix “Symbol's function definition is void: org-babel-get-header”

How do you trouble shoot this? (trying to run a sh block async) #+BEGIN_SRC sh /tmp/7.sh ...
7
votes
2answers
4k views

A search interface for org mode files

I use org-mode to take notes. Currently I have a root directory, say, "Notes", and there are several subdirectories inside it, for example, "Linux", "Programming", etc. The notes taken using org-mode ...
7
votes
1answer
671 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 ...
7
votes
1answer
517 views

Org-mode code blocks do not inherit variable properties from enclosing nodes

When playing with the literate aspects of Org-mode I found a description here of how you can set up a var property of a node and how this would then be inherited by enclosed code blocks as a variable ...
7
votes
2answers
2k views

Change org-mode table style just for LaTeX export

I am trying to customize the style of my org-mode tables when exported to Latex. I need to change their font face, their font size, the background color of the header and the background color of every ...
7
votes
2answers
2k views

Is there org-mode gantt view feature/package?

Is there some sort of gantt chart view package/feature for org-mode? I want to view my headings in the gantt chart (rather then as we see it in agenda), and at least interactively modify those ...
7
votes
1answer
494 views

org-mode : in a table, calculate a person's age based on their birthday

Let's say I have the following table: | Name | Age | Date of Birth | Income | |--------+------------------+------------------+--------| | Joe | | <1984-02-20 ...
7
votes
1answer
2k views

Programmatically add birthdays/holidays to agenda view in org-mode

org-mode offers a few built-in options to add birthdays/holidays to the agenda view in org-mode; however, there is no built-in support to add those dates entirely programmatically -- without manually ...
7
votes
1answer
668 views

How to make ordered lists collapsed by default in org mode

Suppose, we have this org file: * Header1 ** Header1-1 ** Header1-2 * Header2 1. Item 1 1. Item 1-1 2. Item 1-2 2. Item 2 When I open it by default it looks like this: * ...
7
votes
1answer
795 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 ...
7
votes
1answer
1k 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 ...
7
votes
1answer
1k views

Org tables: Wrap all fields in column to a given size

In org it is possible to set a column width like follows: |---+------------------------------| |---+----------------| | | | | | <14>...
7
votes
2answers
431 views

How to disable plain footnote references?

I want to write some text including sequences like [123] in an org-mode text file, but this is automatically turned into a footnote reference. This plain numeric footnote is not recommended anyway. ...
7
votes
2answers
1k views

org-mode clock sum to count 8h a day and not 24

I'm using effort estimate with specification as 1d or 4:00, and these are correctly collected with the 8h a day in mind, but these are summed up the section hierarchy to count 24 hours a day. Here's ...
7
votes
1answer
2k views

Execute src block on org mode export

I have some sort of fundamental confusion about using src blocks in org mode. I define a custom latex class in an emacs-lisp src block at the top of my org file. Export fails however, unless I ...
7
votes
1answer
770 views

How to make org prompt for a timestamp, when changing state of a TODO?

I have so many tasks I do far away from my computer with emacs. Now, when I change state of a TODO, it just logs the current time into the drawer. But the difference with actual time of the event may ...
7
votes
3answers
3k views

in org-mode, how to insert timestamp with today's date?

In a Lisp function, how do I instruct org to automatically insert a timestamp with today's date? I found the function org-insert-time-stamp, but I don't know how to provide an argument for it that ...
7
votes
1answer
2k views

Setting class attribute for html table in orgmode export

I would like to set the class for a table in html export, e.g.: <table class="table table-striped"> While it seems that setting some attributes for export of tables to HTML are possible: #+...
7
votes
1answer
1k views

Org-mode external links not working when exported to HTML

I have 2 .org files: // a.org contains the anchor <<my_anchor>> // b.org contains the link to my_anchor [[file:a.org::my_anchor][My Link]] When I click on the link in org-mode, it links ...
7
votes
2answers
803 views

Is it possible to get prettified symbols in Org-mode source blocks?

I have a few symbols in prettify-symbols-alist that improve the appearance of elisp code in my configuration file. I am migrating my configuration file from Elisp to Org-mode and I would like to keep ...
7
votes
2answers
1k views

org-babel and remote sql commands

I'm using org-babel to do litterate programming and I find it very convenient. I am able to execute shell commands on remote hosts, and local database commands with the postgres client. To open a file ...
7
votes
2answers
1k views

Replace PlantUML source with generated image in org-mode

I write UML diagrams in org-mode with PlantUML and usually "compile" it to HTML to view the result. Is there a way to have the image show up in my buffer? I try to enable iimage-mode but it doesn't ...
7
votes
1answer
947 views

Can you have org-mode headings with checkboxes?

I'd like to have this sort of functionality: * TODO master task ** [ ] my subtask 1 << checkbox in heading :-D ** [X] my completed subtask With the C-c C-c combo checking/unchecking such ...
7
votes
1answer
909 views

org-agenda todo effort rollup

You can use org-agenda-prefix-format to have the effort shown for each TODO headline: (setq org-agenda-custom-commands '(("c" "My TODOs" ((tags-todo "mytag" ((org-...
7
votes
2answers
592 views

Org date from spreadsheet

I am able to compute dates thus: #+NAME: mytbl | # | [2014-12-14 Sun] | 30 | <2015-01-13 Tue> | #+TBLFM: $4=$2+$3;D but what I want to then do is make that date appear as an agenda date, ...
7
votes
1answer
922 views

Org-mode: Can't display inline images when openwith-mode is turned on

I use openwith to open images and a number of other types of files in external applications. It works a treat, but gets in the way of displaying inline images in org-mode buffers: When I do C-c C-x C-...
7
votes
2answers
402 views

Why does xdg-open not work in eshell?

I want to open a.html in a browser from emacs (v. 24.5.1, using -Q [updated after comment]). M-x shell-command xdg-open a.html works as expected, but M-x eshell $ xdg-open a.html does not seem to ...
7
votes
1answer
1k views

Sorting an org-mode table with horizontal lines

I have a table in org-mode which has the following format: | Name | email | number | |------------+-----------------+--------| | Doe, John | jod@example.org | 7 | | Doe, Jane | ...
7
votes
2answers
909 views

How to remove 'SCHEDULED' timestamp when changing TODO state to WAITING

I have some item in an org buffer marked as TODO and having a scheduled timestamp: * TODO do something SCHEDULED: <2014-11-02 Sun> How do I cause the SCHEDULED timestamp to be removed when I ...
7
votes
1answer
584 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 ...
7
votes
1answer
547 views

Automatically run org-lint through flycheck

I've got a heap of org-mode files which I publish into HTML for a knowledge base, sometimes the publishing crashes out due to a broken link or something and it's hard to find the problem. I've been ...