mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 19:07:52 +00:00
org-attach: Autoload org-attach-dired-to-subtree
* lisp/org-attach.el (org-attach-dired-to-subtree): Autoload. A code snippet in the manual suggests binding this command in dired-mode-map. Autoload it so that the snippet works without an implicit (require 'org-attach).
This commit is contained in:
parent
1a16155d99
commit
c6d37c6ebd
|
@ -588,6 +588,7 @@ This function is called by `org-archive-hook'. The option
|
||||||
;; (lambda ()
|
;; (lambda ()
|
||||||
;; (define-key dired-mode-map (kbd "C-c C-x a") #'org-attach-dired-to-subtree))))
|
;; (define-key dired-mode-map (kbd "C-c C-x a") #'org-attach-dired-to-subtree))))
|
||||||
|
|
||||||
|
;;;###autoload
|
||||||
(defun org-attach-dired-to-subtree (files)
|
(defun org-attach-dired-to-subtree (files)
|
||||||
"Attach FILES marked or current file in dired to subtree in other window.
|
"Attach FILES marked or current file in dired to subtree in other window.
|
||||||
Takes the method given in `org-attach-method' for the attach action.
|
Takes the method given in `org-attach-method' for the attach action.
|
||||||
|
|
Loading…
Reference in a new issue