added about 10 elisp keywords. work in progress to add more.

This commit is contained in:
Xah Lee
2010-08-05 07:44:11 +00:00
parent 53d1d705d2
commit 6c35178715
22 changed files with 74 additions and 24 deletions

View File

@@ -0,0 +1,16 @@
#contributor: Xah Lee (XahLee.org)
#name: process marked files in dired
# --
;; idiom for processing a list of files in dired's marked files
;; suppose myProcessFile is your function that takes a file path
;; and do some processing on the file
(defun dired-myProcessFile ()
"apply myProcessFile function to marked files in dired."
(interactive)
(require 'dired)
(mapc 'myProcessFile (dired-get-marked-files))
)
;; to use it, type M-x dired-myProcessFile