7
7
; ; Created: December 10, 2019
8
8
; ; Keywords: org, convenience
9
9
; ; Package-Requires: ((emacs "25.1"))
10
- ; ; Version: 3.1.10
10
+ ; ; Version: 3.2.0
11
11
12
12
; ; This file is not part of GNU Emacs.
13
13
@@ -147,7 +147,7 @@ Its value is not stored between invocations to doct.")
147
147
(defvar doct-file-extension-keywords '(:datetree :function :headline :olp :regexp )
148
148
" Keywords that define the insertion location in the target file." )
149
149
150
- (defvar doct-exclusive-target-keywords '(:clock :file :function :id )
150
+ (defvar doct-exclusive-target-keywords '(:clock :file :function :id :here )
151
151
" Keywords that exclusively set the target location." )
152
152
153
153
(defvar doct-hook-keywords '(:after-finalize :before-finalize :hook :prepare-finalize )
@@ -173,6 +173,7 @@ Its value is not stored between invocations to doct.")
173
173
:disabled
174
174
:doct
175
175
:doct-name
176
+ :here
176
177
:inherited-keys
177
178
:keys
178
179
:type
@@ -378,6 +379,7 @@ If GROUP is non-nil, make sure there is no :keys value."
378
379
('nil
379
380
(signal 'doct-no-target `(, doct-exclusive-target-keywords nil , doct--current )))
380
381
(`(:clock , _ ) '(clock))
382
+ (`(:here , _ ) '(here))
381
383
(`(:id , id ) `(id ,(doct--type-check :id id '(stringp ))))
382
384
(`(:function , fn )
383
385
(if-let ((file (doct--get :file )))
@@ -924,6 +926,9 @@ The :file keyword is not necessary for these.
924
926
- :clock t
925
927
File to the currently clocked entry
926
928
929
+ - :here t
930
+ The position of point when `org-capture' is called
931
+
927
932
- :function (lambda () ;visit file and move point to desired location...)
928
933
This keyword is exclusive when used without the :file keyword.
929
934
It is responsible for finding the proper file and location to insert the
0 commit comments