Skip to content

Instantly share code, notes, and snippets.

@volh
Created May 7, 2015 14:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save volh/8826e0302bd52db8f792 to your computer and use it in GitHub Desktop.
Save volh/8826e0302bd52db8f792 to your computer and use it in GitHub Desktop.
emacs global dir-locals ( per-directory settings )
(dir-locals-set-class-variables 'smallindent-directory
'((nil . ((web-mode-markup-indent-offset . 2)
(web-mode-css-indent-offset . 2)
(web-mode-code-indent-offset . 2)
(js-indent-level . 2)
(whitespace-mode . -1)
(coffee-tab-width . 2)
(js2-basic-offset . 2)
))))
(dir-locals-set-directory-class
"/path/to/project/dir" 'smallindent-directory)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment