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
2answers
824 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 ...
10
votes
2answers
411 views

What's the relationship between ~foo~ and =foo= in org-mode?

Both =foo= and ~foo~ seem to be used in org for inline bits of code. How do they differ? Which should I use, and when? For example, from the ORG-NEWS file: If you want to exclude a headline from ...
10
votes
1answer
2k views

Export an org-mode file as a PDF via command line?

What command-line arguments do I use to get Emacs to export an org-mode file to a Beamer PDF? (I want to create a Makefile that produces a PDF when the user runs make.) I tried following this answer ...
10
votes
1answer
362 views

Truncate beginning of right-aligned column in org table

I have a column in an org-mode table that contains long file names. The interesting part of the filename is the last few characters rather than the first. For example, given the files below: /data/...
10
votes
2answers
794 views

Any science book written in org-mode?

I am thinking to write a physics book in org-mode. Although there are many open-source science books written in LaTeX to figure out its work-flow (and its source) I couldn't find any science book ...
10
votes
1answer
1k 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
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!
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 ...
10
votes
3answers
379 views

Editing multiple source blocks in one buffer

I've got multiple source blocks which are all tangled to the same file. When I invoke C-c ' inside one block, only this specific block is shown in a new buffer. Is there a possibility to show all ...
10
votes
2answers
1k views

How to automatically adjust an Org task state with its children checkboxes

I have several tasks in my Org file, one of which has items starting with a checkbox (but only those). They all have a statistic cookie at their end ([n/m]). I'm looking for a way to automatically ...
10
votes
1answer
1k views

make org-blank-before-new-entry distinguish between a TODO list and a text outline?

Like many of us, I use org-mode for two different things: As a TODO list manager As a text outliner I'd like my blank lines to work differently based on context. TODO list: no blank lines ...
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
3k views

Org-mode multi-line emphasis and bold

Is there any sort of markup in org-mode to get multiple lines of text to be bold, italics, etc? *This is what I want to be bold and I only want lines to be a certain length so that this doesn't work....
10
votes
1answer
208 views

org folding: show tags after the “…”, not before?

When parental level node, which contains both child items and tags, is folded by tab, the ... indication for folded child items is associated with the tags rather than the node text. for instance, it ...
10
votes
0answers
506 views

How to get automatic backlinks when linking files in in org-mode?

Is it possible to automatically create backlinks to org-mode links? When a link to file B is added to file A, then also a link to file A is added to file B (i.e. the links are symmetrical - going both ...
10
votes
1answer
260 views

Highlighting upcoming dates in org mode agenda

I have entries in my org file similar to: * Birthdays :PROPERTIES: :CATEGORY: birthday :END: %%(org-anniversary 1981 1 2) Harry (%d) What I would like is for these to appear in the agenda (say) 2 ...
10
votes
1answer
374 views

including archives in org-mode clock-table

I clock my time in org-mode. Because projects in my line of work can last for several years, I'd like clock reports that extend over a long period of time. The problem is that it's annoying to keep ...
10
votes
0answers
2k views

Inline SVG's in org-mode?

I can see many image formats in orgmode, but not SVG. I get the error Invalid image type 'svg' when I run org-display-inline-images. It should be possible given this question exists: https://www....
9
votes
6answers
3k 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 ...
9
votes
3answers
2k views

Orgmode: is it possible to set tags at a file level?

Having a file for a particular project, I would like all the nodes in that file to have a tag identifying the project, so that I can later use it to create agenda views for that project only. So far ...
9
votes
3answers
7k views

How should I write inline equations in Org Mode so they export to LaTeX properly?

I have a sentence with the words 42 m s^{-1}. When this is exported to LaTeX it exports as 42 m s$^{\text{-1}}$. How should I write it, or what flags should I set in the #+OPTIONS: line, so that it ...
9
votes
2answers
3k views

How can I get a custom org drawer to open/close?

My drawers don't seem to collapse with TAB. I've even tried the canonical example: * This is a headline Still outside the drawer :DRAWERNAME: This is inside the drawer. :END: After the ...
9
votes
2answers
301 views

Make isearch skip folded content in org-mode

Q: How can I tell isearch to ignore the contents of folded blocks by default in org-mode buffers? More specifically, I'd like isearch to ignore contents of comment blocks and drawers: When authoring ...
9
votes
3answers
769 views

org-mode goto last heading?

org-mode goto last heading in the current tree. Say This is my org-file, pipe indicates the cursor: * Top| ** Apple ** Banana ** Cherry * Middle ** Ape ** Bear ** Cat I'd like to run a command and ...
9
votes
3answers
2k views

Orgmode insert link from clipboard?

Is there a simple way to insert an org-mode link directly from the system clipboard? I'm thinking of selecting an URL in Safari, and inserting that link directly in an org-mode document.
9
votes
4answers
2k views

How can I evaluate elisp in an orgmode file when it is opened?

I have elisp code I'd like to run in orgmode files when they load (different for different files, and defined in the file itself). Is there a way to do this? I didn't see anything in http://orgmode....
9
votes
2answers
3k views

How to fill (wrap) an org mode heading?

I would like to fill (wrap) a long heading in org mode. I don't see mention of how to do so in the org manual. If I manually wrap the line by inserting a newline, org mode does not recognize the ...
9
votes
2answers
8k 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 ...
9
votes
3answers
3k views

With org-babel, how to name the results of a function call and reuse them

In org-mode, I am trying to define a function, a variable, and then assigning to another variable the result of the function call on the first variable. However, then it seems that I cannot use this ...
9
votes
2answers
878 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))) #+...
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 ...
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?
9
votes
2answers
711 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?
9
votes
2answers
1k views

Alternative Org Mode Implementations [closed]

Has the org-mode text syntax been adopted anywhere besides emacs? The only place I can think of is that Github allows you to write readmes in org mode and can display it like it can markdown. Are ...
9
votes
2answers
2k 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. * ...
9
votes
2answers
713 views

Can I set a particular file to automatically and silently accept changes?

That is, can I specify for a particular file that I don't want Emacs to notify me that the file has changed on disk and prompt me about whether I want to accept changes or not? I don't want to do ...
9
votes
1answer
2k 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 ...
9
votes
2answers
914 views

Default Inline Image Background in Org Mode

When an image has a transparent background, Emacs of course respects that. Unfortunately, this can lead to issues with display: Is there a way to display a specific color (e.g. white) behind 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 ...
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 ...
9
votes
2answers
851 views

Syntax highlighting in org mode #+BEGIN_LATEX block

Is this possible? (I know it's possible for #+BEGIN_SRC latex blocks.)
9
votes
1answer
253 views

How to navigate most efficiently to the start or end of the main text of an org headline?

It's easy to navigate quickly from the start of one org-mode headline to another using speed keys. Suppose now I'm at the start of a headline, and I want to add to the main text, in the beginning ...
9
votes
3answers
890 views

How to control where the org todo keywords buffer displays?

Q: how can I control where the org todo keywords buffer appears? Entering a todo keyword with C-c C-t (org-todo) opens a new buffer with the keyword options and then closes it again after I select ...
9
votes
2answers
752 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 ...
9
votes
1answer
2k views

What is the difference between sh and shell for org-babel?

I'm experimenting with sourcing data from org-mode into my shell scripts and I've run across a weirdness: #+tblname: simple-table | 1 | | 2 | | 3 | | 4 | | 5 | #+name: work-with-simple-list-shell #+...
9
votes
2answers
5k views

Downscaling inline images in org-mode

I used to be able to scale down an inline image in org-mode with #+attr_html: :width 650 px [[file:~/org/def/202a3-9.jpeg]] But now it doesn't work anymore, presumably because of an update to 8.3.5. ...
9
votes
4answers
2k views

How can I add “side-notes” to a text file in org mode?

I wonder how could I add the equivalent of side-notes (cues, thinking points indications, references) to a text in org mode? Tags work fine, but they seem to be limited to headlines. I could also ...
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....
9
votes
1answer
336 views

How to toggle Org-mode source code block “:eval no” status

I often limit or unlimit the evaluation of specific code blocks in org-mode babel using :eval header argument. Here's an example: #+BEGIN_SRC emacs-lisp :results value scalar :eval no (+ 1 1) #+...
9
votes
1answer
1k 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 ...