|
发表于 2010-5-26 10:03:51
|
显示全部楼层
估计还是配置文件的问题(.emacs),和程序安装没什么大的关系。我贴个我这边能正常使用的配置,供你参考:
;;------------------------------------------------------------------------------------
;;配置cedet.el插件,设置C/C++环境
;;------------------------------------------------------------------------------------
(add-hook 'texinfo-mode-hook (lambda () (require 'sb-texinfo)))
(load-file "/home/zh/cedet/cedet.el")
;(semantic-load-enable-code-helpers)
(autoload 'speedbar-frame-mode "speedbar" " opup a speedbar frame" t)
(autoload 'speedbar-get-focus "speedbar" "Jump to speedbar frame" t)
(define-key-after (lookup-key global-map [menu-bar tools])
[speedbar]
'("Speedbar" .
speedbar-frame-mode)
[calendar])
;;------------------------------------------------------------------------------------
;;配置ecb插件,就是emacs code browser,就是个代码阅览器
;;------------------------------------------------------------------------------------
(add-to-list 'load-path "/usr/share/emacs/site-lisp/ecb")
(require 'ecb)
;;ecb设置
(require 'ecb-autoloads)
(setq ecb-auto-activate t
ecb-tip-of-the-day nil
inhibit-startup-message t
ecb-auto-compatibility-check nil
ecb-version-check nil)
(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)
'(display-time-mode t)
'(ecb-layout-window-sizes (quote (("left8" (0.20967741935483872 . 0.27586206896551724) (0.20967741935483872 . 0.2413793103448276) (0.20967741935483872 . 0.27586206896551724) (0.20967741935483872 . 0.1724137931034483)))))
'(ecb-primary-secondary-mouse-buttons (quote mouse-1--C-mouse-1))
'(show-paren-mode t)
'(transient-mark-mode t))
(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.
)
;;scroll other window
(global-set-key (kbd "C-c C-v") 'scroll-other-window)
(global-set-key (kbd "C-c C-b") 'scroll-other-window-down)
;;--------------------------------------------------------------------------------------- |
|