🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fj.editor.emacs
Article #681

C-,とC-.への割り当て

#681
From: HIROSE, Masaaki
Date: Wed, 18 Feb 2004 13:12
18 lines
1878 bytes
ひろせといいます

Emacs 21.3 と (2004-02-15頃の) 21.3.50 を使っています。

C-, と C-. に関数を割り当てようと、~/.emacs に

(global-set-key [?\C-,] '(lambda() (interactive) (scroll-down 1)))
(global-set-key [?\C-.] '(lambda() (interactive) (scroll-up   1)))

と書きました。

X な emacs だと期待通りの挙動なのですが、emacs -nw だと C-, を押すと『,』
が、C-. を押すと『.』が入力されてしまいます。ターミナルの中の emacs
で C-, と C-. に関数を割り当てるのにはどうすればよいのでしょうか? 何か
情報をお持ちでしたらよろしくおねがいします。

-- 
ひろせ
Technical Details
Message-ID: <yf1n07gedk6.wl%hirose31@t3.rim.or.jp>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!Q.T.Honey!nf.asahi-net.or.jp!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Japanese,JIS
X-Google-Thread: ff358,1fa89b68c55cd738,start
X-Google-Attributes: gidff358,public
X-Google-ArrivalTime: 2004-02-18 05:13:02 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!Q.T.Honey!nf.asahi-net.or.jp!not-for-mail
Date: Wed, 18 Feb 2004 22:12:57 +0900
Message-ID: <yf1n07gedk6.wl%hirose31@t3.rim.or.jp>
From: "HIROSE, Masaaki" <hirose31@t3.rim.or.jp>
Newsgroups: fj.editor.emacs
Subject: C-,とC-.への割り当て
User-Agent: Wanderlust/2.11.24 (Wonderwall) SEMI/1.14.6
 (丸岡) LIMIT/1.14.8
 (土師の里) APEL/10.6 Emacs/21.3.50
 (i686-gentoo-linux-gnu) MULE/5.0 (賢木)
X-PGP-Pubkey: <URL:http://www.t3.rim.or.jp/~hirose31/pubkey.txt>
MIME-Version: 1.0 (generated by SEMI 1.14.6 - "丸岡")
Content-Type: text/plain; charset=ISO-2022-JP
Lines: 19
NNTP-Posting-Host: d244195.ppp.asahi-net.or.jp
X-Trace: 1077109980 news2.asahi-net.or.jp 19839 210.253.244.195
X-Complaints-To: ap-net@asahi-net.or.jp