Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [org-capture]

is for capturing notes in Org mode with minimal interruption.

Filter by
Sorted by
Tagged with
0 votes
1 answer
18 views

How to keybind an org-capture template with use-package?

Suppose I bound org-capture with C-c c and a tmp template with t: (setq org-capture-templates `( ("t" "tmp" entry (file ,(concat captures-path "tmp.org"))...
1 vote
0 answers
19 views

Is it possible to 're-use' the value of a timestamp prompt within an org-capture-template?

I am trying to prompt for a timestamp to be added in the properties drawer, and to re-use the value outside of the drawer so it can be visible when reading/editing the note. I am already using the %\N ...
2 votes
1 answer
439 views

org capture at point as sibling of heading

org 9.2 used to support this feature. when (org-capture 0), it used to place the selected template entry as a sibling of heading at point. in org 9.3 however, it fully respects the heading level ...
0 votes
1 answer
12 views

Invalid read syntax error in org-roam-capture-templates

I have the following in my org-roam-capture-templates list: ("tt" "tomorrow task" plain ,(concat "*** %(org-read-date nil nil '+1')\n\n" "Description:\n\...
1 vote
1 answer
63 views

Org-mode tag autocomplete with helm adds unwanted comma

When using org-capture, tags are auto-completed with a comma that is not compatible with org-mode tags (org-mode tags are separated by colons) I believe helm is assisting with the tag autocomplete ...
0 votes
1 answer
97 views

org-protocol URLs with UTF-8 (URL-encoded) characters aren't properly captured

When using org-protocol capture URLs on Windows, pages with non-ASCII titles or captured text results in a capture with incorrect values applied in the template. Despite such characters being properly ...
4 votes
1 answer
2k views

Generate a date tree from timestamps in org-mode

Since I was interested in doing my early capture-templates, I was tempted to go with this template below: ("j" "Reference type: Journal" entry (file+headline "~/Dropbox/orgfiles/gtd/ref.org" "...
0 votes
1 answer
64 views

org capture auto id insert %a

When creating a capture, org capture will auto insert a link which link to the location where the capture action happens, if the capture template contains "%a". e.g: I'm in heading A, and ...
0 votes
1 answer
353 views

Org capture template output to two files

I am currently using two separate Org files to manage my work Todos. One is a file that I edit directly and keep notes on each todo task (Work.org). The other is a schedule file which is synced with ...
2 votes
1 answer
227 views

how org-capture can insert value in an existing table line

I am diabetic and I have to take my blood glucose three times a day (morning, noon, evening) I can do in three separate tables, and I create a table to group the daily records. How could I capture all ...
0 votes
1 answer
34 views

C-c c does not activate Org Capture after upgrading to Emacs 29.2

After upgrading to Emacs 29.2 I can't activate Org capture using 'C-c c'. In the mini buffer it says 'C-c c is undefined' I can activate Org capture using 'M-x org-capture', but I preffer the 'C-c c' ...
0 votes
1 answer
36 views

org capture to bibtex file

I want to org-capture (or something like it) to a non org file, in particular a bibtex file. In more detail If point is in an org-file in a link of the shape [myurl][mydescription] And I call org-...
0 votes
2 answers
72 views

How do you handle an error in the scope of current-buffer with condition-case?

I would like to create headings and subheadings with org-capture if they don't exist with file+olp in my templates. The problem is that I get this message Heading not found on level 1. I'm not sure ...
2 votes
1 answer
73 views

Difficulty inserting current weather with org-roam dailies template

I am trying to get the current weather inserted into my org roam dailies. Here is the default capture template I'm starting with, from https://systemcrafters.net/build-a-second-brain-in-emacs/keep-a-...
0 votes
0 answers
59 views

How can I org-download-clipboard in org-capture-templates?

As org-protocol does not support images, I was thinking of calling org-download-clipboard from the org-capture-template. (add-to-list 'org-capture-templates ' ("l" "...
0 votes
1 answer
53 views

How do I visit and subtree-narrow after org-capture?

I have a fairly complex journal template which I use with org-roam-dailies via org-roam-dailies-capture. For all intents and purposes, I am fairly certain you can just think of this as org-capture. An ...
2 votes
1 answer
591 views

How can I use the current org-mode buffer as a Target in an org-capture template?

I want to design an org-capture definition that targets the current org file. Looking at the list of available targets it's not clear to me what I should use. Considering using (current-buffer) as ...
5 votes
1 answer
270 views

Is it possible to organize the capture templates selection screen?

As it can be seen above, I have around fifteen capture templates. I think this list may grow or shrink, but in the case that it grows, is there any way to make it more segmented? Like dividing it ...
5 votes
3 answers
1k views

Send org-capture tasks to different files, depending on which file org-capture is called from

I am beginning to use org-mode as an electronic lab notebook, which is working very well. I work on a number of different projects, each of which has its own directory. When I use org-capture, I want ...
0 votes
1 answer
53 views

Programmatically call org-capture w/ specific template

Is it possible to use emacs-lisp to call org-capture with some template being preselected? My use case is: I need an org-mode External link of ‘elisp’ type that triggers a specific org-capture ...
0 votes
1 answer
46 views

What is org-capture trying to write to my init.el file?

My init.el is symlinked by NixOS, so that means it's write protected. For some reason, after org-capture, Emacs tries to write to this file. I'm not sure I understand what it's trying to write?;) ...
0 votes
0 answers
12 views

A file I was using for org-capture has been renamed (*filename*.org -> *filename* (1).org, is this normal?

I wanted to rule out this being a feature of org-capture, maybe a result of manually editing the file or something? If anyone has any other suggestions as to what else could have caused it I would be ...
2 votes
2 answers
734 views

How do I make org capture prompt for specific header target?

I need help writing a function that makes Org Capture prompt me of what it should place the capture to a specified header in my tasks org file (basically I need it to search through the specified org ...
0 votes
1 answer
32 views

Org mode: Scheduling irregular, yet rigid procedures

The Problem What's the best way to schedule complicated time-based procedures that are repeated on irregular dates? E.g., say I signed up to do night watch on a set of arbitrary dates. The night watch ...
6 votes
4 answers
2k views

In org mode, how can I make a post-capture hook run only for certain capture templates?

I have several capture templates. With one of them, I want an Elisp function to transform the contents before saving it. I know of org-capture-prepare-finalize-hook, but this will run for every ...
0 votes
1 answer
215 views

How to use org-capture template expansion on finish?

I would like to capture the time when I finish an org-capture template with C-c C-c. Is it possible? And how is it possible to use the given templates (i.e., the template %U) for this? Best Jonas
0 votes
0 answers
26 views

Capture to a location based on on location in org-tree

org-capture has a highly customizable set of capture locations using org-capture-templates. I've used this for doing things like capture to the current task I am working on using org-clock or to ...
2 votes
1 answer
83 views

using "Shift+Space" in org-mode capture minibuffer

Using Emacs 28.2 (graphical, not text mode) from https://emacsformacosx.com with org-mode 9.5.5 and ivy. When entering a task description in the mini-buffer via org-capture, I occasionally enter both ...
1 vote
0 answers
104 views

How to programmatically invoke an org-capture template

Let's say I have the following template added to org-capture: (defvar my/org-todo-template "* %^{NUMBER} - %^{DESCR} [%] ** Contacts ** Fotos ** Tasks *** TODO Task a *** TODO Task b") (...
0 votes
1 answer
79 views

Org-capture: Use org-expiry to create property drawer in top level headline

I use org-expiry to insert the CREATED date in properties drawer by default. When I created second level headlines with my org-capture template and press C-c C-c when my cursor is at second level ...
0 votes
1 answer
699 views

Org capture template with org-store-link

I would like to create an org-capture template such that when I select it with org-capture (which is mapped to C-c c for me), I want the capture template to ask me for the description and URL of a ...
3 votes
1 answer
1k views

Org-roam-dailies navigation with custom template

I've setup a template for org-roam-dailies in such a way that There is one file per month, so YYYY-mm.org Inside each file, headlines go with a timestamp (setq org-roam-dailies-directory "daily/...
0 votes
1 answer
96 views

Template is not a valid Org entry or tree

There is a previous post for that error, but it didn't help in my case. What could be causing the error? Set up: $ ls -a $HOME/org . .. '#notes.org#' .#notes.org .notes.org .notes.org~ tpl-...
1 vote
0 answers
44 views

Unwanted spacing in datetree template

I have an issue with unwanted spacing when I'm adding entries to datetree. This is the template I'm using, stripped to simplest for the purpose of testing: ("p" "Progress" entry (...
2 votes
3 answers
326 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
1 answer
207 views

Capturing data in org-file to org-table

I have a simple template in emacs org-mode: \begin{flushright} Name: Phone no: Billed amount: Date \end {flushright} Details: I export the document to PDF and print it. I create multiple ...
1 vote
2 answers
586 views

org-protocol not responding

Description I use org-capture extension which had been working great for about 6 months. I have trouble making org-protocol work from Firefox since 8/1/19. When hitting the extension button in FF, ...
0 votes
1 answer
122 views

org-capture template with file local variables

I'm trying to set up a capture that automatically deactivates the undo-tree history saving in an encrypted file by setting file local variables. When I call the capture and have entered the filename ...
0 votes
1 answer
401 views

org capture datetree: active timestamp for the day heading

I want the date in front of the day, captured with file+olp+datetree and type week as an active date so I can look the entry up in the agenda. The date which I'm talking about is underlined red in the ...
2 votes
2 answers
291 views

org-mode datetree forward one day in the future

At work we do standups about what we did yesterday, I'm using datetree for my org-capture but the date recorded is by default today's date, I would like to change this so the date is of tomorrow ...
1 vote
1 answer
162 views

How to remap org-capture-templates keybindings?

I mapped org-capture with C-c c like this: (global-set-key (kbd "C-c c") #'org-capture) Amongst my org-capture-template, two have been set like this: ("i" "Inbox" ...
0 votes
0 answers
34 views

Org-capture: not able to copy paste image in transient buffer

Basically that: when I try to capture on the fly ideas with images, I can't paste them. Org-capture seems to only work for text. Any ideas on how to bypass this limitation? Thanks! I just noted this ...
0 votes
1 answer
479 views

Using org-roam-capture throws error: Symbol's function definition is void: org-fold-show-all

I am using org-roam and the problem occurs when I try to use an org-roam-capture template. The capture template is for creating org-roam-nodes from citations using citar. It is based on this blog post ...
1 vote
1 answer
1k views

How to programmatically create a new org-roam file?

I want to create a new org-roam (v2) file (i.e., an org-roam node that is a file…) from an elisp script. I know what I want the content of that file to be, and I want the file to be created and the ...
3 votes
1 answer
564 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
3 answers
2k views

How to use org-capture without creating ID property?

Whenever I create org-mode entries using org-capture they automatically get an ID property. Is it possible to disable that? I'm using org mode version 9.0.5.
0 votes
1 answer
97 views

org-capture templates, relative dates

I'm trying to create an org-capture template that contains dates relative to the value of %t. I understand that with C-1 I can prompt for a particular date, and I'm looking for the day prior and the ...
4 votes
1 answer
1k views

Using org-capture to record an appointment with a time range

I would like to use org-capture to quickly store appointments in a journal file, and add a timestamp so that the appointment appears in my agenda. I'm using the following template: ;; excerpted from ...
0 votes
1 answer
79 views

Why is my variable out of scope in org-roam-capture?

I would like to define an function using org-roam's capture system. However, I want to create a new function, not use the variable org-roam-capture-templates and the related function org-roam-capture. ...
0 votes
1 answer
238 views

My Org mode capture code returns "Invalid file location: nil"

I use the following code for the org mode capture functionality, but it returns the error "Invalid file location: nil". What is wrong? Thanks in advance for any help! (setq org-capture-...

1
2 3 4 5