dotfiles/.emacs.d/snippets/emacs-lisp-mode/x-traverse_dir

7 lines
223 B
Plaintext
Raw Normal View History

2017-12-21 17:29:29 +01:00
#name: traversing a directory
#contributor: Xah Lee (XahLee.org)
# key: x-traverse_dir
# --
;; apply a function to all files in a dir
(require 'find-lisp)
(mapc 'my-process-file (find-lisp-find-files "~/myweb/" "\\.html$"))