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
4answers
669 views

Reducing LATEX_HEADER clutter at the top of my org files

I often write notes in org mode and export them to latex. However, because some documents are complex I need to include many latex packages at the top like so: #+LATEX_HEADER: \usepackage[margin=1....
12
votes
4answers
3k views

How can I escape the * in org-mode to prevent bold fontification

If I write something like *shrug* in org mode, it will be automatically fontified as bold text. How can I prevent that, i.e. actually having *shrug* appear verbatim when exported? Edit: I still ...
12
votes
2answers
3k views

Can I include a common code block in two different code blocks in Org mode?

I have an org-mode file containing a table of data and two Python code blocks to extract different summaries from it. I would like to share some common constants and functions between these two code ...
12
votes
2answers
2k views

Is there a way to make Org mode ignore src blocks when exporting to html?

I have an org document with scattered with source blocks that I'd like excluded when I export the file to html. Is there a variable or option I can set which will ignore the src blocks? I have tried ...
12
votes
1answer
5k views

How to include the output of a shell command in org-mode source code block?

For example, I got a demo to show a command and its output, and I want to insert them into an .org file like a source code snippet of C or something. I then want to be able to export the file to an ...
12
votes
1answer
2k 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 ...
12
votes
2answers
956 views

org-mode sans arrow keys

Org-mode keymapping defaults to using the arrow keys for commons functions. Has anyone sanely remapped their org-mode settings to entirely avoid arrow keys? Please share.
12
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 ...
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
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!
12
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 #+...
12
votes
2answers
885 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
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 ...
12
votes
3answers
2k 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
1k 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
5answers
4k 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
2answers
5k 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.
11
votes
5answers
653 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
4k 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
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 ...
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
2k 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
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....
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
3answers
748 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
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
669 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
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
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 ...
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
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 ...
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
1answer
258 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 ...
11
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 ...
11
votes
2answers
965 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
489 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
620 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
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
2k 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
802 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

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
475 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 ...
11
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....
11
votes
1answer
513 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 ...