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
100 votes
7 answers
40k 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
62 votes
4 answers
19k 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 ...
Steve HHH's user avatar
  • 725
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
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
49 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,011
46 votes
2 answers
17k views

how to markup a quotation?

How do I specify a quote in org-mode so that it is rendered nicely in github? In markdown it is rendered like so: Two things are infinite: the universe and human stupidity; and I'm not sure about the ...
ninrod's user avatar
  • 1,426
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
  • 585
45 votes
6 answers
11k views

Show org-mode hyperlink as plain text

Although it is convenient how org-mode shows hyperlinks, there are times when I want to see the underlying plain text, e.g. [[./file.org][Title]]. How can I do this? I know about org-insert-link, but ...
David J.'s user avatar
  • 1,799
45 votes
3 answers
16k views

org-mode link to heading in other org-file

Is there a way to link to specific topic (*) in a different org-file? How can I quickly find and copy the relative path from the current org-file to the file that I want to link to? Probably both ...
cataclysmic's user avatar
45 votes
10 answers
18k 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 ...
Zavior's user avatar
  • 591
43 votes
1 answer
21k 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
41 votes
2 answers
9k views

Intelligent spell-checking in org-mode

By default, the results of running M-x ispell-buffer in org-mode are very disappointing. Ispell looks inside :PROPERTY: drawers, which commonly contain things like :ID: 797495bd-581b-4a42-...
Malabarba's user avatar
  • 22.8k
39 votes
1 answer
35k views

Command to insert code block? [duplicate]

I found the command SPC m x c to insert a small code snippet like ~~. I would like to insert a longer snippet like #+BEGIN_SRC #+END_SRC Is there a command to do this? I found a way to add it for ...
JuanCaicedo's user avatar
39 votes
5 answers
20k views

Exporting from org-mode to markdown

The emacs functions mentioned in the docs don't seem to exist in my org version 7.9.3f. http://orgmode.org/manual/Markdown-export.html Any idea how I can get org-mode to export to markdown for me ...
Alex Baranosky's user avatar
38 votes
5 answers
16k views

org-mode: How to export underscore as underscore instead of highlight in HTML?

I am using org-mode, and the document I am writing has a table name whose name looks like this: tab_weekly_report. When I export the document to HTML, I expect the name to exported as ...
Daniel Wu's user avatar
  • 1,691
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,420
35 votes
6 answers
15k views

How to set a short-cut for #+BEGIN_SRC #+END_SRC?

I read the org-mode manual but did not find a short cut to insert: #+BEGIN_SRC #+END_SRC I guess I need to create a configuration in ~/.emacs to set a shortcut? Or, is there a shortcut but I did ...
Xianwen Chen's user avatar
33 votes
5 answers
6k views

How do I automatically save org-mode buffers?

I regularly use org-mode and the agenda to keep track of my to-do list. Since I use Dropbox to sync my list, I need the same tasks to be available on all computers. Sometimes during the course of my ...
Ryan's user avatar
  • 3,969
33 votes
3 answers
6k views

Org-mode on the phone or on Evernote?

I use Org mode for keeping track of everything; ideas, notes, to-do lists, code snippets, etc. You name it. One problem I have though, is that I can't easily pull up my Org-mode data on my phone, even ...
Amelio Vazquez-Reina's user avatar
32 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,823
31 votes
2 answers
13k 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?
makeMonday's user avatar
31 votes
1 answer
37k 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
31 votes
2 answers
12k views

org-mode: how to generate clock report for hours worked each day?

org-clock-report is awesome; however, it reports time spent on each task. Is there any custom command that you use to generate a clock report showing hours worked, across tasks, for each day? The ...
Covi's user avatar
  • 475
31 votes
1 answer
5k 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 ...
Lee H's user avatar
  • 2,687
30 votes
4 answers
11k 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,358
30 votes
5 answers
10k views

Why do easy templates, .e.g, "< s TAB" in org 9.2 not work?

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 *...
Lorem Ipsum's user avatar
  • 4,267
30 votes
4 answers
21k views

Best ways of generating UML from within Emacs

There are a bunch of integration options between Emacs and UML tools, like org-mode's plantuml embedding, a plantuml major mode etc. Of course I can try them out but I'm wondering what other people ...
Mark's user avatar
  • 1,389
30 votes
2 answers
7k 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
29 votes
2 answers
4k views

How to clear a cell in an org-mode table?

Is there a built-in command to delete the contents of a cell in a single keystroke within an org-mode table? Note, I don't want to delete the row, just the cell contents. | some text | ==> | ...
wdkrnls's user avatar
  • 3,617
29 votes
1 answer
15k 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,589
29 votes
1 answer
12k views

Can I export a specific table in an org file to csv from the command line?

I have an org file with multiple tables $ cat ~/foo.org #+Title: hello world * section 1 lorem ipsum #+TBLNAME: first-table | i | want | to | | export | this | table | #+TBLNAME: second-...
Brian Fitzpatrick's user avatar
29 votes
3 answers
4k 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,742
29 votes
4 answers
10k 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,478
29 votes
2 answers
8k views

Display PDF images in org-mode

Note: This question was asked here before, with no success. Org-mode’s ability to display inline images is fantastic for writing my weekly scientific reports. I can include graphs, link them with ...
Malabarba's user avatar
  • 22.8k
29 votes
4 answers
3k views

Smooth (mouse) scroll for inline images?

I display images in-line with begin_src & result blocks. However, for large-images, when I scroll past the bottom of the image, I get a 'jerk' and the whole image is scrolled away. Similarly if I ...
Leo Ufimtsev's user avatar
  • 4,478
28 votes
3 answers
5k 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 ...
JohnJ's user avatar
  • 507
28 votes
1 answer
6k views

org mode table row number grow automatically?

recently I am using table to do some statistics, and I want the first column of the table to indicate the row number, as this. | | title| |--| -----| | 1| A | | 2| B | and I want ...
Luis404's user avatar
  • 501
27 votes
8 answers
10k views

how to jump directly to an org-headline?

If I'm in an org file, I want a command that narrows a candidate list, in ivy/helm style, comprised of all org headlines in the file and lets me choose the headline, through fuzzy searching, to which ...
ninrod's user avatar
  • 1,426
26 votes
2 answers
5k 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-...
Empty_Mind's user avatar
  • 1,341
26 votes
6 answers
8k 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,478
26 votes
1 answer
5k views

How to use org-refile to move a headline to a file as a toplevel headline?

I wish to have an "inbox.org" file where I collect notes into (trying to implement GTD :P), and then later move things around to the proper places. I understand that org-refile is the way to do this (...
El Ninja Trepador's user avatar
25 votes
3 answers
22k views

org-mode , export , how to 'force' newline on lines between paragraphs?

I have an org-mode file, some sub-sections have some big paragraphs. When I export as html the whole paragraphs are displayed as single lines. I understand that I have to put a '\\' on every line, a ...
xMris's user avatar
  • 251
25 votes
8 answers
7k views

How to copy links OUT of org-mode?

There's lots of documentation about inserting or storing org-mode-links, but apparently none about copying them to buffers in other formats. How do you copy the URL of an org-mode-link from an org ...
bright-star's user avatar
25 votes
4 answers
7k 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.
shackra's user avatar
  • 2,692
24 votes
4 answers
5k views

How to change style of hyperlinks within PDF published from org-mode document?

I'm exporting (publishing) an org-mode document to PDF, and the results look great except for the hyperlinks. They look terrible. Hyperlinks to the Web look the same, only with a pale blue outline. ...
Sue D. Nymme's user avatar
  • 1,396
24 votes
3 answers
9k views

orgmode agenda view doesn´t display any results

I´m new to emacs and especially org-mode, and I am testing it´s different possibilies. When trying the schedule-function with TODO, I don´t get any results displayed in the weekly or daily list. * ...
Kubo's user avatar
  • 375
24 votes
2 answers
5k views

When are org-mode attachments preferable to file hyperlinks?

As far as I can tell, org-mode attachments solve the same problem as do file hyperlinks but in a clunkier way. In what situations would attachments be the superior solution?
Matthew Piziak's user avatar
23 votes
1 answer
6k views

How do I make the timespan shown by org agenda start yesterday?

If today is Thursday, I want the agenda to be from Wednesday (yesterday) through next Tuesday. When I set org-agenda-day to "-1d", it shows the full week (starting Monday) that contains yesterday. I ...
zck's user avatar
  • 8,909
23 votes
2 answers
6k 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,539
23 votes
3 answers
11k views

Label and reference LaTeX equations in org-mode

This is similar to Org export to latex and HTML references, but for equations. I like to use LaTeX math snippets in my org-files, as in * The Quadratic Equation The roots of $ax^2 + bx + c$ are ...
Kevin's user avatar
  • 534

1
2 3 4 5
108