Questions tagged [org-capture]

is for capturing notes in Org mode with minimal interruption.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 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 ...
  • 111
0 votes
1 answer
27 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
13 views

Insert a selected org capture note into document

My workflow include taking notes while I move around. I would like to use org capture on mobile org on ios. The steps involved include Capturing notes with mobile org which syncs with Dropbox. For ...
  • 533
0 votes
0 answers
17 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
26 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
56 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 ...
0 votes
0 answers
54 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 ...
  • 101
0 votes
1 answer
15 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 ...
  • 101
0 votes
1 answer
40 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 ...
  • 3
0 votes
1 answer
31 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
51 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,049
2 votes
1 answer
73 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 ...
1 vote
0 answers
71 views

Org capture to existing file

I would like to use org-protocol to capture to an existing org file if one already exists. I am using a function to generate the file name interactively for the org file to be captured to: (defun my/...
  • 123
2 votes
1 answer
350 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/...
  • 91
0 votes
1 answer
36 views

Comments in org capture templates

I have a lot of org capture templates defined in my .emacs file. I'd like to be able to add a "comment" into some of them - how would I do that? For example when I'm capturing a new GTD ...
  • 305
0 votes
1 answer
83 views

org-capture-templates allows file+headline to capture to a headline. How can I capture to a sub-headline?

I have an org file tracking my tasks across various projects: work.org * Job 1 ** Tasks *** TODO rewrite frontend in coldfusion * Job 2 ** Tasks *** TODO Convince boss to buy stadium I can do an org-...
  • 167
1 vote
0 answers
57 views

Custom org-capture find headerline function error, wrong number of arguments

So, I managed to get my headline retrieval function fixed, so now the function searches and finds my header lines, but when I select the one I want to use.. it oddly throws back this apply: Wrong ...
1 vote
1 answer
119 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
0 answers
25 views

org-capture to specific heading and function

Let's say this is in an org file called entries.org: * heading 1 ** heading 2 *** heading 3 **** 2021 ***** [2021-01-19 Tue] note 1 ***** [2021-02-17 Wed] note 2 ***** [2021-03-15 Mon] note 3 ***** [...
0 votes
1 answer
47 views

Using regexp in org-refile-targets and the `:refile-targets` property in org-capture-templates

I am trying to specify a refile target with a regexp, but can't get it to work. Specifically, I'm trying to use the new :refile-targets property in org-capture-templates, but this question holds for ...
  • 11
1 vote
1 answer
109 views

Org-capture template extension with project name

I am struggling to setup an org-capture template which captures the current projects name from where it is called. Just like ‘%f’ File visited by current buffer when org-capture was called. I am ...
1 vote
1 answer
70 views

Orgmode link description without https

I would like to have a capture template that would take a pasted link like: https://orgmode.org/manual/Completion.html and return: [https://orgmode.org/manual/Completion.html][orgmode.org/manual/...
  • 13
1 vote
1 answer
50 views

How do I correctly use org-entry-put with "DEADLINE" in a capture

I want to set the deadline of every org-capture per some considerations and I want to do this after the capture rather than in the capture template. Given the following example code: (defun post-...
  • 145
0 votes
0 answers
140 views

org-capture: use without indirect buffer

Is there a way to enter capture text without the indirect buffer after C-c c? So, after pressing C-c c the :LOGBOOK:is directly filled with - Note taken on... and I can continue capturing text in that ...
0 votes
0 answers
142 views

Capture template for org-roam-bibtex to keep notes in single file

As the title says, I want to setup org-roam-bibtex so that I can capture notes for different papers/articles in a single file. (I've asked iterations of this on the org-roam discourse page and on the ...
0 votes
1 answer
110 views

Is there a way to include heading in link from org-outlook

'New to OrgMode' I am using org-outlook to capture email from outlook as task. I have a file ToDo.org with different multi-level headings. Looking for a way to put task under a specific heading. Right ...
  • 3
0 votes
0 answers
53 views

org-protocol capture information to where cursor is

I am using org-protocol with Firefox as described in the page. It makes things easy to take notes while using roam but after every action, I need to refile what I captured to correct place. This is ...
0 votes
1 answer
58 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 ...
0 votes
1 answer
62 views

org-capture header nesting levels

I am a relative emacs/org newcomer, and I am trying to get org-capture tuned to what I am looking for. I do spend a lot of time trying to search for answers, but sometimes I just get stuck. what is ...
1 vote
0 answers
39 views

spacemacs: org-capture generates point with unexpected highlight

In spacemacs, when I use org-capture to insert in an existing .org file with a template, I get an orange highlight that I don't expect, and I don't know what it means: In the image the 2021/07/16 ...
1 vote
1 answer
91 views

org-capture template does not replace the date placeholder or use the correct level

I'm trying to create an org capture template that will just insert a second level point: "** 2021/07/16" (or whatever the current date is). I expect this setq example to do that: (setq org-...
1 vote
1 answer
209 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 ...
  • 153
1 vote
1 answer
130 views

Org-capture template containing a date relative to when an email was received

As the title describes, I want to be able to create an org-capture template which allows me to specify a relative date (say, 2 days) from when an email was received and print it out. The solution ...
  • 610
0 votes
0 answers
57 views

org-capture datetree inside current buffer not working

i want to capture into a datetree inside the current buffer. Below is my snippet. But unfortunately it doesn't work. Always an error: org-capture-expand-file: Invalid file location: nil I use emacs 28 ...
1 vote
1 answer
56 views

Weird error on org-capture

I got my command for Ctrl+C - c - t (i.e. invoke org-capture) slightly wrong (i.e. missed a key or something when trying to type it). I know I got it wrong because it didn't work but instead changed ...
0 votes
1 answer
48 views

org-capture with reference to file in which it was invoked

Is there a way to configure org-capture so that, if I create a note from within a certain file, it will include a link to that file?
  • 153
1 vote
0 answers
27 views

How can I tell emacs to choose the 'right' link function from `org-store-link-functions` based on the mode it was triggered in

Whenever I want to capture a link from a PDFView buffer with org-store-link, I get prompted for the link type I wish to apply ("Which function for creating the link? "), with two choices: ...
  • 366
0 votes
0 answers
193 views

Recommended Emacs for ORG-Mode (vanilla, emacs plus, doom, spacemacs)? Getting Things Done (GTD) Method?

This is just a general question in relation to emacs and it's specific use for ORG mode. I have always been miserable at planning and organization in daily life (keeping TODO list, general time ...
  • 103
0 votes
0 answers
65 views

How to remove spurious whitespace in `org-add-note` LOGBOOK drawer

When using org-add-note (C-c C-z) in Org, I'm unable to automatically remove whitespace that is inserted when finalizing the note and the text is filed into the LOGBOOK drawer. global-whitespace-...
  • 111
0 votes
1 answer
100 views

Creating a new text file in a directory using org-capture

Following this response: Org-Mode - How do I create a new file with org-capture https://stackoverflow.com/questions/11902620/org-mode-how-do-i-create-a-new-file-with-org-capture? I am trying to make ...
0 votes
1 answer
46 views

How to create a function to lauch org-capture with a selected template?

Let's say my capture template is bound to 't': (defun my/captureTemplate () (interactive) (org-capture "r") This won't work as it will show me the whole list of potential templates to ...
0 votes
1 answer
234 views

Dynamic name for org-capture template file [duplicate]

I am new to org-mode (and to Emacs in general) and am trying to set up org-capture. I would like to define a todo capture item whose template is located in the file ~/.emacs.d/org-templates/todo.tmpl....
  • 103
0 votes
0 answers
301 views

org-capture: Capture abort: Wrong type argument: stringp, org-main-file

I know this error has come up here before, but none of the answers thus far have been able to help me and no amount of googling has got me anywhere. I've been using org-capture-templates for quite a ...
0 votes
1 answer
48 views

Pull from git before applying org-capture?

I'm using org-capture to take project-specific notes by having a notes file in each of several git repositories. Looking forward, however, I can see danger here: if I'm working on project (1) and I ...
0 votes
0 answers
54 views

org-capture buffer not showing schedule/deadline/time

If I use org-capture via C-c c t, I type in my headline (eg. "a new task") and press Enter, it takes me to a capture buffer, as expected. I can change the priority of the item there (eg. ...
1 vote
0 answers
428 views

org-capture-templates stopped working

I have org-capture-templates defined as below and until today could capture and log my runs fine, but as of today they've stopped working... (setq org-capture-templates '(;; Computing (&...
  • 283
1 vote
1 answer
186 views

Org mode capture template for repeat tasks

I want to capture several tasks that will repeat annually from the date on which they are captured. So, I did: (setq org-capture-templates '(("a" "TODO Item that repeats annually&...
  • 1,712
0 votes
0 answers
45 views

Cannot capture notes into separate org file when entering reference into Bibtex with ivy

I am using emacs 27.1-4.1 with Spacemacs v.o.200.13 Ivy and vims. I am relatively new to emacs and am expanding into bibtex with ivy-bibtex. in my .spacemacs file is: (autoload 'ivy-bibtex "ivy-...
1 vote
1 answer
559 views

org-capture to a heading within a date-tree

been using org-mode for a little over a year, but still have a ton to learn. Here's the setup and question: i've got a straightforward date-tree daily notes / tasks setup, and i'm trying to figure out ...
0 votes
0 answers
39 views

Insert TODOs and SCHEDULE items in calendar view

We can do this with 'k' in agenda. How to insert / capture tasks at Calendar in Emacs? It would be very useful. Thanks!