The Stack Overflow podcast is back! Listen to an interview with our new CEO.

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

How to allow org-babel to play with python virtual environment?

I have virtual environment set on my system (actually virtualenvwrapper). I would like to direct org babel to use a specific environment in a single code block or on the whole buffer. How can I do it?
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
822 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
1answer
730 views

Using org-src-preserve-indentation only on specific code blocks (or buffers, or anything beyond the global context, really)

I've been Googling and digging through the org-babel docs, but it's coming out with not a lot. The thing is, one of things I'm working on is using org-babel to tangle Makefile source. In it, the ...
7
votes
2answers
849 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
2k 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
998 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
959 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
616 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
930 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
431 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
953 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
604 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
6k views

Error message “Symbol's function definition is void: org-link-types” when I open a .org file

I tried to get the "capture"-Feature to work. I did the following things: Installation of the newest Version of the Org mode (now the version 8.2.10) To get the capture feature work i added to my ....
7
votes
2answers
2k views

Create image links in org-mode

I want to create clickable image links in org-mode. This would be equivalent to: <a href="path-to-file"> <img src="path-to-image"> </a> Currently, I can display inline image ...
7
votes
1answer
623 views

Setting #+ATTR_LATEX for all images of a document

I am currently adding an #+ATTR_LATEX before every image in my org-file to center it in the produced LaTeX beamer slides. That is slightly annoying and clutters up the document. Is there a way to set ...
7
votes
1answer
932 views

Specify timezone in Org date format

When I write something like this: <2015-07-05 Sun 20:00 GMT+0>, and then try to edit it by pressing C-c ., Org removes the GMT+0 part. So, I think it's in a wrong format. Note: I don't want to ...
7
votes
1answer
604 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
1answer
153 views

Modify org-mode's definition of comment lines?

Q: how do I change org-mode's definition of a commented line? According to the manual, org-mode comments work as follows: Lines starting with zero or more whitespace characters followed by one '#' ...
7
votes
4answers
2k 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 ...
7
votes
2answers
2k 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'...
7
votes
1answer
529 views

org-mode : highlight lines in src blocks when exported

Github has a convenient way to show some lines as highlighted in the code, like so. I'd like to know if there's a way to setup something similar with org-mode code blocks when exporting (in my use ...
7
votes
1answer
91 views

Sane settings to show context when doing search and replace in org-mode

If I run certain functions like isearch-forward (with C-s) in an org-mode buffer, all content become temporarily visible. When I end the search, headings automagically collapse the way they were ...
7
votes
1answer
243 views

Automatic clocking in org-mode when moving into section

Context When working on a larger document in org-mode I would like to clock the whole work time without gaps. As I usually have a logbook in each section I wonder if it's possible to automatically ...
7
votes
1answer
285 views

Converting cURL command to ob-http

I have a whole series of curl commands that I would like convert into ob-http code blocks in a org file (second choice would be to do them in restclient). Here is a simplified sample command: curl -...
7
votes
1answer
237 views

How can I manually set links in org mode?

So I'm trying to make an "autolinks mode" to emulate the functionality of notetaking software like Tomboy Notes or notes.vim, which automatically linkifies any text that happens to be the title of a ...
7
votes
2answers
863 views

tell org to treat block quotes as a special environment?

In org-mode I use block quotes. #+BEGIN_QUOTE Foo. #+END_QUOTE However, when I do org-edit-special inside a block quote, I get No special environment to edit here. How can I direct org-mode to treat ...
7
votes
1answer
2k views

rendering latex code inside #+BEGIN_LaTeX … #+END_LaTeX in org-mode 8.3.1

C-u C-u C-c C-x C-l or (org-toggle-prefix-fragment) with the double prefix argument used to toggle the display of LaTeX fragments across the whole buffer whether they were inside of #+BEGIN_LaTeX ...
7
votes
2answers
333 views

Org mode quote block indentation (highlighting)

Can indentation of the Org mode quote block be configured? I would like to highlight quote blocks with indented margins, both left and right if possible: The example above demonstrates org-quote ...
7
votes
0answers
330 views

org-mode ODT export template

I would like to export org file to ODT. Is there any nice ready to use ODT template that can be used for exported documents? Default template is not good looking. I had the same problem with html ...
7
votes
1answer
444 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...
7
votes
0answers
387 views

How to indicate the currently clocked-in task?

I'm using org-mode's clocking functions to track the hours I spend on projects. Since my main org file is rather large and I scroll through it a lot, it would be great to have a visual cue of the task ...
7
votes
0answers
1k views

How to better align tags in Org Mode using variable-width font

I prefer using variable-width fonts in Emacs whenever I can. That said, Org Mode tags are horribly aligned when headings use variable-width fonts, even if the tags themselves use fixed-width fonts. Is ...
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
3answers
2k views

Export Javascript source block to script tag in HTML when exporting Org file to HTML

To avoid the XY problem, let me say that what I actually want is to embed Javascript code into <script> tags in the HTML files produced via Org mode export, in such a way that (1) the Javascript ...
6
votes
1answer
4k views

Export code blocks in org-mode with minted environment

After inspecting the LaTeX generated for my org-mode file, I figured out that the code blocks are exported with the verbatim environment. Are there any way to tell org-mode to export code blocks using ...
6
votes
3answers
495 views

Using constants inline

How to do the following in org-mode: define a constant in the beginning of file, and than use it in the text or even compute on it. Following methods didn't work for me: Method 1: #+CONSTANTS: t=...
6
votes
2answers
2k views

Is it possible to copy /paste multiple lines of text into cells of org-mode table?

Here is my question, I have multiple lines of text, line this: line1 line2 line3 ... And I want to create a org-mode table like this: | C1 | |-------| | line1 | | line2 | | line3 | | .... | ...
6
votes
3answers
360 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
1answer
882 views

How to demote all headings by 1?

Given an outline with arbitrary structure, how can one demote every single heading by one? For example, starting from something like this * Lorem ips um dolor sit ame ** t, consectetur a ...
6
votes
2answers
1k views

Can i assign tags to list items in orgmode?

Is there a way to assign tags to list items and not just to headings? I can't seem to find anything relevant in the orgmode manual.
6
votes
1answer
1k views

How do I move TODO entries to the bottom of a task list?

That is, how do I change this task list * TODO A * DONE B * TODO C * DONE D * TODO E into the following one? * DONE B * DONE D * TODO A * TODO C * TODO E
6
votes
2answers
2k views

Font size control of LateX previews in Org files

I love the ability to preview LateX fragments in Org-mode. With two easy shortcuts one can turn them on and off on-demand: Turning previewing ON: C-c C-x, C-l Turning previewing OFF: C-c C-c One ...
6
votes
1answer
2k views

Centered figures in org-mode LaTeX export

When org-mode exports figures to LaTeX, the figure shows up left justified. Is there an easy way to have all the figures centered? I want to avoid having to type #+ATTR_LATEX: :float t above each ...
6
votes
2answers
315 views

execute result block as shell commands

I would like to build a shell command using elisp and then printing the result so it is stored in a #+RESULTS block and from there execute that result block as a shell command still inside the org-...