Created
July 12, 2011 09:19
-
-
Save intinig/1077670 to your computer and use it in GitHub Desktop.
This file contains 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
(if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) | |
;; | |
;; This is the original stuff | |
;; | |
(add-to-list 'load-path "~/.emacs.d/vendor/") | |
;; sets the default font to menlo | |
(defun fontify-frame (frame) | |
(set-frame-parameter frame 'font "Menlo Regular-14")) | |
(fontify-frame nil) | |
(push 'fontify-frame after-make-frame-functions) | |
;; default window size | |
(setq default-frame-alist '((width . 105) (height . 40) )) | |
(custom-set-variables | |
'(inhibit-startup-screen t) | |
'(initial-buffer-choice nil)) | |
(custom-set-faces | |
'(linum ((t (:inherit (shadow default) :family "Inconsolata"))))) | |
;; activates forward delete on del key | |
(global-set-key [kp-delete] 'delete-char) | |
(setq exec-path (cons "/usr/local/bin" exec-path)) | |
(require 'uniquify) | |
(setq uniquify-buffer-name-style 'reverse) | |
(setq uniquify-separator "/") | |
(setq uniquify-after-kill-buffer-p t) ; rename after killing uniquified | |
(setq uniquify-ignore-buffers-re "^\\*") ; don't muck with special buffers | |
(autoload 'apache-mode "apache-mode" nil t) | |
(add-to-list 'auto-mode-alist '("\\.htaccess\\'" . apache-mode)) | |
(add-to-list 'auto-mode-alist '("httpd\\.conf\\'" . apache-mode)) | |
(add-to-list 'auto-mode-alist '("srm\\.conf\\'" . apache-mode)) | |
(add-to-list 'auto-mode-alist '("access\\.conf\\'" . apache-mode)) | |
(add-to-list 'auto-mode-alist '("sites-\\(available\\|enabled\\)/" . apache-mode)) | |
(autoload 'folding-mode "folding" "Folding mode" t) | |
(autoload 'turn-off-folding-mode "folding" "Folding mode" t) | |
(autoload 'turn-on-folding-mode "folding" "Folding mode" t) | |
(setq auto-mode-alist (cons '("Gemfile$" . ruby-mode) auto-mode-alist)) | |
(setq auto-mode-alist (cons '("Gemfile.lock$" . ruby-mode) auto-mode-alist)) | |
(add-to-list 'auto-mode-alist '("\\.rake$" . ruby-mode)) | |
(add-hook 'ruby-mode-hook (lambda () (local-set-key "\r" 'newline-and-indent))) | |
(require 'linum-off) | |
(global-linum-mode 1) | |
(require 'rvm) | |
(rvm-use-default) | |
(setq | |
backup-by-copying t ; don't clobber symlinks | |
backup-directory-alist | |
'(("." . "~/.emacs_backups")) ; don't litter my fs tree | |
delete-old-versions t | |
kept-new-versions 6 | |
kept-old-versions 2 | |
version-control t) ; use versioned backups | |
(setq backup-directory-alist | |
`((".*" . ,temporary-file-directory))) | |
(setq auto-save-file-name-transforms | |
`((".*" ,temporary-file-directory t))) | |
;; Here I start configuring it with el-get | |
(add-to-list 'load-path "~/.emacs.d/el-get/el-get") | |
(require 'el-get) | |
(setq el-get-sources | |
'(magit | |
autopair | |
color-theme | |
color-theme-solarized | |
gist | |
smooth-scrolling | |
twittering-mode | |
rainbow-mode | |
ruby-compilation | |
textmate | |
yaml-mode)) | |
(el-get 'sync el-get-sources) | |
;; Various after-el-get-configurations | |
(color-theme-solarized-light) | |
(setq twittering-use-master-password t) | |
(autopair-global-mode) | |
(rainbow-mode) | |
;; hack until I can make it work via el-get | |
(require 'peepopen) | |
(textmate-mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment