On Sun, 9 Feb 2014 23:54:47 -0800
Victor Soich <[email protected]> wrote:

> Dear PLUG,
> 
> I'm trying to follow the instructions to swap my caps lock key and my
> crtl key as recommended by the web site effective-emacs, for the
> purpose of being an effective emacs user.  The instructions are at
> 
> https://sites.google.com/site/steveyegge2/effective-emacs
> 
> I think I did everything according to the directions.  When I invoke
> emacs from the command line, it doesn't seem to have changed anything,
> i.e. when I hit caps lock, my text is in capitals.  I expected it to
> act as the ctrl key.  I tried logging out.  I think I have xfce on
> debian.  I don't know if that makes a difference.  I logged back in
> through a dialog box.  I tried shutting down the laptop completely,
> and rebooting.  Did I miss a step?  Furthermore, and for bonus, please
> allay my angst over not being able to follow linux directions!!

Victor -

I followed the same instructions and also had the same instructions -
and had the same problem. My solution was to create two files the
first is the the .xmodmap file similar to yours (although note that I
switched the Meta/Alt key with the CapsLock, works better for me)

!
! Bind Caps_Lock to Meta_L
!
keycode 66 = Caps_Lock
remove lock = Caps_Lock
keysym Caps_Lock = Meta_L

The second script, which I added after experiencing your problem is
"kbsetup". This gets called on start-up:

#!/bin/bash
sleep 3
/usr/bin/xmodmap /home/jessv/.xmodmap

I found that on start-up, it seems another process sets the keyboard
mapping back to its "default" state - hence the "sleep 3". The "sleep
3" command inserts a delay, which makes sure that the keyboard mapping
you want happens after anything that messes with the mapping is
done. Not the most elegant solution, but it works on the Debian xfce
setup I have. On xfce, I set the "kbsetup" script to run on start up
by going adding it to the "Application Startup" list in "Settings->
Setting Manager->Session and Startup".

As a side note - If your using debian, would encourage you to download
the emacs24 source and build it yourself. It has a nice package
management system simplifies the process of installing and updating
packages. You can make it work in emacs23, but it's included in
24. More info here: http://www.emacswiki.org/emacs/ELPA

Good luck.
- Jess
_______________________________________________
PLUG mailing list
[email protected]
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to