我的EMACS配置

本文详细介绍了如何个性化配置Emacs工作环境,包括设置变量、调整界面、集成工具和插件,以提升开发效率。

(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)

转载于:https://www.cnblogs.com/Mingxx/archive/2013/01/14/2859270.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值