aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2018-03-31 10:40:35 -0300
committerEuAndreh <eu@euandre.org>2018-03-31 10:40:35 -0300
commit8e6c5d6e2010e68f6ef8d212380383d6782bcf03 (patch)
treec2d0b4b859072e2fbf776adfb304d820161e21c2
parentAdd dom/a indentation rule (diff)
downloaddotfiles-8e6c5d6e2010e68f6ef8d212380383d6782bcf03.tar.gz
dotfiles-8e6c5d6e2010e68f6ef8d212380383d6782bcf03.tar.xz
Improve Clojure indentation configuration in spacemacs.el
-rw-r--r--spacemacs.el33
1 files changed, 18 insertions, 15 deletions
diff --git a/spacemacs.el b/spacemacs.el
index 6d532b1..48d5db0 100644
--- a/spacemacs.el
+++ b/spacemacs.el
@@ -457,28 +457,31 @@ It is called immediately after `dotspacemacs/init', before layer configuration
(confirmation-button 1)
(query 1)
(render 1)
- (view 1)
- (text 1)
- (touchable-highlight 1)
- (image 1)
- (scroll-view 1)
- (camera 1)
(initial-state 1)
(ident 1)
(query 1)
- (li 1)
- (ul 1)
- (div 1)
- (button 1)
- (a 1)
- (span 1)
- (svg 1)
- (options 1)
(for-all 1)
(fdef 1)
(action 1)
(as-user 3)
- (constraint-fn 1)))
+ (constraint-fn 1))
+
+ ;; dom/* indentation rules: React/Native helper fns
+ (define-clojure-indent
+ (view 'defun)
+ (text 'defun)
+ (touchable-highlight 'defun)
+ (image 'defun)
+ (scroll-view 'defun)
+ (camera 'defun)
+ (li 'defun)
+ (ul 'defun)
+ (div 'defun)
+ (button 'defun)
+ (a 'defun)
+ (span 'defun)
+ (svg 'defun)
+ (options 'defun)))
(defun midje-load-facts ()
"Load current namespace (or their test namespace) facts"