[Org] Update docstring for function capturing code snippets

This commit is contained in:
Daniel - 2018-08-18 16:32:30 +02:00
parent b6bb05eb3f
commit 67b1290088
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 2 additions and 1 deletions

View File

@ -738,7 +738,8 @@ _y_: ?y? year _q_: quit _L__l__c_: ?l?
;; from http://ul.io/nb/2018/04/30/better-code-snippets-with-org-capture/
(defun db/org-capture-code-snippet (filename)
"Format Org mode entry for capturing code at point in file FILENAMe."
"Format Org mode entry for capturing code in active region in
the buffer visiting FILENAME."
(with-current-buffer (find-buffer-visiting filename)
(let ((code-snippet (buffer-substring-no-properties (mark) (- (point) 1)))
(func-name (which-function))