:x -> doom:scratch-buffer; :org -> doom:org-capture
This commit is contained in:
parent
a49c89ceba
commit
09f1b21b5b
3 changed files with 31 additions and 21 deletions
|
@ -357,5 +357,16 @@ re-align the table if necessary. (Necessary because org-mode has a
|
|||
(and (= (1+ (line-beginning-position)) me)
|
||||
(eq 32 (char-after me)))))
|
||||
|
||||
;;;###autoload (autoload 'doom:org-capture "defuns-org" nil t)
|
||||
(evil-define-operator doom:org-capture (&optional beg end bang)
|
||||
"Send a selection to `org-capture'."
|
||||
:move-point nil
|
||||
:type inclusive
|
||||
(interactive "<r><!>")
|
||||
(org-capture-string
|
||||
(if (and (evil-visual-state-p) beg end)
|
||||
(buffer-substring beg end)
|
||||
"")))
|
||||
|
||||
(provide 'defuns-org)
|
||||
;;; defuns-org.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue