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
7
votes
1answer
588 views

Setting #+ATTR_LATEX for all images of a document

I am currently adding an #+ATTR_LATEX before every image in my org-file to center it in the produced LaTeX beamer slides. That is slightly annoying and clutters up the document. Is there a way to set ...
7
votes
1answer
153 views

Modify org-mode's definition of comment lines?

Q: how do I change org-mode's definition of a commented line? According to the manual, org-mode comments work as follows: Lines starting with zero or more whitespace characters followed by one '#' ...
7
votes
4answers
2k views

Browser not opening when exporting HTML from org-mode

Org-mode can export as HTML and open on a browser with C-c C-e h o (org-export-dispatch), but the problem is that the generated html file opens in a buffer inside emacs. There is no error in the ...
7
votes
2answers
2k views

How can I have an agenda timeline view of multiple files?

I'm using org-mode as a knowledge base, where each file is for a specific project that I'm working on. Each file has its own journal and I would love to see an aggregated journal of all the things I'...
7
votes
1answer
515 views

org-mode : highlight lines in src blocks when exported

Github has a convenient way to show some lines as highlighted in the code, like so. I'd like to know if there's a way to setup something similar with org-mode code blocks when exporting (in my use ...
7
votes
1answer
88 views

Sane settings to show context when doing search and replace in org-mode

If I run certain functions like isearch-forward (with C-s) in an org-mode buffer, all content become temporarily visible. When I end the search, headings automagically collapse the way they were ...
7
votes
1answer
229 views

Automatic clocking in org-mode when moving into section

Context When working on a larger document in org-mode I would like to clock the whole work time without gaps. As I usually have a logbook in each section I wonder if it's possible to automatically ...
7
votes
1answer
231 views

Converting cURL command to ob-http

I have a whole series of curl commands that I would like convert into ob-http code blocks in a org file (second choice would be to do them in restclient). Here is a simplified sample command: curl -...
7
votes
1answer
227 views

How can I manually set links in org mode?

So I'm trying to make an "autolinks mode" to emulate the functionality of notetaking software like Tomboy Notes or notes.vim, which automatically linkifies any text that happens to be the title of a ...
7
votes
2answers
804 views

tell org to treat block quotes as a special environment?

In org-mode I use block quotes. #+BEGIN_QUOTE Foo. #+END_QUOTE However, when I do org-edit-special inside a block quote, I get No special environment to edit here. How can I direct org-mode to treat ...
7
votes
1answer
2k views

rendering latex code inside #+BEGIN_LaTeX … #+END_LaTeX in org-mode 8.3.1

C-u C-u C-c C-x C-l or (org-toggle-prefix-fragment) with the double prefix argument used to toggle the display of LaTeX fragments across the whole buffer whether they were inside of #+BEGIN_LaTeX ...
7
votes
2answers
288 views

Org mode quote block indentation (highlighting)

Can indentation of the Org mode quote block be configured? I would like to highlight quote blocks with indented margins, both left and right if possible: The example above demonstrates org-quote ...
7
votes
0answers
295 views

org-mode ODT export template

I would like to export org file to ODT. Is there any nice ready to use ODT template that can be used for exported documents? Default template is not good looking. I had the same problem with html ...
7
votes
1answer
431 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...
7
votes
0answers
368 views

How to indicate the currently clocked-in task?

I'm using org-mode's clocking functions to track the hours I spend on projects. Since my main org file is rather large and I scroll through it a lot, it would be great to have a visual cue of the task ...
7
votes
0answers
953 views

How to better align tags in Org Mode using variable-width font

I prefer using variable-width fonts in Emacs whenever I can. That said, Org Mode tags are horribly aligned when headings use variable-width fonts, even if the tags themselves use fixed-width fonts. Is ...
7
votes
2answers
1k views

Fix org-fontification error

My config is a literate org-mode file. On my Linux machine, the code blocks are highlighted with the relevant syntax highlighting (i.e. Elisp). But on my Mac, I get this error when I load the ...
6
votes
1answer
4k 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 ...
6
votes
2answers
3k views

Org mode C-c C-c to display inline image

For below org mode code example: #+BEGIN_SRC plantuml :file test.png Alice -> Bob: synchronous call Alice ->> Bob: asynchronous call #+END_SRC #+RESULTS: [[file:test.png]] After press C-c ...
6
votes
2answers
2k views

Is it possible to copy /paste multiple lines of text into cells of org-mode table?

Here is my question, I have multiple lines of text, line this: line1 line2 line3 ... And I want to create a org-mode table like this: | C1 | |-------| | line1 | | line2 | | line3 | | .... | ...
6
votes
3answers
435 views

Using constants inline

How to do the following in org-mode: define a constant in the beginning of file, and than use it in the text or even compute on it. Following methods didn't work for me: Method 1: #+CONSTANTS: t=...
6
votes
2answers
2k views

How do I view all org-mode TODOs that are not recurring, or not scheduled?

Weekly, I try to make sure that there are no TODOs I want to have scheduled that I've missed. So I look through the list of all TODO entries (C-c a t). This is great; it shows only open TODOs, so I ...
6
votes
3answers
344 views

“Mark and Gather” in Org-Mode?

So, I'm pretty much a noob with regards to Emacs and Org-Mode but I'm wondering if a particular feature exists... A lot of old outliners (I'm talking MS-DOS era) had a feature called "Mark and Gather,...
6
votes
1answer
777 views

How to demote all headings by 1?

Given an outline with arbitrary structure, how can one demote every single heading by one? For example, starting from something like this * Lorem ips um dolor sit ame ** t, consectetur a ...
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 ...
6
votes
1answer
2k views

Org-babel 9 + Spacemacs: Unable to evaluate org-babel SRC Blocks

I followed every instruction I could here Org-mode 9: unable to eval code-blocks, and I am unable to get org-mode and org-babel to evaluate any code blocks in any language. I am dead in the water and ...
6
votes
3answers
832 views

Is it possible to enable minor modes in org babel blocks?

I use org-edit-special and it's really convenient, when editing source code, that's stored in org files. However I often only want to copy some code and I'm used to the highlighting of highlight-...
6
votes
1answer
1k views

Passing a variable to template function in org-capture-templates

I'm using org-capture to insert expenses into a Ledger file with this template, along with auto-completion for the various expense categories: (setq ledger-expense-completions (list "" ;; ...
6
votes
3answers
905 views

What tool shall I use to make a personal note book?

When I learn to use linux, Emacs, and programming, I asked and googled a lot of How-to's. I would like to note them down for furture reference. The tools should be: Use plain text file, perhaps with ...
6
votes
3answers
164 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. ...
6
votes
1answer
1k views

How to have wrapped text when exporting from org to Latex?

I have an org file which I export to LaTeX and then to a PDF document. The problem is I have some long text that exceeds the length of the page. How to wrap it so that it falls into the next line? ...
6
votes
2answers
692 views

Counting the number of days that have passed since a certain date

I have an org-mode document in which I wish to keep track of the number of days that have passed since a certain date. Is there a built in function for this, or will I be forced to write a custom ...
6
votes
2answers
1k views

Org: Show Clocked Time hour-by-hour

We have a new manager at work and he wants us to timesheet. No problem, I have org-mode. Except, he wants time reported like this: 0900-1000 Customer Project xMinutes 0900-1000 Customer2 Project2 ...
6
votes
2answers
670 views

How to programmatically update a named org-table in-situ

It's possible to programmatically update an org table inside a babel source code block like the following: #+name: mytable | 0 | 0 | 0 | | 0 | 0 | 0 | #+begin_src emacs-lisp :var table=mytable (...
6
votes
4answers
3k views

org mode logbook note entry without logbook drawer?

Is there a way to make a logbook-like note without it always being stuck in a :LOGBOOK drawer? For example: - [2015-09-02 Wed 18:03] \\ * 12.3 Export settings :om:htmlexport: - ...
6
votes
2answers
682 views

org-habit: Any way to mark “skip” for this day?

Sometimes the habit is just temporarily inapplicable. For example you set a habit to clean your house once a day, however say you're out for vacation for 2 weeks, obviously you can't clean your house ...
6
votes
1answer
2k views

Keep the headlines expanded in Org-Mode

I have started using Org-Mode and every time I close my file every headline is collapsed when I reopen it. Is there any way to stop that? I want every headline fully expanded.
6
votes
1answer
821 views

Remove Task state keywords (TODO/DONE) from clocktable reports?

Org-mode's Clocktable reports show the task state "TODO/OPEN/DONE" at the beggining of the headline: like so: | | TODO Bug 459487 - [GTK] Replace... | 7:38 | | | | ...
6
votes
2answers
373 views

Controlling the order of output with Org-Babel

Consider the following Org file: #+PROPERTY: tangle "init.el" #+PROPERTY: noweb yes * A #+begin_src elisp ; initialization code ; this *must* come first #+end_src * B #+begin_src emacs-lisp <<...
6
votes
3answers
643 views

Org-mode: force subheading to end and continue in parent heading

Say I'm writing a text: * Animals There are many of them in the wild. ** Examples of animals :noexport: - Dogs - Fish - Triceratops # I'd like the subheading to end here!! Following sentence ...
6
votes
1answer
214 views

How to link to a non-existing Org-mode file and then create it?

I would like to use Org-mode as a local wiki, and I have just discovered how to link Org-mode files (Cf. http://orgmode.org/manual/External-links.html#External-links). Now I'd like to link a non-...
6
votes
1answer
2k views

Placement option in org mode for tables and figures does not work

#+attr_latex: placement=[!htpb] #+CAPTION: Some caption [[../some-image.pdf]] exports as: \begin{figure}[htb] \centering \includegraphics[width=.9\linewidth]{../some-image.pdf} \caption{Some caption}...
6
votes
2answers
279 views

Bulk-reverse the order of headers in Emacs org-mode?

I asked this question on stack overflow, but haven't gotten to solve the problem yet, then I thought I should rather post it here. Is there a way to bulk-reverse the order of headings in Emacs org-...
6
votes
1answer
298 views

How to make org-mode understand alternate day/month abbreviations?

Q: How can I make org-mode understand alternate day/month abbreviations? org-mode uses the function org-read-date when entering timestamps, scheduling dates, and creating deadlines. One may enter ...
6
votes
1answer
256 views

org mode: retrieve current heading and parents programmatically

In org-mode whenever I have point on heading it shows me in the mini buffer the full hierarchy. For example, if I have the following in a Org file: * lvl1 ** lvl2 *** lvl3 some text And I put ...
6
votes
2answers
237 views

Org-mode : disable indentation when promoting and demoting trees + subtrees

In org-mode, when you press M-S-right or M-S-left to demote or promote a tree with all it's subtrees, the content text is also indented. So suppose I want to deomote the following structure by two ...
6
votes
1answer
446 views

In Org Mode, how do I link to internal documentation?

I want to create a clickable-link in my Org file directly to documentation built into Emacs. Is this possible to do? The documentation I want to link to are: Emacs Lisp Intro The GNU Emacs Lisp ...
6
votes
1answer
514 views

Indicate depth of org-mode header level?

Q: is there a way to indicate the depth of an org header by number? I often use deep nests of org headers, e.g.: * header 1 ** more *** still more **** yet more ***** still going ****** don't judge ...
6
votes
1answer
767 views

No “full service” Haskell org mode?

I'm guessing that since Haskell's ghci is not a full-fledged REPL, you can't really use it for defining functions in orgmode source blocks, i.e., #+begin_src haskell doubleMe x = x + x #+end_src ...
6
votes
1answer
1k views

Org-mode hide tags in agenda

Maybe this is weird, but I don't like how much my tags fill up the side of my org-agenda. This is especially true after I use org-agenda-filter-by-tag to filter down to a specific tag. For example, ...