1

I am using spacemacs and I am wondering how I can set TAB to Control Key inside of emacs only.

I have set TAB to CTRL on my laptop in the OS, but I want to use TAB in other applications. So, in only Emacs, I want to use TAB to be CTRL. How I can do that?

Gracjan Polak
  • 1,082
  • 6
  • 21
user11839
  • 11
  • 1

1 Answers1

0

For TAB to CTRL just in Emacs, install Karabiner and configure TAB key under emacs mode.

Then for CTRL in all apps, goto OSX system preferences, keyboard, modifier keys, and then change it as needed.

For other operating systems, look into similar utilities.

Updated: some solutions may require using both solutions together. For example, you can re-assign TAB to be become Left Control key in Karabiner and then in system preferences enable/disable that Ctrl key's behavior as needed. This is one way to tweak laptop keyboards besides using any extended fn keys.

Emacs User
  • 5,553
  • 18
  • 48
  • I don't see any option in system preferences → keyboard → modifier keys for changing the TAB key. Only caps lock, control, option, and command are listed. (OSX 10.11.4.) Do you have a modified prefence pane somehow, or are you on a different OS release? – Harald Hanche-Olsen Apr 29 '16 at 13:53
  • TAB is not a modifier key that's why you won't see there. I've clarified my response. – Emacs User Apr 29 '16 at 14:59