summaryrefslogtreecommitdiff
path: root/.dir-locals.el
blob: 89ba72e4b5cfb2cc6dc652c6c4cb5a44d3b2bd4f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
((web-mode . ((eval . (auto-fill-mode -1))
              ;; editorconfig-mode sets web-mode-attr-indent-offset,
              ;; which disables attribute alignment (different than
              ;; editorconfig-mode's behavior with sgml-mode); unset
              ;; it.
              (web-mode-attr-indent-offset . nil)
              ;; for consistency with vue-mode, and for compatibility
              ;; with eslint's "indent" rule (since
              ;; eslint-plugin-vue's "vue/script-indent" rule is
              ;; crap).
              (web-mode-script-padding . 0)
              ;; turn off case-extra-offset, for consistency with js-mode
              (web-mode-indentation-params . (("lineup-args"       . t)
                                              ("lineup-calls"      . t)
                                              ("lineup-concats"    . t)
                                              ("lineup-quotes"     . t)
                                              ("lineup-ternary"    . t)
                                              ("case-extra-offset" . nil)))))
 (vue-mode . ((eval . (auto-fill-mode -1))
              ;; editorconfig-mode doesn't correctly set
              ;; js-indent-level, so we need to set it to match
              ;; tab-width.
              ;;
              ;; Unfortunately, there's no good way to say "set one
              ;; variable to match another variable".  We'd like to
              ;; set the js/css/sgml variables to all match whatever
              ;; tab-width is set to, but we can't do that.  So, we
              ;; set them all to the sane value of "8".
              (tab-width . 8)
              (js-indent-level . 8)
              (css-indent-offset . 8)
              (sgml-basic-offset . 8))))