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
12
votes
1answer
3k views

Get a timeline of clocked time in org-mode

In an attempt to figure out how I've been spending my time, I've started logging my time spent on different tasks with org-clock-in and org-clock-out. I often find myself editing clock entries by ...
12
votes
3answers
920 views

Can org-babel results be output as code comments?

In blogs, textbooks, etc, it's really common to display the results of some code as comments, e.g.: (+ 1 1) ;=> 2 Is there a way to display results like this automatically using Org-Mode's Babel ...
12
votes
2answers
2k views

How can I view the hierarchy of TODO keywords in org agenda mode?

I have a variety of (facile) tasks in some kind of hierarchy. * TODO Make a pizza ** TODO Get cheese *** TODO Buy a cow ** TODO Get tomatoes *** TODO Grow tomatoes **** TODO Buy tomatoes ** TODO Buy ...
12
votes
1answer
625 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
861 views

Syncing changes on a tangled file back to the original org file

I am using org-mode with fountain mode to write a screenplay. Org for organization and fountain for screenplay formatting. This is the code I use for this purpose : Settings for working with (...
12
votes
3answers
1k views

Divider lines in org agenda?

Q: can I put divider lines in my org agenda view? My agenda buffer can get a little busy when I have a lot of things due. This busyness has the counterproductive effect of making me avoid looking at ...
12
votes
2answers
1k views

How can I have more control over repeating tasks in Org?

I began exploring org-mode lately and I love it. But, I'd like to know how I can have more control over repeating tasks, like if I've set a task to repeat everyday, how can I make it exclude weekends? ...
12
votes
1answer
993 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 ...
12
votes
1answer
1k views

How to keep indented under plain list items in org-mode

While regular paragraphs are happily indented under plain list items (using [SPACE] bar to indent the first line takes the rest along with) I have noticed that code blocks do not like to cooperate. Is ...
11
votes
6answers
4k 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 ...
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
5answers
609 views

Preview fields in org table

Sometimes it is convenient to set a manual column width when creating a table in org-mode. This makes it so that columns do not have to grow to the size of their longest entry. When an entry in and ...
11
votes
3answers
3k 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 ...
11
votes
2answers
3k views

zotero workflow into emacs?

is there a facility people use to export plain text to emacs orgmode as part of their research workflow to organise their links and annotations? I heard zotxt is useful, does anyone have opinions on ...
11
votes
1answer
2k views

How to turn a heading into a list item in org mode?

When working on the structure of a document, often I find myself wanting to turn a list of items into a set of headings, or a set of headings into a list. I haven't found a way to do this easily ...
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
3answers
729 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
3answers
4k views

org mode inline image display size

I wish to display org mode inline image (in emacs) with width 400 but actually it always show it as original size. My steps as below: Install ImageMagick with below command: sudo port install ...
11
votes
4answers
1k views

Org-mode: pipe source block output as stdin to next source block

I try to pipe the output of one source block to the next source block as standard input. Here an example of what I have so far: Create stdin data: #+header: :exports code #+header: :results output #+...
11
votes
6answers
2k views

in org-mode, how to remove a link?

How do I remove an existing hyperlink without having to wade in and manually delete a bunch of brackets? When I try to org-insert-link and just delete the existing link, I get Lisp error: (error "...
11
votes
2answers
640 views

How do I speed up org-mode agenda generation

It takes several seconds for Emacs org-mode to generate my agenda. How can I make it faster? I'm already using archive files, and I have less than 30 .org files, all of them reasonably short. Partial ...
11
votes
1answer
1k views

After I updated Emacs 25.1 to 26.1 org-mode does not work any more

I am anything but an Emacs expert but I use Emacs org-mode quite frequently. I configured Emacs to regognize .org files. After I updated to version 26.1 Emacs does not only recognize .org files any ...
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 ...
11
votes
2answers
4k views

How to change font size in code listings in Org-Mode/Beamer

I'd like to reduce the font size used for code blocks included in my Org-Mode/Beamer presenation. What command(s) can I use so as only affect the content of the src block? Here's a minimal working ...
11
votes
1answer
2k views

How to automatically encrypt orgmode files?

I have a git repository where some org-mode files live. Some of them have a private nature and the server where the git repository lives can be accessed by some untrusted third party. Thatswhy I want ...
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 ...
11
votes
4answers
1k views

Convert org-mode structure to dot source

Fast generation of graphs from a tree-like structure can be very useful when making notes in org-mode that require sharing and or beautification for other humans. I couldn't find any way to do this ...
11
votes
2answers
907 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
2answers
447 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 ...
11
votes
1answer
608 views

Org Mode: Using table formula outside of a table?

I'm wondering whether it's possible to display the result of calculations performed on table data, outside of a table. For example, suppose I have a table of with a list of names. Is it possible to ...
11
votes
1answer
2k views

Export :PROPERTIES: blocks with org-mode?

The org-mode manual says that it's possible to export property drawers, but trying with #+OPTIONS: d:t does not export any :PROPERTIES: blocks like it used to. Reading the Drawers chapter it ...
11
votes
1answer
3k 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 #+...
11
votes
1answer
1k views

Debugging code blocks in org mode

Are there any tools available to make tracing errors in org-mode blocks easier? (I'm working with python specifically) My current workflow is to copy code that works to a source block, and try to ...
11
votes
2answers
1k views

Get org link to insert link description automatically?

Q: How can I get a custom org link function to insert a description automatically? I'd like to store org links to files in a dired buffer, but would prefer that the link description be the file name ...
11
votes
1answer
733 views

Insert Org-id Link at Point via Outline Path Completion

Currently to insert internal org-mode org-id links, I navigate to a heading or pull it up in agenda view (C-a s heading test search RET), store the link with C-l (org-store-link), going back to where ...
11
votes
2answers
1k views

How to enlarge latex fragments in org mode at the same time as the buffer text?

I'm using org-mode in emacs, but I think the question is also relevant for auctex users. In org-mode you can show latex fragments, as the manual demonstrates. But: these fragments (mostly math ...
11
votes
1answer
1k views

Is there a nice way to write pseudocode?

I'd like to sketch out some pseudocode and then share it with other people that won't be using emacs. Is there a nice way to do this? I'm trying to do it in org-mode, but it's not indenting properly, ...
11
votes
2answers
457 views

How to change faces of org-mode links depending on the link type?

Org-mode offers a variety of different link types ([http], [file], [bibtex], [magit]...). However, they all get the same look defined by the face value for org-link. Is it possible to e.g. change ...
10
votes
2answers
4k views

Convert between numbered and unordered lists in org-mode

Is there a function to convert between numbered and unordered lists in org-mode? The lists may or may not be nested.
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 ...
10
votes
3answers
1k views

Org-Mode: How to create an “org mode markup” keybinding?

I know I can use *bold*, /italic/, _underline_, =verbatim=, ~code~, and +strike-through+ to apply markup to text in org-mode. But how do I create key bindings for applying these changes to a region of ...
10
votes
3answers
551 views

Can I have two views on a file - one narrowed one not?

I am editing some file, abc.org, and call org-narrow-to-block to narrow to a code block that I want to edit. For the editing process I have to access another part of abc.org and just want to show it ...
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
2k views

Colors for different priorities in Org mode

I have configured Org mode with a face attribute for priorities with these lines in my init.el: (set-face-attribute 'org-priority nil :foreground "aquamarine1" ...
10
votes
2answers
2k views

Wildcard in org-agenda-files

I have a project base folder, ~/prj, inside of which I have many individual projects, 2014_prj1, 2014_prj2, ..., inside of which I have, among others, a doc folder. The layout looks like this: ~/prj ...
10
votes
3answers
814 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 ...
10
votes
2answers
1k views

How to manipulate clock times (org-mode)

I often forget either to clock out of a task, or to clock a different activity in. For instance, I was working on a (clocked) task right now, then my manager walked in and we embarked on a discussion ...
10
votes
3answers
1k views

Org Mode Babel - Interactive code block evaluation

I would like to evaluate in org mode source code blocks in C++ containing "cin" instructions but I can't find a way to have an interactive evaluation (with user input) during evaluation. Example of ...
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 ...