We’re rewarding the question askers & reputations are being recalculated! Read more.

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
3answers
2k views

Format a HTML paper with Org-mode

Org-mode's default during HTML export is to put the author in the postamble at the bottom of the page. But I would like to export a paper like document with the author between the title and the ...
10
votes
2answers
5k 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 ...
10
votes
2answers
242 views

How to auto calculate the begin and end lines when including source files in org-mode?

I have the below in my documentation: #+INCLUDE: "code/basic.sv" :src systemverilog :lines "14-117" Here line 14 is where I have class basic extends .. and line 116 is where I have endclass. Is ...
10
votes
2answers
3k views

Force using fixed-width font in org-mode

What's the simplest way of forcing Emacs org-mode to use the same fixed-width Font Family and Height everywhere (but keeping other properties distinct, like Foreground)? I could make all org-level-n ...
10
votes
4answers
1k views

Clojure code evaluation in org-mode produces no output

I am trying to run clojure code from my org file in order to do some literate programming. What is not working: When I execute the source code block I get No output produced. Sample src code block ...
10
votes
1answer
1k views

How do I export an ORG file to an interactive HTML site?

Is there a way to export a .org file into an html that supports expanding and collapsing titles? What I want is to be able to press a key like TAB and expand and collapse the outline, but on a html ...
10
votes
1answer
449 views

split org-mode blocks

Say I have an org-mode document with some block like this: #+BEGIN_SRC blablabla bla1 bla2 bla3 #+END_SRC I'd like to put the point after, say, bla2, call some elisp and split the block like so: #+...
10
votes
3answers
927 views

Is it possible to make yasnippets to expand snippets inside an org-mode babel section in the appropriate mode?

For example I have an org mode that has the following #+BEGIN_SRC emacs-lisp #+END_SRC Is it possible to configure yasnippets in such a way so all emacs-lisp-mode snippets can be expanded inside ...
10
votes
3answers
816 views

Expand org-mode subtree with point after ellipsis?

I love org-mode, but one of the things that has always bugged me is that, if the point is after a collapsed subtree's ellipsis, pressing TAB doesn't expand it. For example, if the point is here (...
10
votes
1answer
248 views

Ctrl-K Kill Line, Not Screen Edge in Visual Line Mode

(I apologize in advance for my general technical / emacs inexperience. I use org-mode for writing novels, so have not delved very deep into its many options) I have visual-line-mode set as my default ...
10
votes
2answers
474 views

Does org have any “inverse-tangle” operations e.g. for collaborating with non-org users?

I would like to write my own notes/tests/code in org and then use org-bable-tangle to produce source files. However, all of these files are subject to version control and hence subject to change 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
371 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
948 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
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. ...
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
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
392 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
2k 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
1answer
932 views

Is it possible to read user input from STDIN while tangling a source block?

Is it possible to read user input from STDIN while tangling a source block with org-babel-tangle? I am aware of this: Org Mode Babel - Interactive code block evaluation. That doesn't help solve this ...
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
211 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
565 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
277 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
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
4answers
2k views

Org Mode Babel - Interactive code block evaluation in Python

Similarly to this question I would like to evaluate (in org mode) Python source code blocks containing "input" instructions but I can't find a way to have an interactive evaluation (with user input) ...
9
votes
3answers
8k 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
319 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
5answers
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
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
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
1answer
2k views

How to disable the org-mode in a buffer

For a test purpose, I enabled the org-mode by M-x org-mode in a buffer (e.g., in scratch buffer). How to disable it? Doing again an M-x org-mode does not turn it off.
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
899 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
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
749 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
3k 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
1k 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
2answers
725 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
4k 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 ...
9
votes
2answers
926 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
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 ...
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
755 views

Is it possible to add templates other than #+BEGIN_ #+END_ to org-structure-template-alist?

I've noticed that org-structure-template-alist changed (I'm using org-mode version 9.2) to automatically expand to #+BEGIN_<some block tag> #+END_<some block tag>. I wonder if it's ...
9
votes
1answer
268 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 ...