Skip to content

Commit

Permalink
Adding new coding modes; turn on column-mode as well as linum-mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Schwartz committed Feb 29, 2012
1 parent b28ca5d commit 19ba2b8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
*~ *~
url/cookies
backup/ backup/
elpa/ elpa/
2 changes: 1 addition & 1 deletion init.d/01_packages.el
Expand Up @@ -3,7 +3,7 @@
;; package loading stuff ;; package loading stuff
(package-initialize) (package-initialize)
(setq ems-required-packages (setq ems-required-packages
(list 'xml-rpc 'magit 'gh 'textmate 'inf-ruby 'yaml-mode 'scss-mode 'ruby-compilation 'feature-mode 'coffee-mode)) (list 'xml-rpc 'magit 'gh 'textmate 'inf-ruby 'yaml-mode 'scss-mode 'ruby-compilation 'feature-mode 'coffee-mode 'js2-mode))
(dolist (package ems-required-packages) (dolist (package ems-required-packages)
(when (not (package-installed-p package)) (when (not (package-installed-p package))
(package-refresh-contents) (package-refresh-contents)
Expand Down
7 changes: 7 additions & 0 deletions init.d/code.el
Expand Up @@ -2,4 +2,11 @@
(add-hook 'ems-code-modes-hook (add-hook 'ems-code-modes-hook
(lambda () (lambda ()
(linum-mode 1) (linum-mode 1)
(column-mode)
(textmate-mode))) (textmate-mode)))

(require 'yaml-mode)
(add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode))
(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))
4 changes: 4 additions & 0 deletions init.d/editing.el
Expand Up @@ -2,3 +2,7 @@


(add-hook 'before-save-hook 'delete-trailing-whitespace) (add-hook 'before-save-hook 'delete-trailing-whitespace)
(setq-default indent-tabs-mode nil) (setq-default indent-tabs-mode nil)

(setq frame-title-format
'((buffer-file-name "%f" (dired-directory dired-directory "%b")) " - "
invocation-name "@" system-name))
15 changes: 0 additions & 15 deletions url/cookies

This file was deleted.

0 comments on commit 19ba2b8

Please sign in to comment.