jerry的小窝jarodlau.blog.chinaunix.net
jarodlau
全部博文(156)
2010年(13)
2008年(39)
2007年(104)
aaaaa5aa
sanyujoj
cynthia
浪花小雨
Bsolar
仇一败
乐百事2
eva2021h
million
遗城浅落
分类:
2007-06-26 06:27:07
(require 'tramp)(defconst my-junk-buffer-name "Junk")(setq junk-buffer (get-buffer-create my-junk-buffer-name) )(require 'speedbar)(defconst my-speedbar-buffer-name "SPEEDBAR")(setq speedbar-buffer (get-buffer-create my-speedbar-buffer-name) speedbar-frame (selected-frame) dframe-attached-frame (selected-frame) speedbar-select-frame-method 'attached speedbar-verbosity-level 0 speedbar-last-selected-file nil)(setq right-window (split-window-horizontally 24))(setq left-window (frame-first-window));(walk-windows (lambda (w) (setq left-window w)) "nominibuffer" t)(set-buffer speedbar-buffer)(speedbar-mode)(speedbar-reconfigure-keymaps)(speedbar-update-contents)(speedbar-set-timer 1)(set-window-buffer left-window "SPEEDBAR")(set-window-dedicated-p left-window t)(toggle-read-only) ; HACK, REQUIRED for Tramp to work ????(select-window right-window)(defun select-right-window () (select-window right-window));(defun reset-window-config () (interactive); (walk-windows (lambda (w) (when (not (or (eq w left-window) (eq w right-window))) (delete-window w))) "nominibuffer" t); )(defun reset-window-config () (interactive) (delete-other-windows) (setq right-window (split-window-horizontally 24)) (setq left-window (frame-first-window)) (set-window-buffer left-window speedbar-buffer) (set-window-dedicated-p left-window t) (select-window right-window) (set-window-dedicated-p right-window nil) (when (eq speedbar-buffer (window-buffer right-window)) (set-window-buffer right-window (next-buffer))) (set-window-dedicated-p right-window nil) )(global-set-key "\C-x1" 'reset-window-config)
网上的一个效果,呵呵
上一篇:读核笔记--3--TAGS查看
下一篇:Linux启动过程综述
登录 注册