Created
November 20, 2012 09:20
-
-
Save magnars/4116916 to your computer and use it in GitHub Desktop.
Project specific settings in Emacs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-hook | |
'find-file-hook | |
(lambda () | |
(when (string-match-p "projects/my-project" (buffer-file-name)) | |
(setq js2-additional-externs '("my" "additional" "externs"))))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-hook | |
'find-file-hook | |
(lambda () | |
(when (string-match-p "projects/my-project" (buffer-file-name)) | |
(setq js2-additional-externs '("my" "additional" "externs"))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment