Permalink
Browse files

Tweaking for coffeescript mode

 * Set tab width
 * Add ems-code-modes-hook to coffee-mode
 * A bunch of other related modes added to required packages
  • Loading branch information...
1 parent d4b5cb7 commit a86bc0c24a5c364ebcf00809bc8dec2d7320ca09 Eric Schwartz committed Sep 20, 2012
Showing with 86 additions and 2 deletions.
  1. +3 −0 emacs-customizations.el
  2. +1 −1 init.d/01_packages.el
  3. +1 −0 init.d/code.el
  4. +2 −1 init.d/javascript.el
  5. +79 −0 tramp
View
@@ -3,10 +3,13 @@
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
+ '(coffee-tab-width 2)
'(custom-enabled-themes (quote (wheatgrass)))
'(ido-enable-flex-matching t)
'(ido-mode (quote both) nil (ido))
'(js-indent-level 2)
+ '(js2-basic-offset 2)
+ '(js2-bounce-indent-p t)
'(package-archives (quote (("gnu" . "http://elpa.gnu.org/packages/") ("marmalade" . "http://marmalade-repo.org/packages/") ("Tromey" . "http://tromey.com/elpa/"))))
'(scss-sass-command "bundle exec sass"))
(custom-set-faces
View
@@ -3,7 +3,7 @@
;; package loading stuff
(package-initialize)
(setq ems-required-packages
- (list 'xml-rpc 'magit 'gh 'textmate 'inf-ruby 'yaml-mode 'scss-mode 'ruby-compilation 'feature-mode 'coffee-mode 'js2-mode 'yasnippet 'rspec-mode))
+ (list 'xml-rpc 'magit 'gh 'textmate 'inf-ruby 'yaml-mode 'scss-mode 'ruby-compilation 'feature-mode 'coffee-mode 'js2-mode 'yasnippet 'rspec-mode 'mode-compile 'wrap-region 'rinari 'markdown-mode))
(dolist (package ems-required-packages)
(when (not (package-installed-p package))
(package-refresh-contents)
View
@@ -10,3 +10,4 @@
(add-to-list 'auto-mode-alist '("\\.js\\$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.js\\.erb$" . js2-mode))
(add-to-list 'auto-mode-alist '("\\.rake\\$". ruby-mode))
+(add-to-list 'auto-mode-alist '("\\.coffee\\$". coffee-mode))
View
@@ -1,3 +1,4 @@
(add-hook 'js-mode-hook
(lambda () (run-hooks 'ems-code-modes-hook)))
-
+(add-hook 'coffee-mode-hook
+ (lambda () (run-hooks 'ems-code-modes-hook)))
View
79 tramp
@@ -0,0 +1,79 @@
+;; -*- emacs-lisp -*- <12/08/07 16:22:42 /Users/eschwartz/.emacs24.d/tramp>
+;; Tramp connection history. Don't change this file.
+;; You can delete it, forcing Tramp to reapply the checks.
+
+((["scpc" "deploy" "10.154.81.82" nil]
+ ("uname" "Linux 2.6.32-24-server")
+ ("test" "test")
+ ("remote-path"
+ ("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"))
+ ("remote-shell" "/bin/sh")
+ ("stat" "\\stat")
+ ("file-exists" "test -e")
+ ("id" "/usr/bin/id")
+ ("gid-integer" 1001)
+ ("perl-file-spec" t)
+ ("perl-cwd-realpath" t)
+ ("perl" "\\perl")
+ ("readlink" "\\readlink")
+ ("local-encoding" base64-encode-region)
+ ("local-decoding" base64-decode-region)
+ ("remote-encoding" "base64")
+ ("remote-decoding" "base64 -d -i")
+ ("inline-compress" "gzip")
+ ("inline-decompress" "gzip -d"))
+ (["scpc" "deploy" "drone15" nil]
+ ("uname" "Linux 2.6.32-34-server")
+ ("test" "test")
+ ("remote-path"
+ ("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"))
+ ("remote-shell" "/bin/sh")
+ ("stat" "\\stat")
+ ("file-exists" "test -e")
+ ("id" "/usr/bin/id")
+ ("gid-integer" 1000)
+ ("perl-file-spec" t)
+ ("perl-cwd-realpath" t)
+ ("perl" "\\perl"))
+ (["scpc" "deploy" "192.168.107.183" nil]
+ ("uname" "Linux 2.6.32-34-server")
+ ("test" "test")
+ ("remote-path"
+ ("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"))
+ ("remote-shell" "/bin/sh")
+ ("stat" "\\stat")
+ ("file-exists" "test -e")
+ ("id" "/usr/bin/id")
+ ("gid-integer" 1000)
+ ("perl-file-spec" t)
+ ("perl-cwd-realpath" t)
+ ("perl" "\\perl")
+ ("readlink" "\\readlink")
+ ("local-encoding" base64-encode-region)
+ ("local-decoding" base64-decode-region)
+ ("remote-encoding" "base64")
+ ("remote-decoding" "base64 -d -i")
+ ("inline-compress" "gzip")
+ ("inline-decompress" "gzip -d"))
+ (["scpc" "deploy" "10.154.113.214" nil]
+ ("uname" "Linux 2.6.32-33-server")
+ ("test" "test")
+ ("remote-path"
+ ("/bin" "/usr/bin" "/usr/sbin" "/usr/local/bin"))
+ ("remote-shell" "/bin/sh")
+ ("stat" "\\stat")
+ ("file-exists" "test -e")
+ ("id" "/usr/bin/id")
+ ("gid-integer" 1001)
+ ("perl-file-spec" t)
+ ("perl-cwd-realpath" t)
+ ("perl" "\\perl")
+ ("readlink" "\\readlink")
+ ("local-encoding" base64-encode-region)
+ ("local-decoding" base64-decode-region)
+ ("remote-encoding" "base64")
+ ("remote-decoding" "base64 -d -i")
+ ("inline-compress" "gzip")
+ ("inline-decompress" "gzip -d")
+ ("ls" "/bin/ls --color=never")
+ ("ls-dired" t)))

0 comments on commit a86bc0c

Please sign in to comment.