6 ms·
I actually use empty shift for parens, so comfy I almost feel guilty about it...
by malloryerik 11y ago
I actually use empty shift for parens, so comfy I almost feel guilty about it...
- disease 11y agoThat sounds like something I'd like to try. Mind sharing the code from your init file that does this - assuming you are doing this in Emacs?
- malloryerik 11y agoFor this remapping and a few others I'm using Karabiner for OSX. I remap elisp commands in emacs all the time, but I don't know how to remap the keybinding for the single SHIFT to parens. The answer might be here: https://www.gnu.org/software/emacs/manual/html_node/elisp/Changing-Key-Bindings.html https://www.gnu.org/software/emacs/manual/html_node/elisp/Ch... Karabiner is pretty good though, and you can select certain keybindings to only work in emacs. I've also remapped CONTROL to CAPS LOCK, a more common re-binding to save one's left-hand from endless torture and mutilation! Karabiner https://pqrs.org/osx/karabiner/index.html.en https://pqrs.org/osx/karabiner/index.html.en On GitHub https://github.com/tekezo/Karabiner https://github.com/tekezo/Karabiner It's also pretty simple to extend Karabiner with XML scripts.
- disease 11y agoFigured it out myself. Couldn't find a way to map single presses of the Shift key in emacs, but I was able to do this using AutoHotKey in Windows: LShift UP::Send, ( RShift UP::Send, ) LShift & F13:: RShift & F13:: As a Clojure and JavaScript dev I think I am going to like this mapping quite a bit, so thanks for the tip!