Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. 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
8
votes
1answer
280 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 ...
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 ...
6
votes
1answer
781 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
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 ...
5
votes
1answer
713 views

Programmatically read and set buffer-wide org-mode property

How one can programmatically read and set a buffer-wide org-mode property? I am aware of this, which points to (org-entry-put POM "PWE-1" "47") but it does not seem useful in case of buffer global ...
5
votes
2answers
1k views

In an orgmode clock report table, how do I sum a column that was computed with another formula?

Suppose I have some headlines that look like this. * TODO Parent ** TODO Sub Head1 CLOCK: [2015-02-09 Mon 07:00]--[2015-02-09 Mon 07:08] => 0:08 *** TODO Sub Sub Head CLOCK: [2015-02-09 ...
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 ...
3
votes
1answer
338 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
2answers
1k views

Org mode converting spaces to tabs when evaluating source?

I am testing out the Babel feature in org-mode, with this small block. #+BEGIN_SRC sh :results verbatim :exports both banner -w 35 e ...
1
vote
2answers
479 views

mode-line in title bar?

I use org-mode with org-pomodoro. Status bar at the bottom get's pretty long. Like: -:**- leo.org Top L50 (org Ind Helm drag Abbrev) [6:08 (bug 459487 - [Gtk] Replace deprecated ......)] [...
15
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-...
13
votes
4answers
2k views

Is it possible to create an org-mode *scratch* buffer?

While working on a document in emacs I often find myself opening a new buffer, doing something in org-mode, copying the org-mode content, and pasting it into my document. I used to create a new org-...
12
votes
3answers
941 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 ...
12
votes
3answers
3k views

in org-mode, how to view TODO items for current buffer only?

In org-mode, I like to run org-todo-list, which displays the global todo list including all my org-agenda files. How do I view a TODO list for only the current buffer, ignoring my other org-agenda ...
10
votes
1answer
368 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/...
9
votes
3answers
929 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 ...
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?
7
votes
1answer
1k 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
2k views

Outlook Calendar in org agenda

I would like to integrate the calendar from my outlook into my orgmode agenda. I am looking for a solution with the following features Should be implemented in elisp only, so that I can run this on ...
7
votes
2answers
336 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
908 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
619 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
2answers
1k views

Easy Templates in Org 9.2

Easy templates in Org 9.2 are not working for me on GNU Emacs 26.1 (build 1, x86_64-w64-mingw32) of 2018-05-30. I have changed my elpa/ directory to smelpa/. I load emacs -q and switch to the *...
5
votes
1answer
542 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 ...
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
472 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
2answers
741 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 ...
4
votes
1answer
780 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
622 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, ...
4
votes
0answers
112 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
1answer
412 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
1answer
316 views

Org-Mode: Using Source Code Blocks in Table Formulas

I would like to use source code blocks in org-mode table formulas using something similar to: #+NAME: square #+BEGIN_SRC python :var x=0 return x**2 #+END_SRC | 1 | 1 | | 2 | 4 | | 3 | 9 | #+TBLFM: $...
4
votes
1answer
865 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
979 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 ...
4
votes
1answer
561 views

How to cite author-date including page number in org-mode?

I am using org-ref in org-mode. I want to cite a book like this: \citep[p. 1445]{Fong:2006} but I am only getting citep:Fong:2006. How can I include page number?
3
votes
1answer
695 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
605 views

how to use minibuffer instead of pop-up window for GPG files?

I am looking for Emacs password manager, and org-password-manager looks nice for my needs. But when I am trying to open created passwords.org.gpg file (I use symmetric encryption for more ease), ...
3
votes
1answer
870 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
0answers
148 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
601 views

Exporting Org in Landsacpe

I have an org document I'd like to export to PDF - with several wide tables columns in it - so much so that it makes sense to export the whole document in A4 landscape to keep the orientation ...
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
527 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 ...
2
votes
1answer
95 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
585 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
118 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 ...
2
votes
1answer
355 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
474 views

Org-mode latex environment in drawer

I use a custom LaTeX environment that creates a quotation box on export. A sample code looks like this: * Org-mode heading Here is a witty quote from a witty chap: \begin{fancyquote} Witty quote! ...
2
votes
2answers
641 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
2answers
250 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 |...
1
vote
1answer
78 views

How to generate the result file for dot source block and include it with another path in org-mode?

I'm starting to write blogs with org-mode and org-static-blog, but now I'm stuck with a problem respecting exporting graphviz dot file to image file. So I have a code block like this with (setq org-...