Hi to both, thanks for your help ...
Bastien schrieb am 11/27/2007 02:47 PM: > 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? Works great! I was thinking about it , but just in python ;-) Greetings! _______________________________________________ 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