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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

is for capturing notes in Org mode with minimal interruption.

0
votes
1answer
12 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
19 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
9 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
18 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
23 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
64 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
41 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
46 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
16 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
1answer
197 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
139 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
128 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
219 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
137 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
83 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
2answers
209 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
159 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
32 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
38 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
32 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
67 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
32 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
57 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
29 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
54 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
26 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
33 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
36 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
26 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
39 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
119 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 ...
0
votes
0answers
106 views

Completion of multiple tags in org-capture using ivy, counsel, swiper

After installing ivy, counsel, and swiper, whenever I go to complete a tag in an org-capture, completion stops after completing a just one single tag (whereas previously I could continue adding and ...
2
votes
1answer
216 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 (<-...
0
votes
0answers
31 views

add additional tag (using %^G) to existing tag in org capture

i have this current capture (add-to-list 'org-capture-templates '("bb" "Work.TODO" entry (file+headline (concat pmm "/org/files/agenda/bgu.org") "TDEN") "* TODO %^G %? :@work: \n%^T" )) which ...
1
vote
0answers
69 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
69 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
193 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
127 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
161 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 ...
0
votes
1answer
237 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
131 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
253 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
185 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
218 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
371 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
154 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 ...
4
votes
1answer
444 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?
0
votes
0answers
75 views

Is it possible to use path expansion when specifying an org-capture template file?

I have a couple of larger org-capture templates that I store in separate files under .emacs.d. I can access the content of these templates like so: ("t" "TODO" entry (file (f-expand "todo.org" org-...
5
votes
1answer
4k 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 ....