Skip to content

Instantly share code, notes, and snippets.

@qxxt
Created August 4, 2023 14:19
Show Gist options
  • Save qxxt/0cafa9fda5c66d30b2e0ae3c27e05024 to your computer and use it in GitHub Desktop.
Save qxxt/0cafa9fda5c66d30b2e0ae3c27e05024 to your computer and use it in GitHub Desktop.
Automatically indent list of files and save them.
(let ((files (file-expand-wildcards "init-lisp/init-*.el")))
(mapc
(lambda (f)
(with-current-buffer (find-file-noselect f)
(indent-region (point-min) (point-max))
(save-buffer)))
files))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment