Skip to content

Instantly share code, notes, and snippets.

@ChrisBlom
Created June 6, 2018 07:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisBlom/c0a250b1c02c7aed738e421ab753eaf6 to your computer and use it in GitHub Desktop.
Save ChrisBlom/c0a250b1c02c7aed738e421ab753eaf6 to your computer and use it in GitHub Desktop.
(defun add-clj-format-before-save ()
(interactive)
(add-hook 'before-save-hook
'cider-format-buffer
t
t))
(add-hook 'clojure-mode-hook 'add-clj-format-before-save)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment