Skip to content
  • Topics
  • Contact
  • Search
  • Random
  • Footer

Sacha Chua

« Wireless wondersHipster PDA: Waste of paper? »

Emacs snippet for pmwiki attachments

Jun 16, 2005| emacs
(defun sacha/dired-marked-images-as-attach ()
  "Return a list of images ready to be inserted into a pmwiki page."
  (interactive)
  (kill-new (mapconcat
             (lambda (item)
               (concat "Attach:" (file-name-nondirectory item)))
             (dired-get-marked-files)
             "\n")))
You can e-mail me at sacha@sachachua.com.
More posts about emacs
« Wireless wondersHipster PDA: Waste of paper? »
  • Home
  • About
  • Topics
  • Archives
  • Privacy
  • Contact
  • Subscribe
  • RSS feed
  • Blogroll
  • Random
  • Sketches

Email - Mastodon - Github

Copyright © 2001-2024 Sacha Chua (sacha@sachachua.com). Emacs code snippets are generally under GPLv3+; other snippets are dual-licensed under the MIT License or GPLv3+ unless otherwise indicated. Please feel free to reuse or share stuff under a Creative Commons Attribution license unless otherwise noted. Thanks for reading!