xahlee / xah-fly-keys

the most efficient keybinding for emacs
http://xahlee.info/emacs/misc/xah-fly-keys.html
469 stars 80 forks source link

xah-fly-keys mode using emacsclient/server #153

Closed inuritdino closed 3 months ago

inuritdino commented 1 year ago

Hi,

I've found some misleading behaviour, once you use emacs server and connect to it via emacsclient -t (terminal) or emacsclient -c (GUI/standalone), the client opens with the mode indicator being c, however, the actual state is i and any keystroke produces the corresponding letter, and you can type in any text for as long as you like.

Current workaround is to hit the command-mode switch key (xah-fly-command-mode-activate) immediately after a new frame/terminal is opened. In this case, the indicator does not change, but in the background truly switches to the command mode. After this, everything works as expected.

Emacs version: GNU Emacs 27.2

ckeschnat commented 1 year ago

Does the section "Start in Command Mode When Emacs Daemon Starts" here solve your issue?

http://xahlee.info/emacs/misc/xah-fly-keys_customization.html

xahlee commented 3 months ago

closing this. because partly it's old, and partly it's a minor issue. emacs client is complex thing, have lots issues. i recommend not to use it. instead, setup your emacs so it doesn't have state, and can open multiple independent instances running at the same time.

xahlee commented 3 months ago

if any feel this is still bug, reopen or file new please.