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
10 votes
1 answer
2k 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 ...
Dan's user avatar
  • 32.7k
33 votes
2 answers
7k 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 ...
Brian Z's user avatar
  • 2,893
57 votes
3 answers
15k 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 ...
Amelio Vazquez-Reina's user avatar
31 votes
1 answer
38k 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 ...
brittAnderson's user avatar
29 votes
1 answer
16k 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 ...
CodyChan's user avatar
  • 2,609
2 votes
2 answers
1k views

Table formula for dates delta

Here my org table: | | Start date | End date | State | Duration | |---+------------------------+------------------------+-------+----------| | # | <2019-01-02 Wed 10:...
a_subscriber's user avatar
  • 3,926
29 votes
3 answers
5k 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)...
Tu Do's user avatar
  • 6,772
26 votes
6 answers
9k 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 ...
Leo Ufimtsev's user avatar
  • 4,528
23 votes
2 answers
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 ...
john2x's user avatar
  • 429
12 votes
2 answers
3k 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 ...
jtgd's user avatar
  • 944
102 votes
7 answers
43k 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> #+...
Matthew Piziak's user avatar
38 votes
3 answers
5k 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....
Leu_Grady's user avatar
  • 2,440
19 votes
4 answers
7k 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 ...
timor's user avatar
  • 430
12 votes
0 answers
1k 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 ...
Tobias's user avatar
  • 32.8k
9 votes
2 answers
1k 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?
earlio's user avatar
  • 355
7 votes
1 answer
2k views

How to make my own org-mode text emphasis work again?

This might be interersting: For quite some time I used the code block below in my custom.el to make my own emphasis definitions. This worked up to org 9, I think. Then all of a sudden when I needed it ...
Jens Lange's user avatar
5 votes
2 answers
657 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 ...
Tom Seddon's user avatar
3 votes
1 answer
1k views

Symbol's function definition is void: org-mobile-files-alist

EDIT: Now I can see the error only happens if I include certain code to do an automatic push, adopted from https://gist.github.com/3111823. It seems that this block of code wants to use org-mobile-...
xji's user avatar
  • 2,575
50 votes
3 answers
13k 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 ...
emacsomancer's user avatar
  • 1,021
45 votes
6 answers
12k 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 ...
rrogg's user avatar
  • 595
43 votes
1 answer
22k 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: |------------+-----------+----------+...
Tymric's user avatar
  • 762
23 votes
1 answer
4k 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 ...
gsl's user avatar
  • 1,752
21 votes
2 answers
5k 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 ~/...
Gambo's user avatar
  • 929
16 votes
4 answers
4k 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-...
Brian Fitzpatrick's user avatar
16 votes
1 answer
711 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: #+...
Sohail's user avatar
  • 503
13 votes
1 answer
1k 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 ...
Dan's user avatar
  • 32.7k
11 votes
1 answer
1k 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,
Adam's user avatar
  • 1,887
10 votes
2 answers
2k 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 ...
Daniel's user avatar
  • 3,603
10 votes
4 answers
2k 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 ...
koddo's user avatar
  • 233
9 votes
2 answers
1k 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 ...
ph0t0nix's user avatar
  • 1,119
8 votes
1 answer
2k views

Org-mode custom youtube link syntax

I would like to define a custom org-mode link, which accepts the following syntax: [[yt:<video ID>]] and produces an image link equivalent to this: [[https://youtu.be/<video ID>][http://...
Adam's user avatar
  • 1,887
7 votes
4 answers
354 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. ...
stsquad's user avatar
  • 4,641
7 votes
1 answer
5k 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 ...
lawlist's user avatar
  • 19k
6 votes
2 answers
934 views

Merging clock logs together in org-mode

Let's say we have * Task :LOGBOOK: CLOCK: [2018-05-08 Tue 00:00]--[2018-05-08 Tue 1:00] => 1:00 :END: ** Subtask :LOGBOOK: CLOCK: [2018-05-08 Tue 01:00]--[2018-05-08 Tue 2:00] => 1:00 :END: ...
George's user avatar
  • 889
5 votes
1 answer
383 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 ...
jiahao's user avatar
  • 51
5 votes
1 answer
4k views

How to install latest version of org mode?

I want to update to the latest version of Org-mode to test a bug fix. I followed the instructions: cd ~/src/ git clone https://code.orgmode.org/bzg/org-mode.git cd org-mode/ make autoloads Then I ...
miguelmorin's user avatar
  • 1,805
4 votes
1 answer
1k 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:: `(...
incandescentman's user avatar
55 votes
6 answers
21k 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 ...
MostlyHarmless's user avatar
33 votes
4 answers
12k views

Understanding SCHEDULED in Org mode

I've read the various manual pages about DEADLINE and SCHEDULED, and have used them both. I understand that DEADLINE is used in the Agenda to alert in advance about an upcoming deadline, and to ...
SabreWolfy's user avatar
  • 1,398
30 votes
2 answers
8k 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. ...
Kaushal Modi's user avatar
  • 25.4k
30 votes
4 answers
11k views

org: How to sort headings by TODO and then by priority?

I often have a list like this: * Main heading ** TODO [#A] Make world better ** TODO [#B] Make Emacs better ** TODO [#B] Customize emacs ** DONE [#C] some task ** TODO [#A] Launch rocket to mars I ...
Leo Ufimtsev's user avatar
  • 4,528
24 votes
2 answers
7k 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: ...
andreas-h's user avatar
  • 1,559
23 votes
1 answer
3k 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 ...
prjorgensen's user avatar
20 votes
3 answers
7k 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 ...
incandescentman's user avatar
20 votes
3 answers
13k 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 ...
petrux's user avatar
  • 677
19 votes
4 answers
3k views

Org mode - Parsing rich HTML directly when pasting?

Currently, for notetaking tools like Evernote and Quiver, I can directly copy HTML content from my favorite browser and then paste them into the app, with all the formatting + link preserved. However ...
xji's user avatar
  • 2,575
19 votes
4 answers
8k 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 ...
yujaiyu's user avatar
  • 896
17 votes
2 answers
4k 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 ...
Squidly's user avatar
  • 1,509
15 votes
1 answer
8k 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 ...
Jeff's user avatar
  • 537
14 votes
1 answer
3k views

Org tables: Wrap all fields in column to a given size

In org it is possible to set a column width like follows: |---+------------------------------| |---+----------------| | | | | | <14>...
antonio's user avatar
  • 1,792

1
2 3 4 5
14