Skip to content

Instantly share code, notes, and snippets.

@nil-ableton
Created March 18, 2017 07:49
Show Gist options
  • Save nil-ableton/c3c9483f7e42eeab813502a869edd31a to your computer and use it in GitHub Desktop.
Save nil-ableton/c3c9483f7e42eeab813502a869edd31a to your computer and use it in GitHub Desktop.
(require find-lisp)
(defun map-find (root-dir fn)
(dolist (filename (find-lisp-find-files root-dir ".*\\.\\(cpp\\|h\\)$"))
(with-current-buffer (find-file-noselect filename)
(apply fn)
(save-buffer)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment