Add bin/org-capture script

This commit is contained in:
Henrik Lissner 2017-04-22 01:49:44 -04:00
parent b47b951a41
commit 05b01a431d
2 changed files with 37 additions and 1 deletions

View file

@ -1,3 +1,11 @@
;;; lang/org/autoload/capture.el
;;;###autoload
(defun +org-capture (&optional key string)
"Initializes the current frame as a pop-up `org-capture' frame."
(interactive)
(let ((key (or key "n"))
(string (unless (string-empty-p string) string)))
(if string
(org-capture-string string key)
(org-capture nil key))))