Created
August 7, 2013 08:33
-
-
Save kikyous/6172282 to your computer and use it in GitHub Desktop.
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
| ;;配置路径 | |
| (add-to-list 'load-path "~/.emacs.d") | |
| (add-to-list 'load-path "~/.emacs.d/evil") | |
| (add-to-list 'load-path "~/.emacs.d/auto-complete") | |
| (add-to-list 'custom-theme-load-path "~/.emacs.d/themes") | |
| ;;摘掉菜单,工具栏和滚动条 | |
| ;;M-` or F10 菜单唤出热键 | |
| ;; (if (fboundp 'menu-bar-mode) (menu-bar-mode -1)) | |
| (if (fboundp 'tool-bar-mode) (tool-bar-mode -1)) | |
| (if (fboundp 'scroll-bar-mode) (scroll-bar-mode -1)) | |
| ;;不显示起始提示信息(包括scratch) | |
| (setq inhibit-startup-message t) | |
| (setq initial-scratch-message nil) | |
| ;;对文件不进行备份 | |
| (setq-default make-backup-files nil) | |
| ;;自动提示配对的括号 | |
| (show-paren-mode 1) | |
| (setq show-paren-delay 0) | |
| (setq-default indent-tabs-mode nil) ; always replace tabs with spaces | |
| (setq-default tab-width 2) ; set tab width to 4 for all buffers | |
| (require 'package) | |
| (add-to-list 'package-archives | |
| '("melpa" . "http://melpa.milkbox.net/packages/") t) | |
| (setq evil-shift-width 2) | |
| (setq evil-default-cursor t) | |
| (require 'evil) | |
| (evil-mode 1) | |
| (global-set-key (kbd "RET") 'newline-and-indent) | |
| (evil-add-hjkl-bindings magit-branch-manager-mode-map 'emacs | |
| "K" 'magit-discard-item | |
| "L" 'magit-key-mode-popup-logging) | |
| (evil-add-hjkl-bindings magit-status-mode-map 'emacs | |
| "K" 'magit-discard-item | |
| "l" 'magit-key-mode-popup-logging | |
| "h" 'magit-toggle-diff-refine-hunk) | |
| (global-set-key (kbd "C-c g") 'magit-status) | |
| (define-key evil-normal-state-map "o" (kbd "A ")) | |
| (require 'ido) | |
| (ido-mode t) | |
| (setq ido-enable-prefix nil | |
| ido-enable-flex-matching t | |
| ido-create-new-buffer 'always | |
| ido-use-filename-at-point 'guess | |
| ido-max-prospects 10) | |
| (require 'tree-mode) | |
| (require 'windata) | |
| (require 'dirtree) | |
| (require 'powerline) | |
| (require 'highlight-indentation) | |
| (load-theme 'tango t) | |
| (require 'auto-complete-config) | |
| (add-to-list 'ac-dictionary-directories "~/.emacs.d/ac-dict") | |
| (ac-config-default) | |
| (setq ac-auto-start 2) | |
| (setq ac-auto-show-menu 0) | |
| (require 'slim-mode) | |
| (require 'coffee-mode) | |
| (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 (:family "Ubuntu Mono" :foundry "unknown" :slant normal :weight normal :height 143 :width normal))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment