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.

11
votes
2answers
1k views

org-refile to a known fixed location

I'm trying to write a function that will take a heading and refile it to one specific location. The doc for org-refile is (org-refile &optional GOTO DEFAULT-BUFFER RFLOC MSG) and RFLOC is RFLOC ...
4
votes
2answers
548 views

Make org-agenda show only first occurrence of recurring task?

In Org-Mode, I have a few mundane re-occuring tasks. When a task is set to re-occur, it shows up on every day it reccours. E.g a daily task: * TODO Bugzilla Triage SCHEDULED <[today] ++1d>...
15
votes
2answers
1k views

Is there a possibility to have multiple agenda views open at once?

I have a custom agenda view which shows the Items I did last week and the items I have to do in this week. This view is based on a filter of TODO items. However, it would be good to see scheduled ...
16
votes
2answers
6k views

Is there a way to resize margins when exporting PDF in org-mode?

I want to export my org document as a PDF, but its margins are way too big. I would like to re-size them as I wish. I am using #+LaTeX_CLASS: report I do not know if there is a way. Any help?
4
votes
1answer
201 views

How to save expansion state of org-file?

Is there a way to setup org-mode so that the expansion state of everything within a file is automatically saved when closing the file or quitting? The Org-Mode FAQ says this is not possible, but ...
8
votes
3answers
3k views

org-plus-contrib and org with `require` or `use-package`

How can I ensure I'm downloading and using org-plus-contrib from the org-mode repository using require or use-package? Package.el downloads the package, compiles everything and then says it can't load ...
14
votes
1answer
1k views

Make Org report: “Bob's 21st birthday” like imported diary entries do

When you have: (setq org-agenda-include-diary t) set, then an entry in the ~/diary file like this: %%(org-anniversary 1950 02 14) Bob's %d%s birthday displays as: Diary: Bob's 65th birthday ...
11
votes
1answer
2k views

How to turn a heading into a list item in org mode?

When working on the structure of a document, often I find myself wanting to turn a list of items into a set of headings, or a set of headings into a list. I haven't found a way to do this easily ...
17
votes
3answers
2k views

org-habit - do a repetitive task certain days of the week only?

I want to know how can I set a repetitive task for only a range of days of the week, for instance from Monday to Friday only.
4
votes
1answer
426 views

org-mode: have flycheck resolve relative config while editing code blocks

Desired behaviour While editing code blocks with org-mode by pressing C-c ' I'd like Flycheck to resolve relevant configuration the same way it does for normal files. I'm using JavaScript, and these ...
12
votes
2answers
1k views

Can I make links in Org Mode that contain brackets, [ or ]?

Is there someway to escape brackets ([ and ]) so that they can be included in the description of an Org mode link? The following link doesn't work, for example: [[http://mathoverflow.net/questions/...
0
votes
0answers
51 views

Tags show conflict when I use visual-line mode and fold the headline

I got a super useful snippet from org-hacks: http://orgmode.org/worg/org-hacks.html#unnumbered-66, which can automatically adjust the position of tags to right of the headline and make org-mode looks ...
0
votes
2answers
163 views

Full path figure export to LaTeX error in org-mode in Windows 7

when I export a full path figure , like: [[file:c:/Users/admin/Desktop/1.png]] to LaTeX in org-mode, a result of {//c:/Users/admin/Desktop/1.png} was generated. One more // was generated in front ...
1
vote
0answers
128 views

deactivate saveplace.el for filetype

Saveplace is a nice tool to remember where I have left of in a file. But for Org files it causes me problems when I quit emacs in the middle of a heading. My current try to deactivate it in org-files ...
7
votes
1answer
478 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 ...
6
votes
1answer
916 views

Org Mode exclude subtree from agenda views

I'd like to tag or else mark a subtree as on the "backburner" and exclude the subtree (and its children) from all agenda views, e.g. agenda, to do, match list, etc. Basically this would replicate the ...
9
votes
2answers
4k views

The syntax highlight and indentation of source code block in exported html file for org-mode

When I insert C code block inside an org-mode file, the syntax highlight and indentation of the source code are customized as I wanted. When I export it into a html file, the syntax highlight in the ...
10
votes
1answer
2k views

Export :PROPERTIES: blocks with org-mode?

The org-mode manual says that it's possible to export property drawers, but trying with #+OPTIONS: d:t does not export any :PROPERTIES: blocks like it used to. Reading the Drawers chapter it ...
4
votes
2answers
1k views

Comment lines in org-mode with clean view

I want to insert a comment line between two top-level headings like this: # first comment * Top level headline * Second level * 3rd level some text * 3rd level more text # ...
3
votes
1answer
1k views

Orgmode - scheduling recurring events without using sexp or +-syntax

I'm trying to use my Orgmode calendar via MobileOrg on my Android devices, to push events to the Google calendar, and neither sexp-formatted events nor recurring events (set up with +) seem to appear ...
10
votes
3answers
2k views

Format a HTML paper with Org-mode

Org-mode's default during HTML export is to put the author in the postamble at the bottom of the page. But I would like to export a paper like document with the author between the title and the ...
5
votes
1answer
860 views

Disable org-mode keyboard shortcuts

Is there a simple way (e.g. customization option) to disable some of org-mode's keyboard shortcuts? I normally use shift-right_arrow or shift-left_arrow to select text (expand region), but in org-mode ...
9
votes
2answers
4k views

Sorting headings in an ORG file

I'm taking notes in a largish org-mode file that has the following structure: * Toto, A Notes about Toto. * Titi, C Notes about Titi. * Tutu, A Notes about Tutu. I'd like to sort the file so that ...
3
votes
2answers
247 views

Mouse problem in org-mode export window

When in org-mode, running the export command will open a windows with all the export options. However, my mouse scroll behaves erratically and I am not able to scroll down or move at all, not even by ...
4
votes
1answer
261 views

Export results of codeblock, then later export the source block (e.g. as for a code-listing in a document appendix)

I have a document in which I have named R source code blocks. These blocks are set to export the results only in the text narrative. However, I would like to include the code for these blocks in an ...
5
votes
2answers
2k views

How to include other .org files programmatically (ie not from main .org file)?

Including other .org files is quite easy. For example, for configuration, #+setupfile: /path/to/config.org or #INCLUDE: /path/to/config.org Those lines need to be in the .org file in order to be ...
5
votes
3answers
441 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, ...
28
votes
2answers
3k views

Make visual-line-mode more compatible with org-mode

visual-line-mode is very useful to wrap lines with the window size changing without inserting any newlines. But in org-mode, it also wraps the headline and source blocks which is a little bit annoying....
13
votes
1answer
441 views

Generating output in a different language with org mode

Given the following is intended to generate C++ code: #+BEGIN_SRC python :exports both :results output code print "struct Whatever{};" #+END_SRC The result is inserted as follows: #+RESULTS: #+...
4
votes
1answer
688 views

Properties inheriting in org doesn't work

I have this sample org file: #+COLUMNS: %25ITEM %TODO %5owner %3PRIORITY %TAGS * test1 :PROPERTIES: :owner: own1 :END: ** test2 ** test3 I also have in my .emacs file: (setq org-use-...
1
vote
1answer
204 views

Link to password-protected FTP server in org-mode

I can't figure out the correct syntax for a link to a password-protected FTP site. I want to insert a link in org-mode, which opens a remote FTP server at a given directory in dired. When I try /...
1
vote
1answer
687 views

Customize agenda view with no headers

I'm trying to customize my agenda. My tasks have the following states: NEXT, WAITING, TODO and DONE. I want to customize my agenda view so that no header is shown. So far, I have: (setq org-agenda-...
8
votes
2answers
3k views

How to make eww default browser in Emacs?

When I click on links in my org-mode buffer it opens up my external browser. How can I make Emacs default to eww (and let me open up an external browser from there if I wish)?
7
votes
3answers
814 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 ...
3
votes
1answer
452 views

How can I automatically generate an index from headings in org-mode?

Let's say I have this: * Title ** Subtitle 1 some text ** Subtitle 2 *** Sub-Subtitle 1 some text *** Sub-Subtitle 2 How can I automatically generate an index with links to all those headings?...
3
votes
1answer
270 views

Disable “now” line in org agenda view?

Q: how can I disable the "now" line in an org-mode agenda view? When displaying a time grid in the agenda, org-mode displays, by default (or so I assume), a line with the current time listed as "now":...
32
votes
1answer
12k views

Multicolumn cells in org-mode tables

Is it possible to merge two or more cells in an org-mode table like when using \multicolumn{}{}{} or \multirow{}{}{} in LaTeX? Something like this does not work: |------------+-----------+----------+...
2
votes
1answer
316 views

How to set the 'name' of an agenda file

I have several agenda files which have the same filename (but are from different directories). This is because I'm using a uniform template for all my projects, which include, e.g., a $PRJHOME/README....
2
votes
1answer
492 views

disable tabular output for code block in org-mode

When I execute a code block in org mode, the output will be tabularized. I want to use this functionality to build a set of commands which I can then execute in a new code block, so I have to remove ...
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 ...
3
votes
2answers
369 views

`:cache yes` makes the settings on `#+RESULTS` erased whenever executing the block

:cache yes makes the settings on #+RESULTS be erased whenever execute the block. For example, I want an image file be resized into width 12cm for LaTeX -> PDF exporting. However, #+ATTR_LATEX: :width ...
11
votes
1answer
2k views

How to automatically encrypt orgmode files?

I have a git repository where some org-mode files live. Some of them have a private nature and the server where the git repository lives can be accessed by some untrusted third party. Thatswhy I want ...
9
votes
1answer
2k views

Collapse src blocks in org-mode by default

When I open an org file, I want all the src blocks to start collapsed and stay that way until I explicitly org-cycle them. I can't find any variable to control this behavior. Perhaps I'm overlooking ...
2
votes
2answers
420 views

Remove Org-mode tags from ASCII but not LaTeX export

I'm aware of #+OPTIONS: tags:nil to have tags not be exported. I'd like them exported to LaTeX exports, but not ASCII exports. Is there a way to have options only apply to certain exports? Is there ...
0
votes
0answers
47 views

Check the modified time of #+RESULTS file before exporting, then evaluate the code blocks selectively to save time?

Is there any configuration or package, which can make Org-mode checks the modified time of all #+RESULTS' files before export (maybe auto add a #+MODTIME for comparing I guess), then decide if a code ...
9
votes
1answer
2k views

paste html into org mode

Is there any easy way to copy/paste text from a browser window into an org file, automatically converting links into [[][]] org-mode links? thanks!
5
votes
1answer
787 views

How to debug org-mode export to Beamer?

When using org-mode to create Beamer slides, sometimes the error shown is "Pdf file ... wasn't produced" or the previous PDF file generated is opened (without the changes made) when the command C-...
3
votes
3answers
815 views

Org table: aggregate each column (but not the header column)

I would like to transpose this table example from Org as a spreadsheet system: a short introduction: | Student | Maths | Physics | Mean | |----------+-------+---------+------| | Bertrand | 13 | ...
9
votes
2answers
2k views

Where is the org contrib directory?

I'm trying to use org-checklist. The documentation says that I should 'Ensure the org contrib directory is in load-path'. Where is the contrib directory?
5
votes
1answer
321 views

org-mode: Is there a description markup like in LaTeX?

In org-mode, is there a markup like LaTeX's description? \begin{description} \item[First] The first item \item[Second] The second item \item[Third] The third etc \ldots \end{description} ...