Hacker News new | past | comments | ask | show | jobs | submit login

I actually use empty shift for parens, so comfy I almost feel guilty about it...



Figured 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!


That 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?


For 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/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 On GitHub https://github.com/tekezo/Karabiner

It's also pretty simple to extend Karabiner with XML scripts.




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact

Search: