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

insert cursor postion in org-structure-template-alist

It's easy to insert source code template in org 9.1 by it is configured as ("s" "#+BEGIN_SRC ?\n#+END_SRC") Of them, ? for cursor position, unfortunately, it does not work in 9.2 Custormize ...
0
votes
0answers
26 views
+50

org-babel-tangle with function in header arguments

Following this suggestion, I have a function to automatically generate figure names: #+begin_src emacs-lisp :exports none (set (make-local-variable 'i) 0) (fset (make-local-variable 'fig-file) #...
0
votes
1answer
24 views

org-capture fails: base buffer has been killed

I am trying to set up GTD for org-mode by Nicolas Petton. I have a very simple org-capture-template: (setq org-capture-templates '(("t" "Todo [inbox]" entry (file+...
6
votes
1answer
599 views

Styling lists in org-export (html)

So, for variety's sake I'd like lists and sublists to have different styles. In emacs, I've enabled org-list-allow-alphabetical, but this doesn't work with export (not a bug). However, there doesn't ...
0
votes
1answer
16 views

how to test which org mode publish backend is in course in a export filter?

Why is my org mode publish derived backend not reconized in the code snipped below? (if (org-export-derived-backend-p backend 'jekyllHtmlPost) This is my complete init.el ;;; package --- Summary ...
1
vote
0answers
21 views

How to tell Ivy to use completing-read-default for specific command? (org-tags-view, in particular)

Ivy (+swiper +counsel) is very cool and I use it constantly for an ever growing number of tasks. But there are some cases in which the requirements of a certain completion task defeats Ivy's logic. ...
0
votes
1answer
23 views

Exclude the habits from the global todo list

I set habits ** TODO Wake Up Early In the Morning SCHEDULED: <2019-07-17 Wed 05:00 ++1d -0d> :PROPERTIES: :STYLE: habit :LAST_REPEAT: <2019-07-15 Mon 04:30> they display on agenda ...
10
votes
3answers
936 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 #+...
0
votes
3answers
28 views

Automaticaly insert '~' Symbol before and after a “Marked Expression”

I am documenting Code a lot. For exporting purposes I often have to add a '~' infront and after an Expression. For Example "Adc_Cfg.c" needs to get "~Adc_Cfg.c~". That way the Export to PDF via latex ...
0
votes
2answers
31 views

Save buffer immediately after org-archive-location

Question How do I immediately save the .org buffer created by org-archive-location? Context and what I've tried so far Current .emacs settings: FILE: .emacs (setq org-archive-location (concat "~/...
1
vote
2answers
82 views

execute result block as shell commands

I would like to build a shell command using elisp and then printing the result so it is stored in a #+RESULTS block and from there execute that result block as a shell command still inside the org-...
0
votes
3answers
261 views

Emacs not loading org-agenda-files on startup

So i've put this in my emacs.org: (setq org-agenda-files (list "~/todo.org")) But whenever i close and reopen Emacs, my org-agenda is empty until i reload my config-File. Is there anything ...
0
votes
0answers
13 views

Org-capture template with deadline of one month from today

As it seems, org-mode capture templates mechanism maybe have changed? I'm using: Org mode version 9.2.4 (9.2.4-10-g3b006f-elpaplus) What I'm trying to do is to have a capture template that will ...
1
vote
1answer
51 views

How can I get flush left text in org-indent-mode?

I open an org file in emacs and it displays thus: I enable word wrap with M-x visual-line-mode and get: But I prefer the extra indenting of headlines provided by org indent mode, so then do M-x org-...
1
vote
0answers
17 views

Mandatory capturing data before every org file is modified

I have to create a list of documents I modified or created in a day. I use org-capture to create it. I use following org capture template to capture the data when I start working on the file ("c"...
1
vote
1answer
26 views

Indent code block in org mode headines

How I can indent code block to align it to the begining of #+BEGIN_SRC ? Right now it looks like this and I would like to be like this
0
votes
0answers
9 views

python-shell-completion-native-enable and python-shell-completion-native-disabled-interpreters’

Upon invoking C-c c-c on the source code, it prompt errors Warning (python): Your ‘python-shell-interpreter’ doesn’t seem to support readline, yet ‘python-shell-completion-native-enable’ was t ...
1
vote
1answer
80 views

org-export ignoring done entries

Is it possible to have org-mode export ignore entries that are in a completed state (e.g., DONE, WONTFIX). Note that I do not want to create a sparse tree and then export what's visible, that will ...
1
vote
1answer
323 views

Error enabling flyspell mode in Emacs

I use flyspell hunspell for checking my spelling mistakes in Emacs. Recently, when I run M-x flyspell-mode in .org or .tex files I got the following error: Error enabling Flyspell mode: (hunspell ...
0
votes
1answer
26 views

scheme not working in org soure code

After enable scheme in babel and restart the emacs, Run the codes #+BEGIN_SRC scheme (define (A x y) (cond ((= y 0) 0) ((= x 0) (* 2 y)) ((= y 1) 2) (else (A (- x 1) ...
1
vote
0answers
16 views

Open code snippet from org-mode with C-' in a vertical split instead of an horizontal one

In org-mode, I open a code snippet with C-' (org-edit-special) to edit it in a separate split. By default, it opens it in a horizontal split. Is there a way to open a code snippet from org-mode with ...
1
vote
1answer
25 views

How do I show org links pointing to an entry?

I have org-capture templates setup (but the default Todo template works the same way) to create a link in the resultant file to the text that was selected when org-capture was invoked. This allows me ...
0
votes
1answer
30 views

Can org-mode radio targets show their definition when hovering over them with the mouse?

Org-modes radio targets are useful for automatically adding definitions to terms used in a text. You can define a term within triple angled brackets, like in this definition line: <<<my ...
1
vote
0answers
15 views

Text overflow in agenda views

I am not quite sure what the best way to describe what I'm looking for is, so let me start with a picture. This is the result of doing a search for all TODO items in my agenda-files with a certain tag....
0
votes
0answers
18 views

Trouble with org-capture for links

I'm having some trouble getting links to work. All of my other capture templates are working, but when I press "l"for link, it doesn't prompt me for the link. It instead immediately says Capture abort:...
0
votes
0answers
13 views

When scrolling a list of buffer, can the buffer content be shown in a second window?

When using dired and peep together, I can scroll up (C-p) or down (C-n) the dired file list in the left window, and see the content of each file in the right window. This is a very practical ...
0
votes
0answers
19 views

Open org-agenda on the top

Every time, org-agenda is invoke by 'C-c a`, it display at the bottom on another window. Is it possible to configure it open on the top?
0
votes
0answers
13 views

How to make helm list all options when hitting M-x

I unfortunately lost my init_helm.el file, and had to reconstruct it from scratch, so far only with these commands: (require 'helm) (helm-mode 1) The functionality I miss the most is the ability to ...
1
vote
2answers
27 views

How to make a newfile-function opening the new file in a new frame?

I use Emacs org-mode for note taking during philosophical dialogs. I make one new file for each idea encountered, using this code: (defun myfun-create-note-file() "Doc-string." (interactive) ...
2
votes
1answer
136 views

Hide slashes in italic text in org-mode

By default, text between slashes is italicized: Is there a way to have org mode hide the slashes while keeping the text italicized? UPDATE NickD's answer below works great! Here's what it looks ...
0
votes
1answer
21 views

set fill-column in org-capture notes

I'm trying to customize the fill-column value for org-add-note when adding notes to an Org TODO (e.g., C-c C-z). I have tried to add the following to the org-add-note function (this seems reasonable ...
1
vote
1answer
25 views

Org mode regex search view

Upon reading Search View It state that You can incrementally adjust a boolean search with the following keys [ Add a positive search word ] Add a negative search word { Add a positive regular ...
0
votes
2answers
42 views

Org-mode tell paragraph position in subtree

Is there a quick way to show where a paragraph is sitting in the document structure hierarchy? * Chapter 1 ... * Chapter 5 ** Section 4 ... paragraph X I would like to tell that paragraph X is ...
0
votes
0answers
21 views

org-capture-templates which not level one heading

I wrote such a capture template (add-to-list 'org-capture-templates '("d" "Diary" entry (file "~/ORG/src/sdiary.org") "**** Log \n\n**** Tasks\n\n**** ...
1
vote
1answer
55 views

org-agenda-write doesn't respect org-agenda-dim-blocked-tasks

Running a fresh Emacs session with emacs -Q, I evaluated the following: (setq org-agenda-files '("~/index.org")) (setq org-enforce-todo-dependencies t) (setq org-agenda-dim-blocked-tasks 'invisible) ...
1
vote
1answer
13 views

Hide the external links

I am insert a external link to projects.org from os.org * file:projects.org::[[Workflow]] How could hide the external file name and left only workflow
4
votes
3answers
1k views

How do I demote/promote selected subtrees?

(current as of org 8.2.10) I have a thing (shameless plug) that outputs a simple snippet of org-headings in a single file that look like this: * little boys - snakes - snails - puppy dog tails ...
1
vote
2answers
107 views

Babel + Python function definition with for loop causes IndentationError

I am using orgmode and Babel to run Python source code blocks. I noticed that if I define a function that returns a value, and if this function has a for loop inside it, then evaluating it with Babel ...
0
votes
1answer
15 views

Indexing subtrees

Let's say I have the following structure ** fruit *** handkerchief **** hat **** smoke *** ticket **** cinema ***** toad It is now possible to think of the subtrees under fruit as indexed, ...
0
votes
0answers
9 views

capture abort json readable error

I am running on doom-emacs, C-c c invoke org-capture template, it report error capture abort json readable error Debug with emacs --debug-init, no errors reported. What's the problem might be?
0
votes
0answers
10 views

Unexpected cursor move in org source block when `comment-line`

In an eamcs -q session given the below code (* and % are position indicators) #+begin_src python import IPython %import tabulate class OrgFormatter(IPython.core.formatters.BaseFormatter): ...
7
votes
1answer
672 views

Creating permalinks for sections in HTML exported from org-mode

By default when org-mode documents are exported to HTML, the section and sub-section links look like file:///path/to/export/location/doc.html#sec-1-1 The problem is that the above link won't point ...
0
votes
0answers
18 views

Set source block name for org section

Expanding <<foo>> using noweb works with #+NAME: foo above one src block. Why is this one not expanded? ** My org section :PROPERTIES: :header-args: NAME: foo :END: #+...
8
votes
1answer
623 views

org-mode captions not supported for EXAMPLE blocks?

Please consider the following, self-contained .org file MVE, which I hope is self-explanatory: #+OPTIONS: toc:nil Figure [[captions-work-for-src-blocks]] shows that captions are correctly exported ...
0
votes
0answers
28 views

Error when exporting to pdf in org-mode

I get the following error when exporting to pdf directly in org-mode (C-c C-e l o), but conversion using pandoc with the exported tex document (C-c C-e l l) works fine. What went wrong? Latex ...
1
vote
0answers
17 views

org agenda: show todo entries & todo entries scheduled for today

Is there a way to make agenda show todos that have no timestamp & those that have, but are scheduled for today? It seems like i can do one or the other, but not both.
1
vote
1answer
25 views

Error with org-babel-execute-buffer

I'm using Org mode 9.2.3 and Emacs 26.2. When I try to execute all source blocks of an org document with org-babel-execute-buffer (bound to C-C C-v b), I always get the following error message: ...
0
votes
1answer
10 views

How do I control how the contents of an element/object are combined when defining an org-mode export backend?

I'm working on implementing a custom Org mode backend and trying to understand how the exported contents of an element/object are combined together by the export system. It seems like everything is ...
1
vote
1answer
27 views

Reformat timestamp in org-capture-template

I cloned such a template (add-to-list 'org-capture-templates '("d" "Diary" entry (file "~/ORG/src/diary.org") "* %u \n** Log\n\n*** Tasks\n\n** Creating ...
0
votes
1answer
13 views

Force new lines between words in cell of org table

I have such a table in org doc (?P<name>...) #+OPTIONS: \n:t |---------------------------------------------------------+-------------------------------------------| | Context of reference to ...