Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Good solution for Emacs key bindings in Xcode

So i'm using the solution that overwrites the DefaultKeyBindning.dict file provided by https://gist.github.com/smilingpoplar/1728384 to have some basic Emacs functionality in Xcode. However, C-x C-s does not work properly when trying to save. Mapping it in the Xcode preferences is also impossible as I am allowed either ^x or ^s but not both .

Does anyone have a better solution to Emacs emulation in Xcode or a way to get the save working via C-x C-s ?( which is in muscle memory now every time I want to save a change to the source I'm writing).

like image 953
octi Avatar asked Sep 26 '13 23:09

octi


People also ask

Does Xcode have Emacs?

Did you know that a subset of Emacs hotkeys is supported in Xcode? In fact, as far as I know, these hotkeys can be used throughout macOS making you, just that more productive.


1 Answers

Karabiner can allow you to do that. https://pqrs.org/osx/karabiner/

Input "control x prefix" in the search field and tick "Enable Control+X" like this.

Karabiner

like image 182
Shingo Fukuyama Avatar answered Sep 28 '22 18:09

Shingo Fukuyama