From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Arntson Newsgroups: gmane.emacs.help Subject: Re: xmodmap keybinding for god-mode Date: Sun, 14 Dec 2014 11:07:13 -0800 Message-ID: <878uiakq3i.fsf@stevenarntson.com> References: <7bfb6ea6-d79d-42f8-a94f-d246a1a7e3ff@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418584086 30738 80.91.229.3 (14 Dec 2014 19:08:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 19:08:06 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Dec 14 20:08:01 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Y0EWN-0005Sk-4N for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 20:07:59 +0100 Original-Received: from localhost ([::1]:36896 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0EWM-0002Y9-Bx for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 14:07:58 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49935) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0EW6-0002Y1-Af for help-gnu-emacs@gnu.org; Sun, 14 Dec 2014 14:07:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y0EW0-0000rr-OD for help-gnu-emacs@gnu.org; Sun, 14 Dec 2014 14:07:42 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:60464) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0EW0-0000rm-HS for help-gnu-emacs@gnu.org; Sun, 14 Dec 2014 14:07:36 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Y0EVx-0004aE-CL for help-gnu-emacs@gnu.org; Sun, 14 Dec 2014 20:07:33 +0100 Original-Received: from 174-24-224-136.tukw.qwest.net ([174.24.224.136]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Dec 2014 20:07:33 +0100 Original-Received: from steven by 174-24-224-136.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 14 Dec 2014 20:07:33 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 51 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 174-24-224-136.tukw.qwest.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:9QduKSub5TSRMpscPgwjZikswxg= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:101584 Archived-At: Rusi writes: > On Saturday, December 13, 2014 12:35:24 AM UTC+5:30, Steven Arntson wrote: >> This question is more about xmodmap than god-mode, but ... >> >> I'm starting to use god-mode and really enjoying it. There are some >> directions on the maintainer's website about remapping esc to caps_lock, >> for easier toggling of the mode, by writing a .xmodmap file, viz: >> >> | remove Lock = Caps_Lock >> | keysym Caps_Lock = Escape >> >> I saved that to my ~/ and then from eshell I ran: >> >> | xmodmap .xmodmap >> >> And everything worked as it should. However, it doesn't keep working >> that way. The rebinding turns itself off if the computer goes to sleep >> for awhile, or if I restart. Is there a way to make that rebinding >> permanent? I'm running Ubuntu 14.04 and Emacs 24.4.1. >> >> Thank you! >> Steven > > xmodmap is considered obsolete (or at least obsolescent) > > setxkbmap is more current. > > However more window-manager specific stuff is probably best > Does this help? > http://www.emacswiki.org/emacs/MovingTheCtrlKey Emacswiki can be frustrating when there are so many outdated comments (I see my current xmodmap approach there, for instance). However, you led me in the right direction! I ran into some instructions on askubuntu.com that directed me to enter this: | dconf write /org/gnome/desktop/input-sources/xkb-options | "['caps:escape']" And it seems to have worked perfectly. Here's the whole thread, for anyone interested: http://askubuntu.com/questions/363346/how-to-permanently-switch-caps-lock-and-esc I'll post this to the god-mode maintainer's page also, in case it's useful there. Best! steven