Skip to content

Instantly share code, notes, and snippets.

@Ailrun
Created July 11, 2018 04:38
Show Gist options
  • Save Ailrun/b9812df5c4f704b1a38203e6adc15bbe to your computer and use it in GitHub Desktop.
Save Ailrun/b9812df5c4f704b1a38203e6adc15bbe to your computer and use it in GitHub Desktop.
((nil
(eval progn
(let
((base-path
(locate-dominating-file default-directory ".dir-locals.el")))
;; Custom backup path
;; Or you can set `make-backup-files` to `nil`.
(make-local-variable 'backup-directory-alist)
(add-to-list 'backup-directory-alist
`(".*" \,
(expand-file-name ".backup" base-path)))
;; Custom exec path
(make-local-variable 'exec-path)
(add-to-list 'exec-path
(expand-file-name "node_modules/.bin/" base-path))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment