Created
April 9, 2015 01:59
-
-
Save sritchie/3f73bb6c6ab8efdcfaf5 to your computer and use it in GitHub Desktop.
add this to your .emacs to get nice indenting for Om methods (as defined by om-tools).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defvar om-methods | |
(list 'render | |
'render-state | |
'init-state | |
'will-mount | |
'should-update | |
'will-receive-props | |
'will-update | |
'display-name | |
'will-unmount) | |
"Methods that should receive sexy clojure indents.") | |
(dolist (v om-methods) | |
(put-clojure-indent v 'defun)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment