- ãã㯠Emacs ã®ãã¿ããã©ã¦ã¶åã(tabbar.el) + ãååçµäºæã®ãããã¡ç¶æ
復å
ã(revive.el) ã®è¨å®ãä¸è¬ã¦ã¼ã¶ã§è¡ã£ãéã®ä½æ¥ã¡ã¢ã§ã
- åä½ç¢ºèªæ¸ã®ç°å¢
è¨å®å¾ã®è¦ãç®ã¨æä½
- ã¿ã表示
- ã¿ãé¸æ: ãã¦ã¹ã¯ãªãã¯ï¼Ctrl-Tabï¼Ctrl-Shift-Tab
- 表示ã»é表示ã®å¤æ´: F4
- ãããã¡ç¶æ
復å
- ç¶æ
復å
: Ctrl-x F
- ç¶æ
ä¿å: Ctrl-x S ã¾ã㯠Emacs çµäºæ
ã¿ãã表示ãã(tabbar.el)
$ tar -xvzf tabbar-1.3.tar.gz
- è¨å®
- ~/.emacs.my.el ã«ä»¥ä¸ã®è¨å®ã追è¨ãã
- ã¿ããã°ã«ã¼ãåããªã
- scratch buffer ã¯ã¿ããé表示ã«ãã
- ã¿ãã®è²ãå¤æ´
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;
; tabbar-mode: ãããã¡ä¸é¨ã«ã¿ãã表示ãã
;
; - åèãã¼ã¸
; -- EmacsWiki - Tab Bar Mode:
; http://www.emacswiki.org/cgi-bin/wiki/TabBarMode
; -- è¦ãç®ã®å¤æ´ - Amit's Thoughts: Emacs: buffer tabs:
; http://amitp.blogspot.com/2007/04/emacs-buffer-tabs.html
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; scratch buffer 以å¤ãã¾ã¨ãã¦ã¿ãã«è¡¨ç¤ºãã
(require 'cl) ; for emacs-22.0.50 on Vine Linux 4.2
(when (require 'tabbar nil t)
(setq tabbar-buffer-groups-function
(lambda (b) (list "All Buffers")))
(setq tabbar-buffer-list-function
(lambda ()
(remove-if
(lambda(buffer)
(find (aref (buffer-name buffer) 0) " *"))
(buffer-list))))
(tabbar-mode))
;; Ctrl-Tab, Ctrl-Shift-Tab ã§ã¿ããåãæ¿ãã
(dolist (func '(tabbar-mode tabbar-forward-tab tabbar-forward-group tabbar-backward-tab tabbar-backward-group))
(autoload func "tabbar" "Tabs at the top of buffers and easy control-tab navigation"))
(defmacro defun-prefix-alt (name on-no-prefix on-prefix &optional do-always)
`(defun ,name (arg)
(interactive "P")
,do-always
(if (equal nil arg)
,on-no-prefix
,on-prefix)))
(defun-prefix-alt shk-tabbar-next (tabbar-forward-tab) (tabbar-forward-group) (tabbar-mode 1))
(defun-prefix-alt shk-tabbar-prev (tabbar-backward-tab) (tabbar-backward-group) (tabbar-mode 1))
(global-set-key [(control tab)] 'shk-tabbar-next)
(global-set-key [(control shift tab)] 'shk-tabbar-prev)
;; å¤è¦³å¤æ´
(set-face-attribute
'tabbar-default-face nil
:background "gray60")
(set-face-attribute
'tabbar-unselected-face nil
:background "gray85"
:foreground "gray30"
:box nil)
(set-face-attribute
'tabbar-selected-face nil
:background "#f2f2f6"
:foreground "black"
:box nil)
(set-face-attribute
'tabbar-button-face nil
:box '(:line-width 1 :color "gray72" :style released-button))
(set-face-attribute
'tabbar-separator-face nil
:height 0.7)
;; F4 㧠tabbar-mode
(global-set-key [f4] 'tabbar-mode)
ååçµäºæã®ãããã¡ç¶æ
ã復å
ãã(revive.el)
$ wget http://www.gentei.org/~yuuji/software/revive.el
- è¨å®
- ~/.emacs.my.el ã«ä»¥ä¸ã®è¨å®ã追è¨ãã
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; revive.el: buffer ç¶æ
ã®ä¿åã»å¾©å
;
; - åèãã¼ã¸
; -- Emacs ã§ååçµäºæã®ãããã¡(å
¨ã¦)ã復å
ããã - Hasta Pronto.org:
; http://www.hasta-pronto.org/archives/2008/01/30-0235.php
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(autoload 'save-current-configuration "revive" "Save status" t)
(autoload 'resume "revive" "Resume Emacs" t)
(autoload 'wipe "revive" "Wipe emacs" t)
(define-key ctl-x-map "S" 'save-current-configuration) ; C-x S ã§ç¶æ
ä¿å
(define-key ctl-x-map "F" 'resume) ; C-x F ã§å¾©å
(add-hook 'kill-emacs-hook 'save-current-configuration) ; çµäºæã«ç¶æ
ä¿å
åä½ç¢ºèª
- Emacs ã§ããã¤ããã¡ã¤ã«ãéãã¦çµäºãã
- Emacs ãèµ·åãã
- Ctrl-x F ã§ãããã¡ç¶æ
ã復å
ãããã¨ã確èªãã
- ã¿ãã表示ããããã¨ã確èªãã