By default, in which-key, descriptions that are longer than 27 characters are truncated, and .. is added. How can I prevent this eliding and show the beginning and end of a long function name?

1 Answer 1


There's a customizable variable you can set: which-key-max-description-length

Setting it to nil will prevent it from truncating.

From the describe-variable output:


Truncate the description of keys to this length. Also adds "..". If nil, disable any truncation.

(setq which-key-max-description-length nil)

image of long function name not truncated

  • I was aware of this option. However, it is not what I'm looking for. Dec 30, 2019 at 1:33
  • 1
    i think if you set it to nil it will not truncate at all, is that what you're looking for?
    – shoshin
    Dec 30, 2019 at 2:50
  • I want the function name to be shown like my-really-long..function-name. Dec 30, 2019 at 6:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.