justbur / emacs-which-key

Emacs package that displays available keybindings in popup
GNU General Public License v3.0
1.74k stars 87 forks source link

Which-key popup too small in emacsclient #306

Open abbec opened 3 years ago

abbec commented 3 years ago

The popup for which-key renders too small in emacsclient while it works fine in emacs:

which-key

emacsclient left and emacs right.

abbec commented 3 years ago

Note that I can only reproduce this when running emacs as a daemon (not with server-start).

justbur commented 3 years ago

Is this both through the gui or is one the terminal?

abbec commented 3 years ago

Gui on both

karthink commented 3 years ago

I can confirm this. Emacs 27.2.

adql commented 2 years ago

A workaround: instead of just enabling the mode in init.el use

(if (daemonp)
    (add-hook 'server-after-make-frame-hook 'which-key-mode)
  (which-key-mode))
andyhunne commented 2 years ago

You can mitigate the issues with fonts when running Emacs as a daemon by creating a custom function to configure your fonts, then calling it with:

'after-init-hook and 'server-after-make-frame-hook