From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ted Zlatanov Newsgroups: gmane.emacs.devel Subject: mykie.el Date: Fri, 03 Jan 2014 15:09:46 -0500 Organization: =?utf-8?B?0KLQtdC+0LTQvtGAINCX0LvQsNGC0LDQvdC+0LI=?= @ Cienfuegos Message-ID: <87bnzshlo5.fsf@flea.lifelogs.com> Reply-To: emacs-devel@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1388779713 22218 80.91.229.3 (3 Jan 2014 20:08:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Jan 2014 20:08:33 +0000 (UTC) Cc: cokesboy@gmail.com To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 03 21:08:40 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VzB2t-0003ZP-KQ for ged-emacs-devel@m.gmane.org; Fri, 03 Jan 2014 21:08:39 +0100 Original-Received: from localhost ([::1]:51599 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzB2s-0001Wi-Vy for ged-emacs-devel@m.gmane.org; Fri, 03 Jan 2014 15:08:38 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40927) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzB2k-0001WP-P8 for emacs-devel@gnu.org; Fri, 03 Jan 2014 15:08:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VzB2e-0007Zk-7G for emacs-devel@gnu.org; Fri, 03 Jan 2014 15:08:30 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:47059) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VzB2e-0007ZY-0M for emacs-devel@gnu.org; Fri, 03 Jan 2014 15:08:24 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VzB2c-00039Y-0y for emacs-devel@gnu.org; Fri, 03 Jan 2014 21:08:22 +0100 Original-Received: from c-98-229-61-72.hsd1.ma.comcast.net ([98.229.61.72]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jan 2014 21:08:22 +0100 Original-Received: from tzz by c-98-229-61-72.hsd1.ma.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 03 Jan 2014 21:08:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-98-229-61-72.hsd1.ma.comcast.net X-Face: bd.DQ~'29fIs`T_%O%C\g%6jW)yi[zuz6; d4V0`@y-~$#3P_Ng{@m+e4o<4P'#(_GJQ%TT= D}[Ep*b!\e,fBZ'j_+#"Ps?s2!4H2-Y"sx" Mail-Copies-To: never User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:qhnlnfPh/ielQJHykBhRXSLIsVc= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:167218 Archived-At: 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