Email: Takayama Fumihiko <tekezo@pqrs.org>

Emacs でも wicos.el で Screen みたいな仮想ウィンドウ

Emacs でも wicos.el で Screen みたいな仮想ウィンドウ

似た機能を持つものとして ElScreen というものもありますが wicos.el の利点はコンパクトな実装。

本家のものから更に機能を厳選してシンプルにしたものがコチラ。

wicos.el

設定など

.emacs.el に以下のような設定を加えると
  • 起動時に 6 枚のスクリーンを作る
  • C-] + c で新規スクリーンの作成
  • C-] + p, C-] + n でスクリーンの巡回
  • C-] + 1 〜 C-] + 6 で指定したスクリーンへ移動
といった動作が可能になります。
(load "wicos")
(setq wico-show-ml t)
(setq wico-show-numeric-ml t)
(add-hook 'desktop-after-read-hook
          '(lambda () (switch-to-buffer "*scratch*")))

(wico-create-new) ;1
(wico-create-new) ;2
(wico-create-new) ;3
(wico-create-new) ;4
(wico-create-new) ;5
(wico-jump-0)

(define-key wico-map "\C-]" 'wico-jump-recent)
(define-key my-keyjack-mode-map "\C-]" wico-map)
(define-key my-keyjack-mode-map [?\s-1] 'wico-jump-0)
(define-key my-keyjack-mode-map [?\s-3] 'wico-jump-2)
(define-key my-keyjack-mode-map [?\s-4] 'wico-jump-3)
(define-key my-keyjack-mode-map [?\s-5] 'wico-jump-4)
(define-key my-keyjack-mode-map [?\s-6] 'wico-jump-5)

Comments for This Page.
Date: 2007-07-22 22:01 (JST)