Stack Exchange Network

Stack Exchange network consists of 174 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

is for capturing notes in Org mode with minimal interruption.

0
votes
0answers
19 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
2answers
57 views

Org capture templates now take me to org file, not to previous buffer

All of a sudden (after changing computer but keeping same settings) my org capture templates take me to the org file where whatever is being captured will be stored, without the need for C-c C-c to ...
0
votes
0answers
15 views

Org-capture creates file after cancel

I use a custom function (originally from this post on StackExchange) to create files from org-capture (one file per entry). For some reason, if I cancel the entry with C-c C-k Emacs still creates the ...
0
votes
1answer
23 views

Apply template to files created from an org-mode link

If you click on a file: link to a document that does not exist, org-mode will create this file for you. How can I get this behavior to work with a org-capture template, so that files created in this ...
0
votes
0answers
40 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
1answer
26 views

org-capture Template expansion leading whitespace: bug, feature, workaround

Emacs 26.1 org-mode: 9.1.9 I have an issue with the way org-capture expands a template when it comes to line beginnings: This template (setq org-capture-templates '(("o" "Todo" entry (file+...
0
votes
0answers
36 views

\n in org-capture templates always with a leading space. Why and how can I get rid of

The entry of this template: ("f" "Free" entry (file+headline "~/org/mock.org" "Trial") "* %^{Headline} %^g\n- %^{Listentry}") Looks something like this: * Trial ** My Headline ...
0
votes
0answers
17 views

How do you cancel an org capture for a datetree if date exists?

I have a monthly date tree and I'd prefer for the org capture shortcut to insert the template normally if that month isn't created yet, otherwise I'd like it to take me to that month. I'm not sure if ...
0
votes
0answers
23 views

Capture template using table-line

I have started using org-capture in daily work, I want to use org-capture to add elements to a table. can some one help here. I want to have below behavior. First add a row with org-capture using ...
0
votes
0answers
35 views

org-capture is not opening the capture buffer

When I try to capture a new task, org-capture doesn't open up in a capture buffer, rather it opens up the new task in the org-default-notes-file. This means I can't close/file the task using C-c C-c. ...
0
votes
1answer
138 views

Org capture template not working (when trying to set local notes file)

My goal is to get org-capture to store captured notes in a local "notes.org" file located in the same directory as the current working buffer. I set the template like so: (setq org-capture-templates ...
3
votes
1answer
58 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 ...
1
vote
1answer
53 views

Calling shell-command from org-capture-templates to scrape verb conjugations

I want to use org-capture-templates to scrape french verb conjugations from the web and insert them into an org-file to use with org-drill. I have a (functioning) scraper that gets the desired data ...
0
votes
0answers
18 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 ...
0
votes
2answers
372 views

How to use org-protocol and org-capture in spacemacs?

I've been having some problems when using org inside spacemacs. I make use of org-protocol to capture stuff that I find interesting when I'am browsing and have it inside spacemacs. The problem is ...
1
vote
1answer
202 views

capture template for org-projectile?

Is there a way to define a capture template for org-projectile/capture (SPC a o p)? The default capture template creates a todo in root and I'd rather have it under Tasks (/Project Name/Tasks/<the ...
3
votes
1answer
177 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: ")...
0
votes
1answer
299 views

How to specify org-capture template for a weekly journaling

This is what I used to have before: ("w" "Weekly" item (file+weektree (concat org-directory "Weekly.org"))) (where org-directory is ~/Notes) and it used to create a tree of this formatin ~/Notes/...
1
vote
1answer
184 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-...
2
votes
1answer
119 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" "...
1
vote
3answers
350 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 ...
2
votes
1answer
213 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 ...
0
votes
1answer
43 views

How do I pre-process capture buffer before saving to target?

There are times I am given a list of names of people that I need to schedule appointments for in our organization. The names are typically given first, and then details come later. I would like to ...
1
vote
0answers
44 views

org-capture prompt for headline after content

I want to create a capture template for my org-based journal. But I do not want to worry about entering a title straight away. How can I setup my capture template so that org-capture prompts me for ...
2
votes
0answers
33 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 ...
1
vote
1answer
75 views

Quickly switch to an existing task using an org-mode (similar to org-capture)

I use org-mode to keep track of time on tasks and also use org-capture to switch to new tasks that interrupt my current task. Is it possible to do something similar, to switch to an already existing ...
0
votes
0answers
34 views

Capture template: show-all

After M-x list-packages I blindly proceeded to follow the notification to upgrade packages. Now when I try to use my org-capture templates I get a message like Capture template 't': show-all, where t ...
0
votes
1answer
65 views

Disable org-log-refile note on Capture

I have org-log-refile set to 'note which works great when moving tasks around. However, when I'm capturing, I'd like this behavior disabled. I tried the following with org-capture-mode-hook, org-...
0
votes
0answers
31 views

Colorize current agenda task in mode-line

My modeline shows a number of things - time, current line/column, current file, major mode, etc. It also shows the current clocked task in my agenda. However, the text is colorized in a very ...
0
votes
1answer
59 views

Show a checklist when capturing a task

I have a checklist to do when adding new tasks for myself in org-mode. I would like to see it when capturing a task via org-capture, but I don't want it to be among the text I am adding because I ...
1
vote
0answers
29 views

Org-capture prompt input method

Can I make it so that an org-capture prompt "%^{greek}" automatically switches the minibuffer input method to Greek?
0
votes
0answers
37 views

Newlines swallowed by org-capture

I irregularly see that org-capture has led to the disappearance of a newline, leaving me with lines like these * meeting w/ ch. <2017-12-01 Fri 11:00>* reading group <2017-10-09 Mon 16:15 +...
1
vote
1answer
43 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-...
0
votes
0answers
32 views

`clock-in` doesn't work with capture has `clock-keep` enabled if there's clock is running

I try to do clocking on every journal capture and keep the clock running. So I configure my capture template as below with org-mode 9.1.2 ("j" "Journal" entry (file+datetree my-journal-org) ...
0
votes
0answers
43 views

multiple `org-global-property` entries

im trying to add another org-global-property entry (i assume thats possible) but I didnt get completion for the second one in org capture templates. this is what i used: (setq org-global-properties '(...
1
vote
1answer
141 views

How to display only the pop-up capture frame

During (org-capture) invoked from any other app on OSX, Emacs displays the non-capture frame as well (behind the capture frame). Is there a way to get Emacs display the capture window only when (org-...
4
votes
1answer
1k 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 ...
3
votes
1answer
233 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 (<-...
1
vote
0answers
77 views

Automatically add properties based on tag in Org outlines

I'd like to be able to configure org to add properties based on specific tags which are used to describe the outline item. For instance, say we have a list item * user :person:student:. I'd like to ...
1
vote
1answer
78 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
222 views

In an org-capture template definition, how can I have dynamic insertion of content into the target element?

A complete org-capture template consists of six elements: keys, description, type, target, template, and properties. The manual explains how to use %-escapes to allow dynamic insertion of content into ...
1
vote
0answers
164 views

Scheduling/Refiling Trouble with org-gcal / org-agenda

I'm using org-gcal with org-agenda. Because org-gcal seems to strip entries of any TODO markers, I would like to create entries in my org-gcal synced file by using refile to copy over entries from my ...
0
votes
0answers
180 views

org-capture pass argument to template

I would like to write a function that scrapes the current buffer for any comments with the word "TODO" and runs org-capture, saving a link to that TODO comment in a file. The end goal would be sort ...
1
vote
2answers
304 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)(...
3
votes
1answer
148 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 ...
2
votes
1answer
265 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 ...
3
votes
1answer
205 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
280 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 ...
0
votes
2answers
433 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.
2
votes
1answer
204 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 ...