GNU bug report logs -
#7261
emacsclient ignores keyboard-translate in .emacs
Previous Next
Reported by: phillip.wood <at> talktalk.net
Date: Thu, 21 Oct 2010 14:30:04 UTC
Severity: normal
Tags: notabug
Done: Chong Yidong <cyd <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #11 received at 7261 <at> debbugs.gnu.org (full text, mbox):
phillip.wood <at> talktalk.net writes:
> ;; ; Make “C-t” act like “C-x”,
> ;; ; so it's easier to type on Dvorak layout
> (keyboard-translate ?\C-t ?\C-x)
> (keyboard-translate ?\C-x ?\C-t)
>
> If I start emacs normally then the keys are translated. If I start
> emacsclient with
>
> GDK_NATIVE_WINDOWS=1 emacsclient --alternate-editor="" -c
>
> Then the keys are not translated on startup, but I can translate them
> by opening my .emacs file and running eval-region
keyboard-translate only acts on the current terminal, since
keyboard-translate-table is a terminal-local variable. I will update
the docstring to make this clearer.
What you probably want is to do something like
(add-hook 'after-make-frame-functions
(lambda (f) (with-selected-frame f
(keyboard-translate ?\C-t ?\C-x))))
This bug report was last modified 13 years and 5 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.