Skip to content

Instantly share code, notes, and snippets.

@micha
Created February 20, 2019 22:00
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 micha/796b0a037343d429c61522e34ba3e438 to your computer and use it in GitHub Desktop.
Save micha/796b0a037343d429c61522e34ba3e438 to your computer and use it in GitHub Desktop.
augroup micha
autocmd!
autocmd BufNewFile,BufRead *.cljs.hl,*.boot set filetype=clojure
autocmd BufNewFile,BufRead *.html.hl set filetype=html
autocmd BufNewFile,BufRead *.md set filetype=markdown
autocmd BufWritePost ~/.vimrc so ~/.vimrc
autocmd FileType clojure setlocal lispwords+=doto->>,doto-when,eval,eval-str,page,cell-let,this-as,add-watch,do-watch,elem,alter-var-root,vary-meta,alter-meta!,task-when,specify!,GET,POST,pdoseq,ns+,loop-tpl,for-tpl,if-tpl,cond-tpl,when-tpl,case-tpl,doiter,formula-of,formulet,fdef
autocmd FileType clojure let g:clojure_fuzzy_indent_patterns = ['^with', '^def', '^let', '^-[a-zA-Z]']
autocmd FileType html setlocal foldmethod=indent
augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment