lang/org: fix +org:capture

This commit is contained in:
Henrik Lissner 2017-04-10 02:53:53 -04:00
parent 6c70662b3c
commit 0e4652c2fe

View file

@ -5,10 +5,9 @@
"Send a selection to `doom/org-capture'."
:move-point nil :type inclusive
(interactive "<r><!>")
(doom/org-capture
(if (and (evil-visual-state-p) beg end)
(buffer-substring beg end)
"")))
(org-capture-string
(when (and (evil-visual-state-p) beg end)
(buffer-substring beg end))))
;;;###autoload (autoload '+org:attach "lang/org/autoload/evil" nil t)
(evil-define-command +org:attach (&optional uri)