all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Steven Arntson <steven@stevenarntson.com>
To: help-gnu-emacs@gnu.org
Subject: Re: xmodmap keybinding for god-mode
Date: Sun, 14 Dec 2014 11:07:13 -0800	[thread overview]
Message-ID: <878uiakq3i.fsf@stevenarntson.com> (raw)
In-Reply-To: 7bfb6ea6-d79d-42f8-a94f-d246a1a7e3ff@googlegroups.com

Rusi <rustompmody@gmail.com> 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




  reply	other threads:[~2014-12-14 19:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.15964.1418411122.1147.help-gnu-emacs@gnu.org>
2014-12-14  7:43 ` xmodmap keybinding for god-mode Rusi
2014-12-14 19:07   ` Steven Arntson [this message]
     [not found]   ` <mailman.16069.1418584068.1147.help-gnu-emacs@gnu.org>
2014-12-15  3:06     ` Rusi
2014-12-12 19:04 Steven Arntson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878uiakq3i.fsf@stevenarntson.com \
    --to=steven@stevenarntson.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.