[Top][All Lists]

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

Re: mykie.el

From: Yuta Yamada
Subject: Re: mykie.el
Date: Mon, 06 Jan 2014 00:31:23 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Hello, mykie.el was updated recently to v0.1.1.
Let's me introduce little bit to advance discussion.

New version mykie can change order by each keybinds like this:

(setq mykie:use-lazy-order t) ; <- this is requirement
(mykie:set-keys nil ; <- nil means registering global-map
   :default '(message "hi")
   :C-u*2   '(message "howdy")
   :C-u     '(message "hello")
   :C-u*3   '(message "hey") ; <- you can't see
   :default '(message "hi")
   :C-u*3   '(message "howdy")
   :C-u     '(message "hello")
   :C-u*2   '(message "hey")) ; <- you can't see

As you can see above example is reverse part of :C-u*2 and :C-u*3.
This example is prior above :keyword and function pair without :default
when you set t to `mykie:use-lazy-order'.
So if you do this example, you can't execute C-0's :C-u*3 function and
C-1's :C-u*2 function.
Since mykie will execute :C-u's function.(:C-u*2 and :C-u*3 satisfy
:C-u's condition too)

This function can control order without conditional.
I don't know how many people like this future,
but I think it's easy to understand the function's structure.


P.S. new version is added :err, :C-u&err, :region&err that activate
function when current state have flymake or flycheck error too.

reply via email to

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