When I run emacs24 on the console the Fn key on both my Lenovo laptops sets the selection mark (in the same way as
C-SPC). That's pretty crazy behavior as I need the Fn key to change screen brightness, sound volume etc.
How do I unbind the Fn key so it doesn't do anything in emacs?
If I press
C-h k Fn in emacs I get exactly the same output as if pressing
C-h k C-SPC:
C-@ runs the command set-mark-command, which is an interactive compiledLisp function. It is bound to C-@, C-SPC. (set-mark-command ARG) ...
If I run acpi_listen and press the Fn key I get the output:
This is the exact same output I get from acpi_listen if I press
C-@ (Ctrl+AltGr+2). That is: they're all registered as the same acpi event.
Discovering that, I've tried to unset
C-@. The only way I've got it working is with this:
(global-set-key (kbd "\C-@") 'ignore)
(global-set-key (kbd "\^@") 'ignore)
In both instances that prevents
C-SPC from working too(!) I've tried re-setting
(global-set-key (kbd "C-SPC") 'set-mark-command)
But that doesn't take effect.
After this I can refine my question to this:
Fn are registered as the same acpi event can I make emacs distinguish between them?
(Note that this is only a problem in the console. Emacs doesn't pick up the Fn key on my X machine ...)