[submodule "wgrep"]
path = packages/wgrep
url = https://github.com/mhayashi1120/Emacs-wgrep.git
+[submodule "cl-closure-template"]
+ path = packages/cl-closure-template
+ url = https://github.com/archimag/cl-closure-template.git
(awk-mode . "awk")
(other . "stroustrup")))
+(require 'closure-template-html-mode)
+(setq sgml-basic-offset 4)
+
(require 'coffee-mode)
(setq coffee-tab-width 4)
(setq js2r-prefered-quote-type 2)
(when (require 'tern nil 'noerror)
(add-hook 'js2-mode-hook (lambda () (tern-mode t))))
+(defun tern-project-dir ()
+ (or (and (equal tern-last-file-name (buffer-file-name)) tern-project-dir)
+ (and (not (buffer-file-name)) (setf tern-project-dir ""))
+ (setf tern-project-dir (locate-dominating-file default-directory ".git")))
+ ;; Track the file name to detect if it changed, which means the project
+ ;; directory needs to be found again.
+ (setf tern-last-file-name (buffer-file-name))
+ tern-project-dir)
+
(when (require 'ledger-mode nil 'noerror)
(add-to-list 'auto-mode-alist '("\\.ledger\\'" . ledger-mode))