[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Rebinding keys
From: |
Peter Münster |
Subject: |
Re: Rebinding keys |
Date: |
Mon, 25 Mar 2013 21:20:08 +0100 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.2 (gnu/linux) |
On Mon, Mar 25 2013, Nicolas Neuss wrote:
>> Why is (insert "]") more useful than "ä"?
>
> I often write English texts.
Thanks. So kind of "if LaTeX then English, else German".
(Be aware, that you'll need to change your habits when LaTeXing German
texts... ;)
If you ever need such special key-mappings outside of emacs, I recommend
xmodmap. For example, I use the following script for switching between
French and German:
--8<---------------cut here---------------start------------->8---
#!/bin/bash
# change between french and german keyboard
DIR=~/.fvwm
FLAG=$DIR/french
FRENCH=$DIR/Xmodmap.french
GERMAN=$DIR/Xmodmap.german
if [ "$1" = german ] || [ -f $FLAG -a -z "$1" ]; then
xmodmap $GERMAN
rm -f $FLAG
else
xmodmap $FRENCH
touch $FLAG
fi
--8<---------------cut here---------------end--------------->8---
--
Peter