Gesture mode: A gesture interface for Emacs

[Japanese | English]

Gesture mode is an minor mode to execute a mouse gesture action.

What's New

0.1.0 (7, Dec 2003)

Download

0.1.0

View source by ViewCVS

Install

Just put `gesture.el' and 'w3m-gesture.el' (after byte-compiling, if you want) on your load-path of Emacs.

Usage

Click the right button of the mouse and do the gesture. When you release the button, the action corresponds to the gesture is executed.

Setting

To turn on the gesture mode globally, set following.
(require 'gesture)
(global-gesture-mode)
Otherwise, if you want to turn on the gesture mode only in the specified major-mode, set like following.
(autoload 'turn-on-gesture-mode "gesture" nil t)
(add-hook 'xxx-mode-hook 'turn-on-gesture-mode)
There is a example gesture package for emacs-w3m. To use it, just do the following.
(require 'w3m-gesture)
Defining gesture action:
;; Globally bind the gesture.
(global-set-gesture "D" 'list-buffers)
;; Define gesture for a major-mode.
(define-gesture "U" 'xxx-mode 'command)
"U" means moving mouse cursor up.
"D" means moving mouse cursor down.
"R" means moving mouse cursor right.
"L" means moving mouse cursor left.
For example, "DRLU" means moving cursor Down-Right-Left-Up.

Known problems

  • Only tested on Emacs 21.3.50.

    Related Works

    `strokes mode' does the similar job, but is more complex since it is aimed for pictrographic editing.
    Yuuichi Teranishi<teranisi@gohome.org>