emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: mykie.el


From: Bozhidar Batsov
Subject: Re: mykie.el
Date: Fri, 3 Jan 2014 23:37:16 +0200

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 <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]