Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-17 Thread Yasushi SHOJI
At Mon, 17 Feb 2014 10:43:48 +0100, Nicolas Richard wrote: > > Marc Ihm writes: > > (global-set-key (kbd "") (lambda () (interactive) (execute-kbd-macro > > (kbd "C-c a v" > > (global-set-key (kbd "") (kbd "C-c a v")) Ah, these are nice to know. Thanks, guys. -- yashi

Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-17 Thread Nicolas Richard
Marc Ihm writes: > (global-set-key (kbd "") (lambda () (interactive) (execute-kbd-macro > (kbd "C-c a v" (global-set-key (kbd "") (kbd "C-c a v")) might be a little easier to read and type. Explanation is : global-set-key can take any "command" as argument, and the definition of what a "com

Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-16 Thread Marc Ihm
Hi Yaushi, how about (global-set-key (kbd "") (lambda () (interactive) (execute-kbd-macro (kbd "C-c a v" ? best regards Marc P.s.: In my opinion, the name "execute-kbd-macro" of this builtin function is somewhat misleading; "replay-keys" describes this usage closer ... Am 15.02.2014 14

Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-16 Thread Yasushi SHOJI
Hi Thorsten, At Sat, 15 Feb 2014 18:34:07 +0100, Thorsten Jolitz wrote: > > so instead of binding the dispatcher function to a global key you can > bind one or more of the specific functions, e.g. > > , > | (global-set-key (kbd "") 'org-agenda-list

Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-15 Thread Thorsten Jolitz
Yasushi SHOJI writes: > Hi, > > On Feb 15, 2014 11:38 PM, "Thorsten Jolitz" wrote: >> >> ,--- >> | (global-set-key (kbd "") 'org-agenda) >> `--- > > Thanks, but that's still two keys away. I want a single key to call

Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-15 Thread Yasushi SHOJI
Hi, On Feb 15, 2014 11:38 PM, "Thorsten Jolitz" wrote: > >,--- >| (global-set-key (kbd "") 'org-agenda) >`--- Thanks, but that's still two keys away. I want a single key to call the function. Regards, --

Re: [O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-15 Thread Thorsten Jolitz
Yasushi SHOJI writes: > Hello, > > These days I hit `C-c a v' many many times a day, and now feel that > the three key combination is too much. I'd like to improve the > situation by binding the same functionality to a key, say, F12, if > possible. > > Looking at the `org-agenda' dispatch code, t

[O] simple way to call `C-c a v' or a way to bind it to a key?

2014-02-15 Thread Yasushi SHOJI
Hello, These days I hit `C-c a v' many many times a day, and now feel that the three key combination is too much. I'd like to improve the situation by binding the same functionality to a key, say, F12, if possible. Looking at the `org-agenda' dispatch code, there are quite a few lines before call