Skip to content

Commit

Permalink
Nicer indentation for [quiescent.dom :as d]
Browse files Browse the repository at this point in the history
  • Loading branch information
magnars committed Feb 10, 2016
1 parent 6a72462 commit c6310c8
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion settings/setup-clojure-mode.el
Expand Up @@ -63,6 +63,31 @@

(require 'yesql-ghosts)

;; indent [quiescent.dom :as d] specially

(define-clojure-indent
(d/a 1)
(d/button 1)
(d/div 1)
(d/form 1)
(d/h1 1)
(d/h2 1)
(d/h3 1)
(d/h4 1)
(d/h5 1)
(d/hr 1)
(d/img 1)
(d/label 1)
(d/li 1)
(d/option 1)
(d/p 1)
(d/pre 1)
(d/select 1)
(d/small 1)
(d/span 1)
(d/strong 1)
(d/ul 1))

;; Indent and highlight more commands
(put-clojure-indent 'match 'defun)

Expand Down Expand Up @@ -116,7 +141,6 @@
(define-key clj-refactor-map
(cljr--key-pairs-with-modifier "C-s-" "xr") 'my-remove-all-focused)


;; Cycle between () {} []

(defun live-delete-and-extract-sexp ()
Expand Down

0 comments on commit c6310c8

Please sign in to comment.