From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Aarno Newsgroups: gmane.emacs.help Subject: Re: Mapping alt to altgr Date: Tue, 07 Jun 2005 09:10:41 +0200 Organization: Dept of Numerical Analysis and Computer Science, KTH Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1118128410 5639 80.91.229.2 (7 Jun 2005 07:13:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Jun 2005 07:13:30 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jun 07 09:13:20 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DfYFw-0005gQ-04 for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2005 09:12:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DfYMN-0001D6-EG for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Jun 2005 03:18:51 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!ltu.se!luth.se!130.237.222.200.MISMATCH!inn.nada.kth.se!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: cvap70.nada.kth.se Original-X-Trace: inn.nada.kth.se 1118128241 11475 130.237.218.131 (7 Jun 2005 07:10:41 GMT) Original-X-Complaints-To: usenet@inn.nada.kth.se Original-NNTP-Posting-Date: Tue, 7 Jun 2005 07:10:41 +0000 (UTC) User-Agent: Mozilla Thunderbird 1.0 (X11/20041207) X-Accept-Language: en-us, en In-Reply-To: Original-Xref: shelby.stanford.edu gnu.emacs.help:131837 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:27304 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:27304 Thanks, now I use the following .xmodmaprc and it works in emacs too. clear mod2 clear mod1 keycode 237 = Mode_switch keycode 233 = Mode_switch add mod2 = Mode_switch add mod1 = Multi_key /Daniel Aarno Peter Dyballa wrote: > > Am 06.06.2005 um 17:44 schrieb Daniel Aarno: > >> mod1 >> mod2 Mode_switch (0xed), Alt_L (0xe9) >> mod3 Num_Lock (0x5a) >> mod4 Meta_L (0xea), Meta_R (0xee) >> > > This is a very bad layout: Mode_switch and Alt modifier are probably > related to each other as football and soccer. The one changes the > operating mode of the keyboard, the latter just selects another keysym > from the few which are assigned to a key (keycode 34 = 7 slash bar > backslash). > > I am sure Solaris 9 has xev, in former versions it was a bit hidden. > > I think you should just swap the two keys Mode_switch and Alt_L (which > should be renamed to Alt_R accordingly). You'll need the Mode_switch to > access the layers with diacritics. The syntax would be like: > > keycode = Mode_switch > keycode = Alt_R > > You can retrieve the keycodes without xev if xmodmap supports -pke. > > Please use clear to clean modifier settings. Clear and remove are > distinct. Clear only removes a setting from a modifier, so that it's now > empty, undefined, free for a new setting. Remove deletes a keysym from > the map, it's lost and cannot be re-used as a modifier. Consult 'man > xmodmap' and spend some time with it! > > -- > Greetings > > Pete > > War springs from unseen and generally insignificant causes. > -Anonymous > > >