Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding js2-mode from github

  • Loading branch information...
commit 84fd2081b7be08a1f7146c36199314abddafbff0 1 parent 30a8037
@elgenie authored
View
3  .gitmodules
@@ -1,3 +1,6 @@
[submodule "eletuchy/external/color-theme-solarized"]
path = eletuchy/external/color-theme-solarized
url = https://github.com/sellout/emacs-color-theme-solarized.git
+[submodule "eletuchy/external/js2-mode"]
+ path = eletuchy/external/js2-mode
+ url = git://github.com/mooz/js2-mode
View
1  eletuchy.el
@@ -17,7 +17,6 @@
)
;; --------------------------------------------------------------------------------
-(load-theme 'wombat)
;; ... terminate whitespace with prejudice
;; (if (fboundp 'delete-trailing-whitespace)
View
3  eletuchy/bootstrap.sh
@@ -11,6 +11,3 @@ wget https://raw.github.com/stsquad/emacs_chrome/master/servers/edit-server.el
wget https://raw.github.com/djcb/elisp/master/themes/zenburn-theme.el
-git clone git://github.com/mooz/js2-mode/
-
-git clone git://github.com/sellout/emacs-color-theme-solarized.git
View
5 eletuchy/esk-d.el
@@ -14,11 +14,8 @@
(add-to-list 'auto-mode-alist '("\\.d$" . d-mode))
(add-to-list 'auto-mode-alist '("\\.di$" . d-mode))
-;; We never want to edit Rubinius bytecode
-(add-to-list 'completion-ignored-extensions ".rbc")
-
;; Not strictly necessary, since D is based on C, but whatever works
-(add-hook 'd-mode-hook 'run-coding-hook)
+(add-hook 'd-mode-hook 'esk-prog-mode-hook)
(provide 'esk-d)
;; esk-d.el ends here
1  eletuchy/external/js2-mode
@@ -0,0 +1 @@
+Subproject commit 504e1e38a8724fc2439f405f0aa8274b58db7b1b
View
16 eletuchy/programming.el
@@ -1,10 +1,10 @@
-(add-hook 'xml-mode-hook 'run-coding-hook)
-(add-hook 'java-mode-hook 'run-coding-hook)
+(add-hook 'xml-mode-hook 'esk-prog-mode-hook)
+(add-hook 'java-mode-hook 'esk-prog-mode-hook)
;; coding offsets
-(setq c-basic-offset 2 ;; indents should be 2
- py-basic-offset 4 ;; except for python (PEP8 4Life)
+(setq c-basic-offset 2 ;; indents should be 2
+ py-basic-offset 4 ;; except for python (PEP8 4Life)
)
;; line numbers for programming modes
@@ -12,8 +12,12 @@
(condition-case nil (linum-mode t)
(error nil)) ; can't use ignore-errors directly for some reason
)
-(add-hook 'coding-hook 'turn-on-line-numbers)
+(add-hook 'esk-prog-mode-hook 'turn-on-line-numbers)
-(add-hook 'coding-hook 'yas/minor-mode)
+(add-hook 'esk-prog-mode-hook 'yas/minor-mode)
+;; JavaScript2 mode
(autoload 'js2-mode "js2-mode" nil t)
+(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode))
+
+(add-hook 'js2-mode-hook 'esk-prog-mode-hook)
Please sign in to comment.
Something went wrong with that request. Please try again.