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: Sat, 13 Dec 2014 23:43:06 -0800 (PST) Message-ID: <7bfb6ea6-d79d-42f8-a94f-d246a1a7e3ff@googlegroups.com> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1418543125 26047 80.91.229.3 (14 Dec 2014 07:45:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 14 Dec 2014 07:45:25 +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 08:45:20 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 1Y03ri-0007cb-Pq for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 08:45:18 +0100 Original-Received: from localhost ([::1]:35248 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y03ri-0004AS-DE for geh-help-gnu-emacs@m.gmane.org; Sun, 14 Dec 2014 02:45:18 -0500 X-Received: by 10.236.3.72 with SMTP id 48mr20416631yhg.28.1418542986975; Sat, 13 Dec 2014 23:43:06 -0800 (PST) X-Received: by 10.50.43.199 with SMTP id y7mr188494igl.3.1418542986776; Sat, 13 Dec 2014 23:43:06 -0800 (PST) Original-Path: usenet.stanford.edu!s7no6784729qap.1!news-out.google.com!jh1ni11954igb.0!nntp.google.com!h15no20084688igd.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.13.190; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.13.190 User-Agent: G2/1.0 Injection-Date: Sun, 14 Dec 2014 07:43:06 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209283 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:101563 Archived-At: 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