emacs-which-key icon indicating copy to clipboard operation
emacs-which-key copied to clipboard

Which-key popup too small in emacsclient

Open abbec opened this issue 3 years ago • 6 comments

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

which-key

emacsclient left and emacs right.

abbec avatar Jun 17 '21 21:06 abbec

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

abbec avatar Jun 17 '21 22:06 abbec

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

justbur avatar Jun 20 '21 02:06 justbur

Gui on both

abbec avatar Jun 20 '21 04:06 abbec

I can confirm this. Emacs 27.2.

karthink avatar Jul 13 '21 17:07 karthink

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))

adql avatar Nov 25 '21 15:11 adql

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

andyhunne avatar Sep 02 '22 00:09 andyhunne