相關資源‎ > ‎

emacs&cscope

 emacs cscope on ubuntu

sudo apt-get install emacs emacs-goodies-el cscope cscope-el

;;emacs setting
(setq cscope-do-not-update-database t)
(load-file "/usr/share/emacs/site-lisp/xcscope.el")
(require 'xcscope) 


;; multiple shell
(defun my-shell (arg)
(interactive "p")
(let ((arg (or arg 1)))
(shell (format "*sh%d*" arg))))

(global-unset-key (kbd "C-z"))
(global-set-key (kbd "C-z 1") '(lambda () (interactive) (my-shell 1)))
(global-set-key (kbd "C-z 2") '(lambda () (interactive) (my-shell 2)))
(global-set-key (kbd "C-z 3") '(lambda () (interactive) (my-shell 3)))
(global-set-key (kbd "C-z 4") '(lambda () (interactive) (my-shell 4)))
(global-set-key (kbd "C-z 5") '(lambda () (interactive) (my-shell 5)))
;;to solve shell ls --color problem
(autoload 'ansi-color-for-comint-mode-on "ansi-color" nil t)
(add-hook 'shell-mode-hook 'ansi-color-for-comint-mode-on)


;;for ubuntu install emacs-goodies-el. other systems download file color-theme.el
;; color-theme 
;;
(require 'color-theme) 
(color-theme-initialize)
(color-theme-robin-hood)



;;for ubuntu install emacs-goodies-el. other systems download file tabbar.el
;; tabbar
;;
(require 'tabbar) 
(tabbar-mode)
;(global-set-key (kbd "") 'tabbar-backward-group)
;(global-set-key (kbd "") 'tabbar-forward-group)
(global-set-key (kbd "C-`") 'tabbar-backward) ;切换TAB的快捷键
(global-set-key (kbd "C-") 'tabbar-forward)
;(set-face-attribute 'tabbar-default-face nil :family "Tahoma") ;设置tabbar字体



Modified from http://jwang3417.blogspot.tw/2011/01/emacs-cscope-on-ubuntu.html
Comments