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
13
votes
1answer
2k views

Org-mode: Exclude specific headlines from TOC when exporting

Q: How can I tell org-mode to exclude specific headlines from the table of contents when exporting? For example, exporting * Headline 1: Put me in TOC * Headline 2: Put me in TOC * Headline 3: DO ...
6
votes
1answer
1k views

In org mode, how to export slide with bibliography?

I have been trying to include citations in the org file which I then export to beamer and using biblatex. It seems that slide of bibliography needs specifying environment like fragile or ...
1
vote
1answer
392 views

How to comment options in org-mode export to beamer?

Generally in the LaTeX or beamer preamble, we add some packages and options for reference and enable them if required. %\usepackage{someusefulpackage} In Org mode export to LaTeX or beamer, when I ...
12
votes
3answers
1k views

How to enlarge latex fragments in org mode at the same time as the buffer text?

I'm using org-mode in emacs, but I think the question is also relevant for auctex users. In org-mode you can show latex fragments, as the manual demonstrates. But: these fragments (mostly math ...
16
votes
2answers
9k views

Loading bibtex file in org-mode file

I'm trying to use org-mode to do almost everything. In my scientific writing activity, I would like to sketch a whole paper in an .org file and then export in LaTeX. I don't want to load the .bib ...
24
votes
1answer
3k views

Set the background of org-exported <code> blocks according to theme

I export org-mode files quite often, and almost all of them have code in them. When I do export code, it ends up coloring the text depending on my theme, however, I switch between a dark theme and a ...
2
votes
0answers
313 views

How do I get comments in a noweb expansion?

Given the org-mode file * File Description :PROPERTIES: :comments: org :tangle: file.sh :noweb: yes :END: ** A function call This is foo #+BEGIN_SRC sh :noweb-ref myfunction :tangle no ...
4
votes
1answer
469 views

org-mode skip to next headline?

How can I skip to next heading in org-mode? Say This is my org-file, pipe indicates the cursor: * Top ** Apple| ** Banana ** Cherry I'd like to run a command and have my cursor now be here: * Top *...
10
votes
3answers
915 views

org-mode goto last heading?

org-mode goto last heading in the current tree. Say This is my org-file, pipe indicates the cursor: * Top| ** Apple ** Banana ** Cherry * Middle ** Ape ** Bear ** Cat I'd like to run a command and ...
6
votes
1answer
2k views

live refresh of inline images with org-display-inline-images

Recently I've noticed the function I had been using to do refresh had stopped working and I had to change to a simpler call. I used to have: (defun k/org-babel-refresh-inline-images () (org-...
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.
12
votes
1answer
5k views

How to include the output of a shell command in org-mode source code block?

For example, I got a demo to show a command and its output, and I want to insert them into an .org file like a source code snippet of C or something. I then want to be able to export the file to an ...
7
votes
1answer
942 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-...
6
votes
1answer
393 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
3k views

Clock Table Details in Org Mode

When I press C-cC-xC-r to print the clock report I get something like the following: Clock summary at [2014-11-05 Wed 13:33] | Headline | Time | |--------------+--------| | *Total time* | *0:...
48
votes
6answers
13k views

Can I use org-mode to structure my .emacs or other .el configuration file?

My .emacs configuration file gets bigger and bigger and I'd like to get a better overview and structuring by adding headings, subheadings and being able to hide or show them like I can do with Emacs ...
6
votes
2answers
2k views

Simple project management---org-mode, or another tool?

I'm a beginning emacs and org-mode user interested in the mode for personal project management. For example, I have a database of photo images: 2014-10-steven-and-his-cats.jpg 2014-10-steven-author-...
3
votes
0answers
283 views

How to get sauron-org to work for org-mode events?

For some reason I can't get Sauron to see my org-mode events. I can see that the sauron-org module has started though. Is there something else I need to enable/turn on to get Sauron to see org-mode ...
4
votes
2answers
468 views

apostrophe in org-babel export to latex and beamer

How can I get org-babel to properly render ' and not ’ when exporting to LaTeX and to Beamer? I didn't find any good solution yet, and I would like the code to be copy-pasteable.
4
votes
2answers
420 views

Greek characters in graphs produced by org-babel and gnuplot

I can generate plots using gnuplot source blocks with org-babel like the following: #+begin_src gnuplot :file plot.png plot x w l t "$\epsilon$ = 1", \ 1-x w l t "ε = 0.1" #+end_src which ...
10
votes
1answer
2k views

Display errors and warnings in an org-mode code block

I would like to be able to report warnings and errors when evaluating a Python code block in an Org file. When a code block has Python syntax errors, Org helpfully pops them up in a separate ...
12
votes
2answers
3k views

Can I include a common code block in two different code blocks in Org mode?

I have an org-mode file containing a table of data and two Python code blocks to extract different summaries from it. I would like to share some common constants and functions between these two code ...
3
votes
2answers
3k views

org babel eval with no confirmation is explicit: :eval yes

According to fniessen's babel reference I should be able to set :eval yes on a babel header line to make a source block evaluate without confirmation. However, this doesn't seem to work for me on ...
2
votes
1answer
561 views

Calling the calc stack from babel: displaying percentages

Calc supports displaying results as percentages with c %. How can I make babel return this? I tried: #+BEGIN_SRC calc 1 2 '/ 'c% #+END_SRC But this just gives an error. I also tried with a space ...
1
vote
1answer
350 views

Babel doesn't wrap results in verbatim

Here's an example: #+NAME: sys5 #+HEADER: :exports both #+BEGIN_SRC maxima :results raw programmode: false; solution: triangularize(coefmatrix( [ -3*x - 11*y + 7*z = 0, ...
1
vote
1answer
222 views

org-mode and reftex giving this error: reftex-using-biblatex-p: Stack overflow in regexp matcher

I'm trying to set upt org-mode and reftex-mode but I'm getting some troubles. Here is my init.el file: ;; ORG-MODE (add-to-list 'auto-mode-alist '("\\.org\\'" . org-mode)) (setq org-agenda-files '("...
36
votes
9answers
14k views

Keeping my .org files in sync across multiple computers

How can I keep my .org files up to date across several computers, perhaps across multiple platforms(linux/windows)? I could keep all the .org files in git for example, but that would require me to ...
6
votes
1answer
213 views

How to control SCHEDULED indenting

Org mode indents scheduling by default even though I don't indent my text. Can I configure it so that org-schedule doesn't indent?
15
votes
2answers
1k views

Turn a list or data structure into an org document

I'm writting a package which dowloads a list of healines, contents, and some other properties, which are to be displayed to the user. For the moment, an org-mode buffer seems like a good way of ...
14
votes
3answers
2k views

How to configure org-mode to respect system-specific default applications for external links?

In org-mode I can define external links for example as [[file+sys:path/to/document.pdf]] The file document.pdf is then opened with an external pdf viewer. The org-mode documentation claims that this ...
5
votes
2answers
759 views

org-mode: task sequence by categories

In an org file, is it possible to customize the task sequence by category? For instance, if I have a meeting, I would like to have it evolving through the states TODO and DONE, while if I'm tracking ...
9
votes
2answers
2k views

Using both fixed-width and variable-width font in org-mode

I would like to have an org-mode file with the following content: #+TITLE: My awesome Emacs file * My Header Here's some information under the header #+BEGIN_SRC sh echo "this is some code" #+...
3
votes
1answer
330 views

Promoting and demoting headers in orgstruct mode

It looks as if the promotion and demotion of headers using M-Right, M-S-Right, M-Left, M-S-Left is disabled in orgstruct-mode as per this emacs-orgmode GNU thread. Also, making direct function calls ...
4
votes
4answers
1k views

Trouble sorting customized priorities in org-mode

I'm trying to setup priorities other than A, B, C. (I want to do U, I, O; short for Urgent, Important, Other). Previously, I had set up custom agenda commands that sorted priority-down. I ...
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 | ...
8
votes
2answers
2k views

How to format/fill poorly-formatted bullet items in org-mode?

Q: how can I format/fill poorly-formatted items in an org-mode bulleted list? I'm trying to figure out how to make fill-paragraph work on poorly formatted bulleted items in an org-mode list. By "...
4
votes
2answers
502 views

How can I draft an mu4e message using the contents of an org subtree?

I keep track of my activity in an org-file. The latest status is always under the heading "Current" which I usually just cut and paste into IRC for our weekly meetings. However we are now asked to ...
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
2answers
1k 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 ...
1
vote
1answer
654 views

Is there a way to set the global agenda sorting?

I know that I can setup custom agenda commands with sorting specified using: (org-agenda-sorting-strategy '(priority-down todo-state-up)) Is there a way to set the global agenda sorting somehow?
7
votes
2answers
408 views

Controlling the order of output with Org-Babel

Consider the following Org file: #+PROPERTY: tangle "init.el" #+PROPERTY: noweb yes * A #+begin_src elisp ; initialization code ; this *must* come first #+end_src * B #+begin_src emacs-lisp <<...
15
votes
1answer
2k views

syntax highlighting in source blocks

I thought that org-mode highlighted source blocks with the relevant mode. So for example: #+BEGIN_SRC clojure (defn plus [a b] (+ a b)) #+END_SRC This would show up with the syntax highlighting ...
10
votes
3answers
9k views

How should I write inline equations in Org Mode so they export to LaTeX properly?

I have a sentence with the words 42 m s^{-1}. When this is exported to LaTeX it exports as 42 m s$^{\text{-1}}$. How should I write it, or what flags should I set in the #+OPTIONS: line, so that it ...
6
votes
1answer
171 views

Don't reposition Org Agenda buffer when starting TODO

When I change the state of a TODO item in Org-Agenda (i.e., by hitting t), it repositions the buffer so that that item is at the top of the screen. I don't want it to do that — I'd rather just keep ...
6
votes
1answer
314 views

How to make org-mode understand alternate day/month abbreviations?

Q: How can I make org-mode understand alternate day/month abbreviations? org-mode uses the function org-read-date when entering timestamps, scheduling dates, and creating deadlines. One may enter ...
1
vote
1answer
328 views

make org-agenda-mode always have (org-agenda-follow-mode) toggled on

I want to make it so that org-agenda-mode defaults to always having (org-agenda-follow-mode) toggled on.
1
vote
1answer
347 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 ...
7
votes
1answer
3k 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
3answers
705 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
2answers
2k 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-...