tails-*.el
Copyright © 2000-2002, TAGA Nayuta <nayuta@ganaware.jp> All rights reserved.

summary

tails-*.el は齊藤高明氏が開発した3つの emacs-lisp です。


documents

tails-comint-histrory.el
これは、shell-mode など M-pM-n でコマンドラインヒストリを遡ったりしたい時に便利なものです。
例えば、M-x shell として
% ls -l
total 12
-rw-r--r--   1 nayuta   student      1254 Sep 29 16:16 #index-j.html#
-rw-r--r--   1 nayuta   student       921 Sep 29 16:12 index-j.html
-rw-r--r--   1 nayuta   student       522 Sep 29 16:07 index-j.html~
lrwxrwxrwx   1 nayuta   student        13 Sep 29 16:11 index.html -> ../index.html
-rw-r--r--   1 nayuta   student      1925 Sep 29 16:10 tails-comint-histrory.el
-rw-r--r--   1 nayuta   student      1589 Sep 29 16:10 tails-history.el
-rw-r--r--   1 nayuta   student      2972 Sep 29 16:10 tails-mark.el
% date
1997年09月29日(月) 16時17分02秒 JST
% l
と入力したとします。この時点で M-p を入力すると、標準では
% date
となりますが、tails-comint-histrory.el を使っていれば
% ls -l
となってくれます。つまり最初の一文字が l であるようなヒストリを検索して表示してくれるわけです。
つかうには、~/.emacs(load-library "tails-comint-histrory") と書いておきます。

tails-history.el
前出の tails-comint-histrory.el と同じようなことをミニバッファでやってくれるものです。
例えば、
M-x forward-line
M-x backward-line
M-x f
と入力したとします。この時点で M-p を入力すると、標準ではミニバッファに
M-x backward-line
と表示されてしまいますが、tails-histrory.el を使っていれば
M-x forward-line
となってくれます。つまり最初の一文字が f であるようなヒストリを検索して表示してくれるわけです。
つかうには、~/.emacs(load-library "tails-histrory") と書いておきます。

tails-mark.el
これは、マーク位置に色をつけてくれるものです。使うには、~/.emacs
(if window-system
  (progn
    (load-library "tails-mark")
      (setq mark-face 'region)))
と書いておきます。mark-face は、マーク位置につけたい色で、ここでは region (マウスで文字の上をなぞった時につく色) と同じ色を指定しています。




GANAware
return to the top