Hi Fabian,

Fabian Braennstroem <[EMAIL PROTECTED]> writes:

> is there a chance to create links from the marked files in a
> dired buffer using org-mode internal functions?

I already suggested something for this here:

  http://article.gmane.org/gmane.emacs.orgmode/4440

If you want to create a list of links from dired and copy this list to
the kill-ring, maybe you can use something like this as well:

(defun my-copy-dired-files-in-kill-ring ()
  "Copy files names in the kill ring."
  (interactive)
  (let ((files (dired-map-over-marks (dired-get-filename) nil)))
    (kill-new
     (mapconcat 
      (lambda (f) 
        (concat "[[file:" f "][" 
                (file-name-nondirectory f) "]]"))
      files "\n"))
    (message "%d Org links copied to the kill-ring" (length files))))

Does that help?

-- 
Bastien


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

Reply via email to