restored yasnippet
This commit is contained in:
parent
ac01f235cc
commit
103dbcd8d0
573 changed files with 71124 additions and 0 deletions
17
vendor/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet
vendored
Executable file
17
vendor/yasnippet/snippets/emacs-lisp-mode/x-dired.process_marked.yasnippet
vendored
Executable file
|
@ -0,0 +1,17 @@
|
|||
# contributor: Xah Lee (XahLee.org)
|
||||
# name: process marked files in dired
|
||||
# key: x-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
|
Loading…
Add table
Add a link
Reference in a new issue