给树莓派IIraspberrypi安装emacs+ecb+cedet+session+color-theme+cscope+linum
- Emacs 23.4.1,raspberrypi自带。
- cscope-15.7a,raspberrypi自带,但是没有cscope-indexer和xcscope.el,奇怪,可能只是raspberrypi是这样。
- cscope-15.8a,下载,只解压,然后把cscope-indexer加上执行权限然后复制到/usr/bin中,把xcsope.el复制到~/.emacs.d/lisp/。
- ecb-2.40,下载,这个没得选,解压后放到~/.emacs.d/lisp/ecb中。
- cedet-1.0.1,下载,不要用1.1,避免了还要修改ecb的版本检查,?解压后放到~/.emacs.d/lisp/cedet中。
- linum.el,下载最新的,放到~/.emacs.d/lisp/。?
- session.el,下载最新的,放到~/.emacs.d/lisp/。?
- ?color-theme.el,下载最新的,放到~/.emacs.d/lisp/。?
- session-2.3.a,下载,解压到~/.emacs.d/lisp/。
(setq default-major-mode ‘text-mode)
(global-font-lock-mode t)
(auto-image-file-mode t)
(transient-mark-mode t)
(show-paren-mode t)
(column-number-mode t)
(tool-bar-mode nil)
(setq-default make-backup-files nil)
(mouse-avoidance-mode ‘animate)
(autoload ‘auto-revert-mode "autorevert" nil t)
(autoload ‘turn-on-auto-revert-mode "autorevert" nil nil)
(autoload ‘global-auto-revert-mode "autorevert" nil t)
(require ‘session)
(require ‘linum)
(require ‘color-theme)
(load-file "~/.emacs.d/lisp/cedet/common/cedet.elc")
(global-ede-mode 1)
(ede-cpp-root-project "sensor_worker" :file "~/workspace/c/sensor_worker/Makefile")
(semantic-load-enable-code-helpers)
(global-srecode-minor-mode 1)
(interactive)
(if (looking-at "//>")
(hippie-expand nil)
(indent-for-tab-command)
)
‘(
senator-try-expand-semantic
try-expand-dabbrev
try-expand-dabbrev-visible
try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-expand-list
try-expand-list-all-buffers
try-expand-line
try-expand-line-all-buffers
try-complete-file-name-partially
try-complete-file-name
try-expand-whole-kill
)
(require ‘cc-mode)
(setq c-basic-offset 4)
(c-set-offset ‘inline-open 0)
(c-set-offset ‘friend ‘-)
(setq tab-width 4)
(setq indent-tabs-mode nil)
(setq tab-stop-list ‘(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80))
(define-key c-mode-base-map [(tab)] ‘my-indent-or-complete)
(define-key c-mode-base-map [(ctrl tab)] ‘semantic-ia-complete-symbol-menu)
(define-key c-mode-base-map [(f9)] ‘compile)
(setq c-macro-shrink-window-flag t)
(setq c-macro-preprocessor "cpp")
(setq c-macro-cppflags " ")
(setq c-macro-prompt-flag t)
(setq hs-minor-mode t)
(setq abbrev-mode t)
(c-set-style "user")
(hl-line-mode t)
(add-to-list ‘load-path "~/.emacs.d/lisp/ecb")
(require ‘ecb)
(global-set-key [f12] ‘ecb-activate)
(global-set-key [C-f12] ‘ecb-deactivate)
(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.
‘(ecb-options-version "2.40"))
(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.
)
给树莓派IIraspberrypi安装emacs+ecb+cedet+session+color-theme+cscope+linum,古老的榕树,5-wow.com
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。