|
From: | Bozhidar Batsov |
Subject: | Re: mykie.el |
Date: | Fri, 3 Jan 2014 23:37:16 +0200 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |