From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: xmodmap keybinding for god-mode Date: Sun, 14 Dec 2014 19:06:26 -0800 (PST) Message-ID: <6d51d595-bdc1-4ad6-9f39-2ed149408c86@googlegroups.com> References: <7bfb6ea6-d79d-42f8-a94f-d246a1a7e3ff@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1418613031 15757 80.91.229.3 (15 Dec 2014 03:10:31 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Dec 2014 03:10:31 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Dec 15 04:10:26 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 1Y0M3B-0008A0-VO for geh-help-gnu-emacs@m.gmane.org; Mon, 15 Dec 2014 04:10:22 +0100 Original-Received: from localhost ([::1]:37789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y0M3B-0006bV-Et for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 22:10:21 -0500 X-Received: by 10.236.22.106 with SMTP id s70mr26704984yhs.7.1418612787556; Sun, 14 Dec 2014 19:06:27 -0800 (PST) X-Received: by 10.50.79.197 with SMTP id l5mr233234igx.17.1418612787357; Sun, 14 Dec 2014 19:06:27 -0800 (PST) Original-Path: usenet.stanford.edu!w8no7751981qac.0!news-out.google.com!jh1ni11937igb.0!nntp.google.com!h15no10230818igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.27.61; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.27.61 User-Agent: G2/1.0 Injection-Date: Mon, 15 Dec 2014 03:06:27 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209308 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:101588 Archived-At: On Monday, December 15, 2014 12:37:50 AM UTC+5:30, Steven Arntson wrote: > 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). Heh! On wikipedia a moron-army cleans out any useful stuff to reduce it to canonical form. On emacswiki no cleaning -- There are pages for emacs 20 !!