Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

10
votes
1answer
359 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
votes
2answers
2k views

Customize org-mode priorities

I want to replace the default org-mode priorities with my own. default: #A #B #C desired: #1 #2 #3 #4 #5 How can I do this?
8
votes
3answers
854 views

How to control where the org todo keywords buffer displays?

Q: how can I control where the org todo keywords buffer appears? Entering a todo keyword with C-c C-t (org-todo) opens a new buffer with the keyword options and then closes it again after I select ...
7
votes
1answer
209 views
+50

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 ...
7
votes
2answers
278 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 ...
6
votes
3answers
803 views

Is it possible to enable minor modes in org babel blocks?

I use org-edit-special and it's really convenient, when editing source code, that's stored in org files. However I often only want to copy some code and I'm used to the highlighting of highlight-...
6
votes
1answer
665 views

Autocompletion when creating Internal Links in Org-mode

In Org-mode, when creating internal links, we have to type full name of the section heading to which we want to link. Is it possible that the heading name gets automatically filled in when we are ...
6
votes
1answer
545 views

Is it possible to include a base64 image in org file?

currently i save my pictures with org-download as an attach for an org file or via directory method. I wonder, if it possible to include a picture as base64 coded string (or anything else) to always ...
5
votes
1answer
583 views

src python in org-mode: IndentationError: unexpected indent

mac 10.13.4 / emacs 25.3 (9.0) / org-version 9.1.12 / python 3.5.2 I am trying to understand why C-c C-c generate an IndentationError: unexpected indent when executing a simple code like the example ...
5
votes
1answer
2k views

Org export to latex and HTML references

I have been working on a document that I want to export to both HTML and latex; while working on the document I noticed that using latex \label{} and \ref{} tags works properly for latex export, but ...
5
votes
3answers
444 views

Automatically Capitalise i to I

Is it possible to automatically capitalise i when writing in org-mode? I have to manually search all i and replaced it with I, before exporting to PDF. I want to do this only for the English word I, ...
5
votes
1answer
498 views

How to run file-specific commands?

For some org-mode files, I would like to run specific commands when that file is opened for editing. These commands should be written in the heading of the file somewhere near the #+CONFIG bits. E.g ...
4
votes
1answer
743 views

Is there an easy way to edit all links in an org file?

I have an org file with several dozen links to various webpages. I'd like to view and edit most of the urls in this file. Is there a convenient way to do this? In other words, does org-mode have a ...
4
votes
1answer
378 views

How can I add/subtract vectors by Calc in Org-mode?

I want to add/subtract two vectors, X and Y in Calc. If I calc constant numerics within Org-mode source block, it's o.k. #+BEGIN_SRC calc :session *Calculator* [1,1] + [2,2] + [3,3] #+END_SRC #+...
4
votes
0answers
110 views

Show a warning when there are duplicate headings in org-mode

Sometimes I have quite long org-mode documents. I tend to insert new headings and sub-headings throughout the whole document. However sometimes I think that I already used this text and begin ...
4
votes
3answers
2k views

How to refile into a datetree

Is it possible to refile a dated item into the appropriate place in a datetree? I have seen some posts that describe the use of org-archive-location but I cannot get that to work - perhaps its the ...
4
votes
1answer
768 views

Math autocompletion in org mode

What is the easiest way to get autocompletion for math symbols when I write latex formulas between \(..\) or \[...\] in org-mode? Could packages like company-math or ac-math be used in org-mode, for ...
4
votes
1answer
574 views

Relative dates in org template

I organize a technical user group and as part of that I use org-mode to schedule the same task tree every month so I remember to do everything for our meetings (food, speakers, projector, etc.) This, ...
3
votes
1answer
632 views

org-mode export images to html as figures, not img

Currently my images are exported with org-html-publish-to-html, and they end up as inlined <img src=''/>. I want them inside figures, so I'm working around this my problem by injecting the ...
3
votes
1answer
845 views

org-mode latex and pdf export custom title

I'm using the latest org-plus-contrib package from the org ELPA archive under emacs 24.5 (Linux and OSX). I needed to have a custom title which includes a logo PNG in documents I export from org to ...
3
votes
2answers
3k views

org-capture : how to choose the target file at the end of the process?

I use org-capture a lot, it's a terrific feature. However, sometimes i'd like to choose the target of the note during or at the end of the process, not at the beginning from the template. The ...
3
votes
1answer
433 views

Export slide and handout version of same beamer slides in org subtree

I want to create an org file with all my beamer lectures notes for one course. With the example below I can generate my slides for a specific lecture with subtree export by positioning point within ...
3
votes
1answer
1k views

How to include rendered HTML in org mode?

It looks like this question was asked in this thread, but was not resolved. I hope it doesn't sound redundant, but it seems there must be a way to accomplish this in org mode. In my example, I am ...
3
votes
0answers
140 views

Prevent Org from escaping latex results

During export, Org generates this: \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=2.8cm, semithick] \node[initial,state] (A) \{\$q$_{\...
3
votes
1answer
230 views

Validate internal fuzzy links in org-mode

Is there a function that will validate internal fuzzy links in org-mode? I would like to see which links resolve to headers (fontified in blue) and which ones are broke (fontified in red). John ...
3
votes
1answer
628 views

How to tangle all code blocks to a common file

I am planning to keep my .emacs file settings inside an org file which I can then tangle to a .emacs file. However, for every emacs-lisp block I don't want to have to type the redundant :tangle .emacs ...
2
votes
1answer
323 views

Org Agenda faces do not appear after applying themes

In my Org Agenda all text except for priorities use the "default" face. Until recently I would see colourful text for say, todo status. I was playing around with custom themes, so I may have broken ...
2
votes
2answers
240 views

Can columns of an org table be grouped to conveniently work with data?

I have an org table | | | P1 | P2 | P3 | P4 | Q1 | Q2 | E1 | E2 | F | |--------+--------+----+----+----+----+----+----+-----+-----+-----| | | Totals | 20 | 40 | 35 | 20 | 50 |...
2
votes
2answers
594 views

How do I insert code block header :var in exported code block in org-mode

GNU Emacs 26.0.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-10-06 Org-mode version 8.3.5 (release_8.3.5-1131-g7eecb2 @ ~/.emacs.d/el-get/org-mode/lisp/) I have come to share my projects as ...
2
votes
1answer
93 views

Why is my elisp function not accepting a second parameter?

@Juancho gave a great answer to a question I asked a few days ago. My question is about how to modify his elisp code. I have an org table #+begin_src emacs-lisp :results none (defun jj/factor (...
2
votes
3answers
481 views

Clearing the Contents of an Org-Mode Header Programmatically?

If we have * Header 1 Some contents. Is there a way to programmatically kill the contents of Header 1 so that it remains like: * Header 1 ?
2
votes
0answers
112 views

External http link not recognized as link

I have the following document: * Test | Links | |-------| | [[http://emacs.stackexchange.com/questions/ask]] | This Link is not recognized as a Link. If I press TAB while the cursor is on the link ...
13
votes
3answers
1k views

Changing the appearance of org-mode “hidden contents” ellipsis

In org-mode, when the contents of a subtree are hidden you see something like * Some tree :PROPERTIES:... ** Another One... Is there a way to change those ... to something else? I'd like to use ...
13
votes
2answers
2k views

Python org-mode source block output is always ': None'

This is my source block: #+BEGIN_SRC python print "hello" #+END_SRC The output is always: #+RESULTS: : None This is my org-babel configuration: (org-babel-do-load-languages 'org-babel-load-...
10
votes
2answers
1k views

How to manipulate clock times (org-mode)

I often forget either to clock out of a task, or to clock a different activity in. For instance, I was working on a (clocked) task right now, then my manager walked in and we embarked on a discussion ...
10
votes
3answers
752 views

Expand org-mode subtree with point after ellipsis?

I love org-mode, but one of the things that has always bugged me is that, if the point is after a collapsed subtree's ellipsis, pressing TAB doesn't expand it. For example, if the point is here (...
9
votes
2answers
7k views

org-mode , export , how to 'force' newline on lines between paragraphs?

I have an org-mode file, some sub-sections have some big paragraphs. When I export as html the whole paragraphs are displayed as single lines. I understand that I have to put a '\\' on every line, a ...
9
votes
1answer
2k views

What is the difference between sh and shell for org-babel?

I'm experimenting with sourcing data from org-mode into my shell scripts and I've run across a weirdness: #+tblname: simple-table | 1 | | 2 | | 3 | | 4 | | 5 | #+name: work-with-simple-list-shell #+...
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
1answer
891 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
932 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
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 ...
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-...
6
votes
1answer
818 views

Remove Task state keywords (TODO/DONE) from clocktable reports?

Org-mode's Clocktable reports show the task state "TODO/OPEN/DONE" at the beggining of the headline: like so: | | TODO Bug 459487 - [GTK] Replace... | 7:38 | | | | ...
6
votes
3answers
344 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
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
392 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
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
342 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
558 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 ...