Thread View: fj.editor.mule
2 messages
2 total messages
Started by oota toshiya
Thu, 13 May 1999 00:00
How to change Ctr-X to other all mode
Author: oota toshiya
Date: Thu, 13 May 1999 00:00
Date: Thu, 13 May 1999 00:00
18 lines
1659 bytes
1659 bytes
太田@NECです。 emacs/mule では、ctr-xとかctr-cをprefixとして使っていますが、 この機能を、すべてのモードで(あとから loadingするものも含めて)、 他のキーに変更する事は可能でしょうか。 global-set-key で変更すれば、fundamentalなどは変更が出来ますが、 他の、後からロードするemacs lisp などで、 ctr-x ctr-c なんて 定義があると、うまくいかないのです。 つまり、emacs-lisp中に ctr-x があると、無条件に他のキーに 読み替えてしまう、という機能を実現したいのですが、このような 事は可能でしょうか。 ---- NEC 第一コンピュータ事業本部 コンピュータ事業部 技術管理部 太田 俊哉 府中市 東京都 日本国 地球 太陽系 (current elmME+ JP patch ver=0.44) (samba-jp ML maintener/mutt-jp ML server maintener)
Re: How to change Ctr-X to other all mode
Author: SAKAI Kiyotaka
Date: Fri, 14 May 1999 00:00
Date: Fri, 14 May 1999 00:00
28 lines
1913 bytes
1913 bytes
>> In article <7he22i$j2c$1@cadup.com1.fc.nec.co.jp>, oota@pes.com1.fc.nec.co.jp (oota toshiya) writes:
> emacs/mule では、ctr-xとかctr-cをprefixとして使っていますが、
> この機能を、すべてのモードで(あとから loadingするものも含めて)、
> 他のキーに変更する事は可能でしょうか。
^H キーと DEL キーを入れ替えるプログラムである term/keyswap.el には以
下のコードが書かれていますが、同じように keyboard-translate-table を使っ
て設定すれば可能です。
(let ((the-table (make-string 128 0)))
(let ((i 0))
(while (< i 128)
(aset the-table i i)
(setq i (1+ i))))
;; Swap ^H and DEL
(aset the-table ?\177 ?\^h)
(aset the-table ?\^h ?\177)
(setq keyboard-translate-table the-table))
C-x に別のコマンドを割り当てるのではなく、特定のキーを C-x とみなすだ
けでいいのであれば、
(keyboard-translate ?\C-o ?\C-x)
とする方法もあります。
--
酒井 清隆 (E-mail: ksakai@kso.netwk.ntt-at.co.jp)
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads