diff options
author | Luo Jinghua <sunmoon1997@gmail.com> | 2010-01-03 21:55:35 +0800 |
---|---|---|
committer | Luo Jinghua <sunmoon1997@gmail.com> | 2010-01-03 21:55:35 +0800 |
commit | 1d55022632c55d206a160211d69a01fa03707699 (patch) | |
tree | 7904d5f58ac6a2dd4e88f336108142a21c4f313a | |
parent | 378fb7d79ee418b01f36e5b2b76ec49597105872 (diff) |
emacs: random improvements
-rw-r--r-- | emacs | 25 |
1 files changed, 16 insertions, 9 deletions
@@ -1,3 +1,8 @@ +;; add my paths to load-path +(add-to-list 'load-path "~/.emacs.d/session") +(add-to-list 'load-path "~/.emacs.d/lisp") + +;; setup fontset (if window-system (progn ;; font setting @@ -8,7 +13,10 @@ ;; window positioning (setq default-frame-alist '((top . 0) (left . 0) (width . 160) (height . 40))))) +;; setup show startup message (setq inhibit-startup-message t) + +;; auto activate ecb (setq ecb-auto-activate t) (setq semantic-load-turn-useful-things-on t) @@ -42,14 +50,12 @@ ;;(setq font-lock-support-mode 'lazy-lock-mode) ;;(setq font-lock-maximum-decoration t) +;; setup keybinds (global-set-key [f5] 'ecb-activate) (global-set-key [f6] 'ecb-deactivate) (global-set-key [f9] 'compile) (global-set-key [f12] 'gdb) -(add-to-list 'load-path "~/.emacs.d/session") -(add-to-list 'load-path "~/.emacs.d/lisp") - ;;session (require 'session) (add-hook 'after-init-hook 'session-initialize) @@ -183,11 +189,16 @@ (require 'semantic-load) ;;(global-semantic-idle-completions-mode 1) -;;(load "xrefactory") - (require 'doxymacs) (add-hook 'c-mode-common-hook 'doxymacs-mode) +;; emacs +(add-to-list 'auto-mode-alist '("emacs" . lisp-mode)) + +;; scons +(add-to-list 'auto-mode-alist '("SConstruct" . python-mode)) +(add-to-list 'auto-mode-alist '("SConscript" . python-mode)) +(add-to-list 'interpreter-mode-alist '("python" . python-mode)) ;; Set the fill column to 70 for human text, and 80 for code. ;;(add-hook 'text-mode-hook '(lambda () (set-fill-column 70))) @@ -201,10 +212,6 @@ (require 'auto-complete-config) (require 'yasnippet) -(add-to-list 'auto-mode-alist '("SConstruct" . python-mode)) -(add-to-list 'auto-mode-alist '("SConscript" . python-mode)) -(add-to-list 'interpreter-mode-alist '("python" . python-mode)) - (global-auto-complete-mode t) (setq ac-auto-start 2) |