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: xmodmap keybinding for god-mode Date: Fri, 12 Dec 2014 11:04:51 -0800 Message-ID: <87y4qclmek.fsf@stevenarntson.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1418411146 588 80.91.229.3 (12 Dec 2014 19:05:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Dec 2014 19:05:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Dec 12 20:05:39 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 1XzVX1-0001eh-Hl for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 20:05:39 +0100 Original-Received: from localhost ([::1]:59045 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzVX1-0003TT-3P for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Dec 2014 14:05:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54606) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzVWc-0003N1-3r for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 14:05:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XzVWU-0000p4-KX for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 14:05:14 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:57165) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XzVWU-0000lO-E0 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 14:05:06 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XzVWS-0000dj-P1 for help-gnu-emacs@gnu.org; Fri, 12 Dec 2014 20:05:04 +0100 Original-Received: from 71-35-124-152.tukw.qwest.net ([71.35.124.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2014 20:05:04 +0100 Original-Received: from steven by 71-35-124-152.tukw.qwest.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Dec 2014 20:05:04 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 71-35-124-152.tukw.qwest.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) Cancel-Lock: sha1:46UQFGV6KNLgbbkNF34Iy5S/sq0= 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:101550 Archived-At: 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