Last active
October 13, 2015 01:27
-
-
Save zampino/4117359 to your computer and use it in GitHub Desktop.
emcs main config @mneme
This file contains hidden or 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
(global-auto-revert-mode 1) | |
(menu-bar-mode -1) | |
(tool-bar-mode -1) | |
(scroll-bar-mode -1) | |
(global-linum-mode t) | |
;; KEY BINDINGS | |
(global-set-key [s-right] 'next-multiframe-window) | |
(global-set-key [s-left] 'previous-multiframe-window) | |
(global-set-key (kbd "s-o") 'find-file) | |
(global-set-key (kbd "s-n") 'new-frame) | |
(global-set-key (kbd "s-d") 'delete-frame) | |
;; LOAD MODULES | |
(add-to-list 'load-path "/home/andrea/dev/devolute/emacs-configs/niklas-.emacs.d/rails/") | |
(load "/home/andrea/dev/devolute/emacs-configs/niklas-.emacs.d/rails/rails.el") | |
;; (load "/home/andrea/.emacs.d/coffee-mode/coffee-mode.el") | |
(add-to-list 'load-path "/home/andrea/.emacs.d/") | |
(add-to-list 'load-path "/home/andrea/emacs/") | |
(load "/home/andrea/emacs/js2-mode/js2-mode.elc") | |
(autoload 'js2-mode "js2-mode" nil t) | |
(add-to-list 'auto-mode-alist '("\\.js$" . js2-mode)) | |
(require 'haml-mode) | |
(require 'yaml-mode) | |
(add-to-list 'auto-mode-alist '("[.]zcml$" . xml-mode)) | |
(add-to-list 'auto-mode-alist '("[.]haml$" . haml-mode)) | |
(add-to-list 'auto-mode-alist '("[.]yml$" . yaml-mode)) | |
(invert-face 'default) | |
;; Coffe Hooks | |
(defun coffee-custom () | |
"coffee-mode-hook" | |
;; CoffeeScript uses two spaces. | |
(make-local-variable 'tab-width) | |
(set 'tab-width 2)) | |
(add-hook 'coffee-mode-hook 'coffee-custom) | |
(custom-set-variables | |
;; custom-set-variables was added by Custom. | |
;; 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. | |
'(js2-basic-offset 2) | |
'(js2-bounce-indent-p t) | |
'(safe-local-variable-values (quote ((encoding . utf-8))))) | |
(custom-set-faces | |
;; custom-set-faces was added by Custom. | |
;; 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. | |
'(default ((t (:inherit nil :stipple nil :background "black" :foreground "white" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 100 :width normal :foundry "unknown" :family "DejaVu Sans Mono"))))) | |
(put 'downcase-region 'disabled nil) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment