I want to bind the function evil-normal-state to the windows key on my keyboard. How do I do that? Also is there a way to bind the Fn key to other functions?

I am using Emacs 26.1 on a Linux-Mint system.

1 Answer 1


On my system, the Windows key is intercepted by the desktop manager, so Emacs doesn't see it. As for the Fn key, C-h c says that Emacs sees this key as <XF86WakeUp>; so, for example, I could bind it to execute-extended-command with:

(global-set-key (kbd "<XF86WakeUp>") 'execute-extended-command)

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.