Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

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
8
votes
2answers
1k views

Embed Image as Base64 on HTML export from Orgmode

The goal is to make a self-contained html file when exporting from orgmode so that the images are intrinsic to the file and a single html file will can be distributed (I am trying to do this for a ...
8
votes
2answers
1k views

org-block-background font not having effect

I use variable-pitch-mode with org buffers. Normally I set org-block to fixed-pitch and the code between #+BEGIN_SRC and #+END_SRC are properly rendered as fixed width fonts, also with proper syntax ...
15
votes
1answer
2k views

Birthday in org-contacts

I am a beginner in org-mode (and Emacs, for that matter), but I thought that org-mode would be a good place/format to store my contacts. One thing I like to do is to add birthdays to contacts. I found ...
13
votes
8answers
4k 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 ...
10
votes
3answers
2k views

How to auto-format the source code block in org-mode

When I'm using org-mode to take notes about a book, sometimes I'll copy/paste some code snippets into the note file. After pasting it, I'll 1. `C-c '` to call `org-edit-special` 2. `C-x h` to mark ...
9
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 ...
5
votes
3answers
2k views

Company-mode completion for Org keywords

Org mode has completion for all keywords via pcomplete, as noted by Andrew Swann. However, Company does not seem to pick up on these keywords. Calling company-complete on the following, where | ...
19
votes
1answer
835 views

Org Mode: Prevent editing of text within collapsed subtree

Is it possible to prevent editing of text within a collapsed subtree in Org Mode? That is, I would like to make it impossible to edit the hidden text. This seems like something that should exist but I ...
17
votes
3answers
3k 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.
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
1k views

How can I filter table in org mode

For example, I want to filter table that make it shows the row which only contains "USA" string in the column 3 and 4.
11
votes
2answers
894 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 ...
11
votes
1answer
2k 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 ...
9
votes
2answers
892 views

Generating tables with headers from code block

I would like to generate tables that have headers from code blocks. Something like this: #+BEGIN_SRC emacs-lisp :results value table :table-header | First | Second | (identity '((a b) (c d))) #+...
8
votes
2answers
2k views

Is it possible to insert images from the web with its url?

Is it possible to insert images directly from the web with its url in org-mode? i.e. Can I paste something like this into emacs' buffer, so that it changes into the image of a cat in the link in image ...
6
votes
1answer
1k views

How to include rendered HTML in org mode?

It looks like this question was asked in this thread, but was not resolved. I hope it doesn't sound redundant, but it seems there must be a way to accomplish this in org mode. In my example, I am ...
6
votes
1answer
428 views

Easy way to insert Org options?

I really cannot bear to memorize so many options' name for Org-mode just like learning English vocabulary. For example: #+ATTR_LATEX:, #+tblname:, #+CAPTION for tables, #+ATTR_HTML: for HTML exporting....
21
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 ...
14
votes
2answers
6k views

how to use org-plus-contrib?

I would like to use org-mode's contributed packages: http://orgmode.org/worg/org-contrib/ [EDIT] SOLUTION: As per answer below: 1) First one should have the elpa packages added. (require 'package)...
12
votes
1answer
612 views

Set default language for code-blocks in orgmode

Is there a way to define a default language for org-mode code blocks in the docuement header? Usually, within one org document, I only use one programming language, so it's getting tiresome to always ...
12
votes
2answers
3k views

How to put TODO faces in the file?

I have defined the following TODO states in a org-mode file: #+SEQ_TODO: TODO(t) WAIT(w) | DONE(d) And I have customized the colors for the TODO states: Hide Org Todo Keyword Faces: INS DEL Cons-...
10
votes
1answer
2k views

How can I walk an org-mode tree?

Background I'm writing a presentation mode for Emacs. I'd like the input to be org files, as org files are great for data. Problem I have to convert the org mode file into a list of "slide" data ...
10
votes
2answers
6k 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 ...
9
votes
1answer
1k views

Code blocks that produce org tables to be later consumed by other code blocks

I am having a bit of trouble with code blocks that produce org tables to be later consumed by other code blocks. For example: #+NAME: upper_air #+BEGIN_SRC clojure :results output raw (clojure....
8
votes
2answers
643 views

How to automatically tangle another source block to file when evaluate a source block in org-mode?

The source block what I want to evaluate (src2) need to source a file which should be the tangle result of another source block (src1). How could it make the tangle to file automatically everything ...
7
votes
2answers
4k views

A search interface for org mode files

I use org-mode to take notes. Currently I have a root directory, say, "Notes", and there are several subdirectories inside it, for example, "Linux", "Programming", etc. The notes taken using org-mode ...
7
votes
1answer
604 views

Returning org-babel results from an asynchronous call

I'm currently experimenting with moving more of my development workflow into org-mode so I can keep better track of what testing I've done. However some of the steps involve asynchronous calls to RPC ...
6
votes
1answer
1k views

Hide SCHEDULED items in org-agenda until they are past their scheduled date and time

When processing my tasks in org-mode I use a custom view that displays my unscheduled/undeadlined TODOs, as well as the next two days of my days-agenda. I would like to use SCHEDULED dates as the ...
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 ...
4
votes
3answers
2k views

Show Timestamp for each TODO in Org Agenda Global Todo List?

Popular todo softwares nowadays usually list tasks with their scheduled due date attached by default so that we can have a general idea about the progress of our different projects. However in org ...
22
votes
4answers
3k 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 ...
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 ...
14
votes
3answers
3k views

Exporting unicode characters to pdf using latex from org mode

Hello Good people of Emacs! I'm having trouble exporting unicode math symbols from buffer (org-mode) to pdf file. 1. Problem Description: Symbols are inserted to the buffer as unicode characters (...
13
votes
3answers
2k views

Code-block specific interpreter in Org Babel

Is it possible to have, in the same org file, two code blocks in the same language that are run in different interpreters by specifying different options at the top of the code block?
13
votes
2answers
2k views

practical limits on org-mode file size?

I have an org-mode file that's running around 6,000 lines with a hundred or so top-level headlines. It's started to take around a minute to load or save, and occasionally it sends emacs into the weeds ...
12
votes
1answer
983 views

Show free blocks of time in org-mode's agenda

I would like to make it easy to find where are the free blocks of time in my org-mode agenda. For instance, if I have two appointments one 9:30am-10:30am and another 11:15am-12:30pm, I would like to ...
11
votes
5answers
3k views

How to convert lines to an org-mode checklist?

Suppose I have the following list. I'd like to convert it to a checklist. Lec 1 | 1:20:36 Lec 2 | 1:10:32 Lec 3 | 1:08:33 Lec 4 | 1:20:33 Lec 5 | 1:16:50 Lec ...
11
votes
3answers
727 views

Emacs function to convert an arbitrary ORG PROPERTY into an arbitrary string (namely, a LaTeX label)?

I have many documents as org-files which have a CUSTOM_LABEL property, like * Introduction :PROPERTIES: :CUSTOM_LABEL: AP 1 :END: In this case, the files need to be exported as LaTeX, ...
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 ...
10
votes
2answers
9k 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 ...
10
votes
2answers
1k views

Org-mode export: indent first line of each paragraph, “literary” style

Is there a switch on org-mode I can use on export to ODT (or other format) to format my source file of This is a paragraph this is a paragraph this is a paragraph this is a paragraph this is a ...
10
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!
9
votes
1answer
3k views

How do I limit the width of a table or columns in org-mode PDF export?

I'd like to format a table with a wide column nicely in PDF export from org-mode. Ideally it would be with a wrap on that column, but I can deal with a manual character or fraction of \textwidth for ...
8
votes
1answer
280 views

Speed up org-map-entries when matching by property

Question: Why is org-map-entries property matching so slow, and what can I do to speed it up? Background: I have a relatively simple use for org-map-entries: grab the effort (in integer minutes) from ...
8
votes
1answer
2k views

How to set my own date format for Org

Hello I am new to Emacs and I have started using org mode for improving my productivity. Currently when I press C-c . the date format displayed is <2016-01-26 Thu> I would like to change it to ...
7
votes
1answer
2k views

Execute src block on org mode export

I have some sort of fundamental confusion about using src blocks in org mode. I define a custom latex class in an emacs-lisp src block at the top of my org file. Export fails however, unless I ...
6
votes
2answers
1k views

Schedule org task for last day of every month?

How do I schedule a repeating org-mode task for the last day of every month? As is, when I schedule a task like DEADLINE: <2017-03-31 Fri +1m>, marking it done shifts the next date to DEADLINE: ...
6
votes
1answer
781 views

Autocompletion when creating Internal Links in Org-mode

In Org-mode, when creating internal links, we have to type full name of the section heading to which we want to link. Is it possible that the heading name gets automatically filled in when we are ...
6
votes
1answer
2k views

Centered figures in org-mode LaTeX export

When org-mode exports figures to LaTeX, the figure shows up left justified. Is there an easy way to have all the figures centered? I want to avoid having to type #+ATTR_LATEX: :float t above each ...
5
votes
1answer
713 views

Programmatically read and set buffer-wide org-mode property

How one can programmatically read and set a buffer-wide org-mode property? I am aware of this, which points to (org-entry-put POM "PWE-1" "47") but it does not seem useful in case of buffer global ...