(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.
'(column-number-mode t)
'(inhibit-startup-screen t)
'(text-mode-hook (quote (text-mode-hook-identify))))
(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.
)
(setq-default c-basic-offset "linux"
c-basic-offset 4)
(setq indent-tabs-mode nil)
(setq default-tab-width 4)
(setq tab-width 4)
(set-language-environment 'Chinese-GB)
;;chinese
(set-fontset-font "fontset-default"
'unicode '("微软雅黑" . "unicode-bmp"))
(setq column-number-mode t)
(setq line-number-mode t)
(setq frame-title-format "emacs@%b")
(global-font-lock-mode t) ;show file name
(show-paren-mode t) ;
(setq show-paren-style 'parenthese)
;;linum
(require 'linum)
(setq linum-mode t)
(global-linum-mode 1)
(add-to-list 'load-path "d:/Tool/emacs-23.1/.emacs.d")
(require 'auto-complete-config)
(add-to-list 'ac-dictionary-directories "d:/Tool/emacs-23.1/.emacs.d/ac-dict")
(ac-config-default)
;;yasnippet plugins
(add-to-list 'load-path "D:/Tool/emacs-23.1/.emacs.d/yasnippet-0.6.1c")
(require 'yasnippet)
(yas/initialize)
(yas/load-directory "~/.emacs.d/yasnippet-0.6.1c/snippets")
(autoload #'espresso-mode "espresso" "Start espresso-mode" t)
(add-to-list 'auto-mode-alist '("\\.js$" . espresso-mode))
(add-to-list 'auto-mode-alist '("\\.json$" . espresso-mode))
(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-exec "pymacs" nil t)
(autoload 'pymacs-load "pymacs" nil t)
(autoload 'pymacs-autoload "pymacs")
;;cedet
(add-to-list 'load-path "~/.emacs.d/cedet-1.0/common")
(add-to-list 'load-path "~/.emacs.d/cedet-1.0/contrib")
(require 'cedet)
(require 'semantic-ia)
(global-ede-mode 1) ; Enable the Project management system
(semantic-load-enable-code-helpers) ; Eanble prototype help and smart completion
(global-srecode-minor-mode 1) ; Enable template inserton menu
(require 'semantic-tag-folding nil 'noerror)
(global-semantic-folding-mode 1)
(global-set-key [f12] 'semantic-ia-fast-jump)
;;ecb
(add-to-list 'load-path "~/.emacs.d/ecb-2.40")
(require 'ecb)
(setq ecb-tip-of-the-day nil)
(define-key global-map [(control f6)] 'ecb-hide-ecb-windows)