Stack Exchange Network

Stack Exchange network consists of 174 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.

9
votes
1answer
735 views

How to get the raw data for an org-mode agenda without an agenda view?

Q: How can I have org-mode return the raw data for an agenda view without actually creating an agenda view? I'd like to access my agenda for an arbitrary day. However, I do not want to create an ...
26
votes
2answers
4k views

Is it possible to export content of subtrees without their headings?

I draft documents in org-mode and export them to LaTeX, HTML, etc. as needed. I frequently use the tag :no_export: whenever I don't want a certain subtree to show up in the output. What I also want ...
22
votes
1answer
6k views

How to highlight text permanently in org-mode

I know I can use *bold*, /italic/, _underlined_, =verbatim= and ~code~, and, if you must, ‘+strike-through+’ to do some markup to text according to org-mode documentation, but they are not enough for ...
33
votes
3answers
5k views

Inline verbatim and code with quotes in Org-mode

In Org-mode I can surround text with = or ~ to place text in inline verbatim or code mode. However this fails if the text has quotes, and I couldn't find an explanation or workaround in the ...
23
votes
2answers
3k views

Exporting org file breaks when upgrading to orgmode 8.3

My orgmode was recently updated to the recent 8.3, and I found that I can't export my init.org file as HTML any more. I'm getting the following output in *Messages* buffer: org-babel-exp process ...
25
votes
1answer
2k views

Extending org-mode with more markups

I want to add a markup and formatting for such markup, i.e. <kbd>...</kbd> with a box surrounds such markup. I also want the mark up to be compatible with (setq org-hide-emphasis-markers t)...
50
votes
4answers
10k views

Quickly insert source blocks in org mode

org-mode has the ability to render source code, with blocks of the following syntax: #+NAME: <name> #+BEGIN_SRC <language> <switches> <header arguments> <body> #+...
6
votes
1answer
2k views

Programmatically add birthdays/holidays to agenda view in org-mode

org-mode offers a few built-in options to add birthdays/holidays to the agenda view in org-mode; however, there is no built-in support to add those dates entirely programmatically -- without manually ...
32
votes
3answers
6k views

Good methods for setting up alarms (audio + visual) triggered by org-mode events?

I would like to have alarms set off based on org-mode events associated with specific times (or start times). Ideally these would be audio and visual, and able to be customised to some extent. I ...
44
votes
6answers
8k views

Org-mode 9: unable to eval code-blocks

My Emacs config lives inside of a .org file from which I tangle source blocks to a .el file. I could evaluate source blocks with C-c C-c Today I updated to org-mode version 9 from org elpa and now ...
12
votes
1answer
380 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: #+...
9
votes
2answers
623 views

ORG-MODE - Trigger TODO status on a certain date?

Rather than manually check a tickler file or calendar every morning, how can I create a trigger that will set the status of an item to TODO on a certain date?
5
votes
2answers
261 views

How can I stop org-mode treating a number followed by a full stop as a bullet point?

I'm using org-mode to write some documentation. After changing some wording, fill-paragraph has arranged things so there's a number followed by a full stop at the start of a line. Like this: Blah ...
3
votes
0answers
332 views

Export to multiple files according to tags

I am using org mode to build teaching presentations (through beamer export) and I have a global document containing all the slides I use. Each slide has a tag to indicate the corresponding teaching ...
3
votes
1answer
219 views

Org-mode custom youtube link syntax

I would like to defining a custom org-mode link, that accepts the following syntax: [[yt:<video ID>]] and produces an image link equivalent to this: [[https://youtu.be/<video ID>][http:/...
3
votes
1answer
157 views

Questions About Org Mode Levels

I'm new to org mode. Something about levels in org mode confused me but i found no info around (both in tutorials and Google). I can put text under any heading, and the text is treated as a child ...
2
votes
1answer
440 views

yasnippet truncates clipboard contents

I have a yasnippet that is intended to create a footnote in org-mode format and automatically insert the contents of the clipboard. # -*- mode: snippet -*- # name: footnote # key: fn # -- [fn:: `(...
31
votes
1answer
11k 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: |------------+-----------+----------+...
16
votes
1answer
2k views

How to export top-level headings of org-mode buffer to separate files?

How can each top-level heading of an org-mode buffer be exported to a separate file named after the value of the corresponding CUSTOM_ID + (sanitized) title? Let's say a buffer contains: * Title of ...
15
votes
2answers
7k 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 ...
20
votes
1answer
10k views

How to use pdf-tools (pdf-view-mode) in emacs?

pdf-tools includes pdf-view-mode which offers several features not present in doc-view-mode (see end of question). Can pdf-view-mode be used as a replacement for doc-view-mode generally, or does it ...
24
votes
2answers
4k views

New line in Title of an org-mode exported html document

I use org-mode to document stuff and usually export it to pdf (via latex) and html. If the \\ characters are at the end of a line, it forces a newline character when exporting to both pdf and html. ...
15
votes
1answer
2k views

Using Org Babel to tangle to a variable file name

If I have a code snippet that I tangle to a file, but I expect the file name to change over time, Is there a cleaner way to change the filename than Query-replace? For example, say I tangle code to ~/...
10
votes
2answers
558 views

Way to hide SRC block delimiters

is there a way to keep only source code inside source code, that is make #+BEGIN_SRC and #+END_SRC invisible? It's cosmetic but it makes things clearer when one have to deal with a lot of short code ...
16
votes
2answers
2k views

Org Mode link to open directory in Dired

I'd like to have a link like [[file:~/projects][Projects]] open directly in Dired rather than Finder (I'm on a Mac), which is what it does now. Is there a way? (Of course there's a way. It's ...
12
votes
4answers
2k views

How can I escape the * in org-mode to prevent bold fontification

If I write something like *shrug* in org mode, it will be automatically fontified as bold text. How can I prevent that, i.e. actually having *shrug* appear verbatim when exported? Edit: I still ...
13
votes
1answer
696 views

How to control in which window a buffer is displayed?

Q: how can I control which window org-deadline uses to display the calendar? org-deadline temporarily pops up the calendar buffer in a window when setting a deadline, and then closes it again after ...
9
votes
2answers
604 views

Is there a simple way to use all org-files referenced in a main file for the org-mode clock table

I'm using org-mode to keep track of the time I spend on various projects. I have one main org file and two more for two large projects I'm working on. All three are listed in org-agenda-files. I ...
7
votes
0answers
377 views

Edebug orgmode source code blocks with input variables

What is the standard method to debug emacs-lisp orgmode source code blocks with input variables as header arguments? I found the hacky solution to insert the following snipped in front of a source ...
6
votes
1answer
808 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-...
5
votes
3answers
862 views

Cleanup org-mode export intermediary file

I use org-mode to export PDF. It does it through LaTeX ; fine. So I get .pdf file and .tex files. Only the PDF is interesting to me. Any setting/way that org-mode cleanup the .tex files by itself (...
6
votes
3answers
153 views

Tracking when variables get updated

I have a problem with org-mode's agenda view. While I've set org-agenda-files to '("~/org/") invariably when I finally spin up M-x org-agenda I find that org-agenda-files just points to one org-file. ...
9
votes
1answer
636 views

Fontify broken links in org-mode

If I create a bad [[file:link]] or an internal [[Link]] that does not exist, I would like to org-mode to fontify this using org-warning face. How can I get this done? Thanks,
7
votes
1answer
652 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 ...
6
votes
1answer
3k 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 ...
5
votes
1answer
1k views

How to reference named table or code block in Org-mode

In Org-mode buffers, table or code block can have #+NAME: title. But I don't know how to reference them in current buffer or in other files with org-mode hyperlink. (like one link format: [[file:some-...
7
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 ...
3
votes
1answer
287 views

Mark up only part of a word

It's easy to make whole words bold, italic etc. by using the asterisk/slash before and after the word. It's imperative however to also have a space in front of the opener markup, and after the closer ...
45
votes
5answers
9k 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 ...
29
votes
2answers
5k views

How to migrate Markdown files to Emacs org mode format

I've got hundreds of personal notes stored as files in Markdown format, after several years using the VoodooPad personal wiki software for OS X. There's plenty of information available for exporting ...
17
votes
5answers
3k views

How can I get an org-mode outline in a 2nd buffer as a dynamic table of contents?

When I edit large documents, I would like to see where I'm at by seeing the outline (with no-content) in a separate buffer. Like when you read a PDF file there is a TOC on the left. (see below) In ...
19
votes
1answer
2k views

How does one use flyspell in org buffers without flyspell triggering on tangled code blocks?

Imagine an org buffer in Emacs like: * Title Some text describing the title and the codew (sic) and whatnot. #+BEGIN_SRC emacs_lisp (setq backup-by-copying t) #+END_SRC I want flyspell to check ...
21
votes
1answer
856 views

How to implement Markdown style link IDs in org-mode?

At times, I need to use the same link at multiple places in a long document. For those cases it would be useful to have link IDs like in markdown. From markdown syntax ref, You can optionally use ...
16
votes
1answer
2k views

How to specify default header arguments in orgmode code blocks

I'm tying to set default header arguments to the code blocks within my org file, like this: #+PROPERTY: header-args :session *my_python_session* #+PROPERTY: header-args :results silent #+PROPERTY: ...
10
votes
3answers
940 views

Org Mode Babel - Interactive code block evaluation

I would like to evaluate in org mode source code blocks in C++ containing "cin" instructions but I can't find a way to have an interactive evaluation (with user input) during evaluation. Example of ...
12
votes
4answers
2k views

Change table of contents title in Org mode according to document language

Is there an option which changes default title of table of contents in Org mode? My document is not in English so I want to translate table of content's title. Answer As JeanPierre said, It's about ...
12
votes
2answers
2k views

How can I view the hierarchy of TODO keywords in org agenda mode?

I have a variety of (facile) tasks in some kind of hierarchy. * TODO Make a pizza ** TODO Get cheese *** TODO Buy a cow ** TODO Get tomatoes *** TODO Grow tomatoes **** TODO Buy tomatoes ** TODO Buy ...
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 ...
22
votes
1answer
2k 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 ...
9
votes
1answer
345 views

Config, examples and use cases of Library Of Babel

I want to understand how org-babel's Library Of Babel works. Seems like a powerful yet underused tool. The documentation says that I can add code to the library, by first saving the code in ...