I was also intrigued by this package. Enhancing `global-set-key' in a similar manner might be a huge win (after all - there are only so many good keybindings available...). On 3 January 2014 22:09, Ted Zlatanov wrote: > I was intrigued by https://github.com/yuutayamada/mykie-el by Yato > Yamada (CC here). It's GPL v3. > > Here's an example of context-dependent usage: > > (mykie:global-set-key "C-j" > :default '(progn > (delete-trailing-whitespace) > (case major-mode > (org-mode (org-return-indent)) > (t (newline-and-indent)))) > :C-u&eolp '(fill-region (point-at-bol) (point-at-eol)) > :region 'query-replace-regexp) > > (many other keywords are available, e.g. :prog for activating only in > programming modes) > > I think it's worth considering either making this part of > `global-set-key' or at least putting mykie.el in the Emacs core. Unlike > most ELPA packages (GNU or otherwise), I think this one should be > available by default, like CUA. I don't know if Yamada-san wants to > assign copyright and sign the Emacs contributor papers, but I hope he > does. > > Ted > > >