Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [org-capture]

is for capturing notes in Org mode with minimal interruption.

8
votes
3answers
845 views

Emacs: function to make a file with date/time as filename, and a shortcut for it

I need to generate text files with the following name format: YYYYY-MM-DD--hh-mm-ss.org. How can I use the capture funtionality for this? That is, instead of making one entry per capture in a single ...
7
votes
1answer
858 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 <-...
6
votes
1answer
370 views

Evil mode - How to go into Insert mode after Org-capture with %? cursor placement

After creating an org-capture with the %? to place the cursor, the cursor will be in command mode. Is there a variable for putting it into insert mode or does org-capture elisp code need to be ...
6
votes
1answer
134 views

where is default org mode capture template for tasks located

I was configuring some capture templates for org mode but when adding any new template to init file, the default TASK template disappeared. (setq org-capture-templates '(("t" "Todo" entry (...
5
votes
1answer
688 views

Set org-capture datetree write on top of the file

I'm using org to store a list of links, I capture the links with org-capture and a custom template, but I want to write the new entries at top of the file. how I can do this?
5
votes
1answer
2k 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 ...
5
votes
1answer
5k views

Error message “Symbol's function definition is void: org-link-types” when I open a .org file

I tried to get the "capture"-Feature to work. I did the following things: Installation of the newest Version of the Org mode (now the version 8.2.10) To get the capture feature work i added to my ....
5
votes
1answer
2k views

Org-mode: clarify the concept and practice of archiving

My current org file (e.g. work.org) has 20+ DONE tasks and Org-mode becomes extremely slow: even moving the cursor takes a 2-3 seconds sometimes. I decide I have to archive these DONE tasks, but I ...
4
votes
1answer
169 views

Change the time when picking a date?

I am using a %^T element in my org-capture-template. This prompts me this need calendar buffer, where I can pick a date. I can move around by using SHIFT+<arrow>. It maps to calendar-forward-...
4
votes
1answer
433 views

How to make a capture task template that stores a new task at point in the file I am in?

Org capture is a great tool for capturing notes and task when doing other things inside Emacs. The captured item is stored in a specified file for later review, and the point jumps back to the file it ...
4
votes
1answer
433 views

Tags completion from org-capture window

If I place %^g in my capture template, org will prompt for tags, with completion. But typically, I like to brainstorm on relevant tags, after I finish writing my ideas. Is there some way to get tag ...
4
votes
1answer
78 views

org-capture notes above footnotes header?

Org-capture appends its notes to the bottom of my notes.org file. But this places them below the * Footnotes headline, which is problematic. Is there some way to configure org-capture so new notes are ...
4
votes
2answers
465 views

Add line number to org-capture

Preface this by saying I program but I'm not a programmer, and I especially don't know lisp. I use org capture during code reviews, and we use line numbers as a way or organizing changes that need ...
4
votes
1answer
145 views

Org-refile locks up file when used from org capture

I like to use org-refile to refile notes during the capture process. But, since org-refile does not saves the file after the refiling is done, the file ends up being locked up and I need to visit the ...
4
votes
1answer
320 views

Capture template without body

I have an org-formatted file named foo.org that consists only of headings (without body). Notice the absence of blank lines. * one ** a ** b * two ** c * three I want to use capture templates to ...
4
votes
2answers
223 views

Capture deadline timestamp based on date in agenda view?

I want to capture things with a deadline timestamp relative to the date that is open in my agenda view. How can I do that? The %T template inserts today's date. I want a template that queries my ...
4
votes
1answer
763 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 ...
4
votes
1answer
442 views

How to use Org Capture to add a task *and* automatically add parent's property

I'm trying to create an org-capture template that creates a task and (important part) automatically adds a parent's property to this new task. I'm comfortable creating new capture templates--I'm just ...
4
votes
1answer
297 views

Dynamic Org-capture Templates

I've read the org-capture template documentation and searched for "Dynamic org-capture templates" but cannot seem to find out how to create the following: C-c c "a" Activity: math (<-...
4
votes
0answers
165 views

orgmode, capturing original document title

I have a basic capture template: ("a" "Article" entry (file+headline "~/GitLab/Reports/Bibliography/references.org" "Article") "* %^{Title} \n%?") that asks you to fill the Title field. Now, ...
3
votes
1answer
236 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" "...
3
votes
1answer
291 views

Can I create a checklist entry using org-capture?

It seems to me that org-capture requires templates to start with a heading (*). Can I not have a template like: ("d" "Daily Tasks" entry (file+datetree+prompt "daily.org") "- [ ] %?") that does ...
3
votes
1answer
321 views

Creating templates in emacs

I need to create a weekly agenda that has the same outline. I currently have a Word template file that I use, but would like to convert it to emacs. I want the emacs "template" to pre-fill the ...
3
votes
1answer
3k views

Can' t set directory for org-mode capture

I was trying to use the capture as is explained in org-manual p. 85. This is the relevant part of my .emacs file. (setq org-default-notes-file (concat org-directory "~/Notities/org-mode/Capture.org"...
3
votes
1answer
204 views

Automatically store link when org-capture is called?

I know about the %a template element, which inserts the stored link in the entry. I'd also like to automatically store a link whenever org-capture is called from within emacs (as opposed to spawning a ...
3
votes
2answers
114 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), ...
3
votes
1answer
342 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: ")...
3
votes
1answer
811 views

Using org-protocol with a floating capture window?

I have recently found a way to have a floating capture window, with this setting I can create a floating capture window using: emacsclient -n -e '(make-capture-frame)' My knowledge of elisp and org-...
3
votes
3answers
44 views

Org-capture menu from within helm

I have started using org-capture extensively, and now have capture lists for just about everything: books to read, movies to rent, articles to write, research topics, business ideas – you name it. ...
3
votes
2answers
118 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 ...
3
votes
0answers
65 views

Trouble with link to position in current file when capturing

So I'm fairly competent with org-mode, and I make constant use of custom templates. I'm just now exploring the idea of integrating capture into my programming work flow so I can whip up skeletons ...
3
votes
1answer
605 views

file org-capture item under existing heading if it exists

I have the following org-template set up: ("mw" "Note" entry (file+headline "~/org/mathematica.org" "WIA") "* %f code review \n ** %T \n%? \n%a \n%i") So that the heading name is determined by ...
2
votes
1answer
116 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?
2
votes
1answer
326 views

How to capture and link code comments as org agenda items?

I often see or leave comments in code projects like: //TODO more efficient hash on keys than BASE64? Ideally, I would like to be able to highlight a comment as such and org-capture it to an org file ...
2
votes
1answer
328 views

How to Org Capture at current location?

I have successfully used org-capture, and have many templates. Recently I have written a new template, where I want the target to be the location from where I am calling the capture command. I have ...
2
votes
2answers
934 views

creating an org-capture template

I am trying to create an org-capture template for a grocery list, but there seems to be no easy way to get the result I want, and I'm pretty bad at programming. So I was hoping that maybe someone has ...
2
votes
2answers
265 views

Emacs freeze after selecting a org-capture template

I'm new to org-mode. I've tried to set up a simple TODO list by calling org-capture and when I select my [t] todo item on *Org Select*, Emacs freezes and I need to kill its process. On the mini-...
2
votes
2answers
420 views

How to group together tags in a headlines made by org-capture?

I use the following capture code for making notes. (setq org-capture-templates '(( "n" ; key "Add a note to abc.org file " ; ...
2
votes
1answer
401 views

json-readtable-error during org-capture

This problem only arose today and I haven't really changed anything substantial in my init.el so I am sure what the source of the error is. Essentially, when running org-capture (and also during ...
2
votes
0answers
39 views

Org-mode adding statistic cookie to date-tree lines in capture

In this video(timestamped to relevant section), I see this guy's org file in a date-tree with the [/] statistic cookie next to each YYYY-MM-DD headline. https://youtu.be/-2RXhPV_zgc?t=12m51s I'd ...
2
votes
0answers
121 views

org-pomodoro - extending its function: popup windows and pomo logging

I'm using pomodoro method of focus-enhanced time allocation when I work in my tasks. In Emacs (I'm using Windows 10), here comes the org-pomodoro package for org-mode, where I can 'clock-in' an item ...
2
votes
0answers
356 views

Capture template `a': outline-show-all

After updating my Emacs packages, org capture templates fail with Capture template `a': outline-show-all, where a is the capture keystroke. Backtrace: Debugger entered--Lisp error: (error "Capture ...
2
votes
0answers
64 views

How can I make Org mode's capture functionality accept tags starting with '%'?

I use org mode and its capture functionality for capturing notes and tasks on the go. My capture code looks like this: (setq org-capture-templates '(( "n" ; key ...
1
vote
2answers
64 views

after org-capture, how to go to the content that I saved?

I just wondering if there is a way to go to the content which saved by doing org-capture I couldn't find any customizable variable so far :-/ Thanks in advance!
1
vote
2answers
472 views

How to a create keybinding to open a particular file?

How to change the SPC m c (org-capture) keybinding to open the ~/capture.org file instead? F-5 opens file when this is in .spacemacs file: (global-set-key (kbd "<f5>") (lambda() (interactive)(...
1
vote
1answer
426 views

org-capture + mu4e failures

I'm trying to get org-capture and mu4e working together nicely. Org-capture is already correctly set up; I can capture links to source code files with the following template: (setq org-capture-...
1
vote
1answer
64 views

org-capture link description too long

I configured org-capture with below elisp in init.el: (define-key global-map "\C-cc" 'org-capture) (setq my-org-capture-file (concat org-directory "/capture.org")) (setq my/line "%(with-current-...
1
vote
1answer
92 views

How to get the value of :ID: property of a org-contacts-entry in an org-capture-template?

Problem I want to get the value of a property of a org-contacts-db entry: \* Example Contact :MYTAG: :PROPERTIES: :ID: foobar :END: With the function call (org-contacts-filter "Example ...
1
vote
1answer
705 views

Optional prompts in org-capture template using helm?

Is there a way to bypass a prompt (set the value to nil) in an org-capture template with helm? Specifically, template looks like this: ("m" "Meeting notes" entry (file "~/Dropbox/org/meetings.org") ...
1
vote
1answer
857 views

Current time timestamp in org-capture-templates

In org-mode org-capture templates, what is the way to insert current time timestamp? I've tried %U like so: (setq org-capture-templates (quote ( ("k" "Capture an item and schedule it for ...