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
7 votes
2 answers
1k views

Cannot use concat within org-capture template

I am trying to use concat from within an org-capture template. But I keep getting an "Invalid template" error, so something's not right. Here is my code: (setq org-capture-templates '(("j" "...
Adam's user avatar
  • 1,897
2 votes
1 answer
2k views

Match data clobbered by buffer modification hooks

I want to setup a Journal entry template that prompts for a date/time, so that I can process current entries, as well as older ones. This is what I have so far: ;;; Org-capture settings (setq org-...
Adam's user avatar
  • 1,897
9 votes
1 answer
2k views

Is it possible to file a capture template in a subheading of a day in a datetree?

In Org-mode, I would like to have a capture template get stored like this: * 2015 ** 2015-05 May *** 2015-05-21 Thursday <--- I can get this with file+datetree **** Todo today <-...
Max Hollmann's user avatar
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 ...
Beetle B.'s user avatar
  • 640
6 votes
1 answer
2k views

Capturing screenshot in org-capture buffer

I am planning to insert screenshot in org-capture buffer. I have a function that can create a screenshot image in a images subdirectory of current directory. However, since the org-capture buffer is ...
Leu_Grady's user avatar
  • 2,460
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 ...
njc's user avatar
  • 73
5 votes
1 answer
2k views

Using user prompted file name for org-capture in template

With the help of these questions, I managed to prompt the user for a file name in org-capture and combine it with a timestamp. (defun my/generate-org-note-name () (let ((name (read-string "Name: ")...
xav's user avatar
  • 235
5 votes
2 answers
1k views

File org-capture entry under current headline at point

Let's say that I have a tree of tasks like so: * TODO Launch website ** TODO Get database running *** TODO Select MySQL vs. PostgreSQL Let's say I'm looking at the "Select MySQL vs. PostgreSQL" and ...
telotortium's user avatar
4 votes
2 answers
1k views

org-capture: prompt for a target file

Starting from the existing customization associated with key j, is there a way to view and modify the target file? In other words, by default, captured notes would go to */journal/inbox.org, ...
user avatar
4 votes
1 answer
2k views

Org capture into org table

Normally org-capture lets one insert a templated subtree somewhere into an existing Org file or tree node. Is it possible to use org-capture to instead add a row to an existing Org-mode table?
Matthew Piziak's user avatar
3 votes
3 answers
3k views

Capture template like org-journal

I would like to setup an org-capture template for my journal entries that mimics org-journal.el. The difference is, I want my journal to live in one file. Here is an excerpt from the github page to ...
Adam's user avatar
  • 1,897
3 votes
2 answers
949 views

Capture org notes to a new file

I would like to improve my notes capture flow to do the following: Use C-c c then n to create a note. Get a minibuffer that searches for an existing file to add the note to (ie. probably with helm), ...
maurelian's user avatar
  • 131
3 votes
1 answer
462 views

Turn off fringe character for org-capture

I updated to Emacs 28 recently and org-capture now puts a small character in the left fringe for captured items. I know that I can set fringe-mode to no-fringe to not see any fringe, but that's not ...
jrasband's user avatar
3 votes
1 answer
889 views

Monthly date tree

I'd like to use datetree with month (alternatively week) granularity. Currently the datetree looks like that: * 2019 ** 2019-03 March *** 2019-03-17 Sunday **** TODO Weekly review I'd like to drop ...
Igor Kupczyński's user avatar
2 votes
2 answers
736 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 ...
Nova Leary's user avatar
1 vote
2 answers
2k views

How to a create key binding to open a particular file?

How to change the SPC m c (org-capture) key binding to open the ~/capture.org file instead? F-5 opens file when this is in .spacemacs file: (global-set-key (kbd "<f5>") (lambda() (...
wolfv's user avatar
  • 1,393
1 vote
1 answer
552 views

Org (and org-capture) uses English for calendar dates, no matter what I do

The problem: When I use org-capture to write on my journal, it writes the month as April and the day as Friday. But everything in my system is in Portuguese, so it should be "abril" for the month, ...
Leonardo Bighi Lourenço's user avatar