Skip to content

Instantly share code, notes, and snippets.

@moea
Created July 23, 2014 17:52
Show Gist options
  • Save moea/9012088bc9b1c3b4d898 to your computer and use it in GitHub Desktop.
Save moea/9012088bc9b1c3b4d898 to your computer and use it in GitHub Desktop.
diff --git a/vendor/clojure.el b/vendor/clojure.el
index d9cfbd3..884cd66 100644
--- a/vendor/clojure.el
+++ b/vendor/clojure.el
@@ -13,3 +13,9 @@
(add-hook 'cider-repl-mode-hook 'subword-mode)
(add-hook 'cider-repl-mode-hook 'paredit-mode)
(add-hook 'cider-repl-mode-hook 'rainbow-delimiters-mode)
+
+(defun extend-indent ()
+ (put-clojure-indent 'match 1)
+ (put-clojure-indent 'and-let 1))
+
+(add-hook 'clojure-mode-hook 'extend-indent)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment