Setting fn key as Ctrl on Emacs
I am having difficulty in using Ctrl key on emacs. Because, fn key resides in the Ctrl key's location on my new keyboard.
What should I do to map fn开发者_C百科 to Ctrl on emacs?
I believe this is controlled by the variable ns-function-modifier
, however, as I don't use a laptop I haven't had the opportunity to play around with it.
I guess that you should set it to something like:
(setq ns-function-modifier 'control)
There's a lovely new feature in EMACS 23 -- customize the group "ns" and you can set all the key mappings very conveniently.
The problem is not just for Emacs, but for the command line, too.
DoubleCommand. The solution I have been using for years is to install DoubleCommand. It is a free download and allows you to map any key to any other key. You do have to start it after logging out or shutting down, so I keep it on my Desktop.
MacOS Keyboard. In MacOS 13.1, They now allow you to map the function key to the control key. System Preferences > Keyboard > Keyboard Tab > Modifier Keys Button - and there it is.
精彩评论