Commit graph

46 commits

Author SHA1 Message Date
John Wiegley
af65fbea63 :map no longer accepts lists; only eval-after-load if necessary
Fixes https://github.com/jwiegley/use-package/issues/324
2016-02-27 00:48:29 -08:00
John Wiegley
8e128b29f5 Merge pull request from ljos/master
Quote variable in bind-keys*
GitHub-reference: https://github.com/jwiegley/use-package/issues/325
2016-02-26 19:08:31 -05:00
John Wiegley
6ca19531bb Repair :map handling in bind-key.el
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/324
2016-02-26 16:06:58 -08:00
Bjarte Johansen
b0b5cfbfb2 Quote variable in `bind-keys*'
* bind-key.el (bind-keys*): `override-global-map' needs to be quoted so
  the symbol is passed to `bind-keys-form' and not the value.
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/323
2016-02-26 15:47:16 +00:00
John Wiegley
828563a756 Remove :bind-keymaps, and only apply :map bindings after load 2016-02-25 16:37:34 -08:00
John Wiegley
856e8ee245 Support multiples uses of :map with :bind
GitHub-reference: fixes https://github.com/jwiegley/use-package/issues/121
2016-02-25 15:57:50 -08:00
John Wiegley
4593f178e3 Merge pull request from alezost/keymap-doc-fix
Handle the case when keymap has a broken documentation
GitHub-reference: https://github.com/jwiegley/use-package/issues/223
2016-02-25 18:19:58 -05:00
Nicolas Dudebout
32748d0657 Upper casing Cs corresponding to Ctrl
A number of Cs corresponding to Ctrl have been lower cased in comments in eb6b81dfe.
2016-02-05 21:40:34 -05:00
John Wiegley
3ce3b3a98c Add a missing comma 2016-01-12 07:58:06 -08:00
John Wiegley
b4ec5abad2 Add a PREDICATE option to bind-key, and :filter to `bind-keys' 2016-01-11 22:38:31 -08:00
John Wiegley
ed2e85e4a7 Use cl-mapcan rather than apply 'nconc; thanks wasamasa 2015-12-20 14:39:46 -08:00
Alex Kost
d81390f6de Handle the case when keymap has a broken documentation 2015-06-22 19:43:55 +03:00
John Wiegley
348bc57141 unbind-key now removes key from personal-keybindings
Fixes https://github.com/jwiegley/use-package/issues/74
2015-03-21 04:13:02 -05:00
John Wiegley
47586c714e Fix file headers 2015-03-21 03:57:09 -05:00
John Wiegley
53bb14cfb7 Add autoload stanzas to bind-key
Fixes https://github.com/jwiegley/use-package/issues/33
2015-03-21 03:50:51 -05:00
John Wiegley
8c00f108bf Change use-package to use bind-keys and bind-keys*
Fixes https://github.com/jwiegley/use-package/issues/129
2015-03-21 03:46:26 -05:00
John Wiegley
012c37d722 Change bind-key* behavior to mimic bind-keys*
Fixes https://github.com/jwiegley/use-package/issues/148
2015-03-21 03:32:10 -05:00
John Wiegley
029e46a874 Whitespace cleanups 2015-03-21 03:30:52 -05:00
John Wiegley
eb6b81dfec Allow :map in bind-keys to accept multiple maps
Fixes https://github.com/jwiegley/use-package/issues/129
2015-03-21 03:30:04 -05:00
Noam Postavsky
f5f4102ca1 get-binding-description: return keymap symbol
instead of "#<keymap>".
2015-03-19 11:25:18 -04:00
Thiago Barroso Perrotta
7db9b920df fix small typo (key > keymap) 2015-01-02 13:58:49 -02:00
Sean Allred
5a5aeca797 Do not quote lambda expressions
http://emacs.stackexchange.com/a/3596

Quoting lambda expressions is at best redundant and at worst
detrimental; this commit removes all use of the sharp-quote to reduce
confusion.
2014-12-19 23:12:47 -05:00
Bernard Hurley
471869269a bind-keys macro changed to allow prefix map to have a menu string 2014-06-20 05:45:51 +01:00
Noam Postavsky
b3e96443ad bind-key: cleanup 2014-05-31 15:21:44 -04:00
Noam Postavsky
de9f6814e7 bind-key: no vector keys in personal-keybindings
describe-personal-keybindings requires the key sequences to be stored as
strings.
2014-05-31 15:03:58 -04:00
Noam Postavsky
91b439c8e7 personal-keybindings: add docstring
fix typo in bind-key docstring
2014-05-31 15:03:58 -04:00
Alex Kost
c4ebcaa953 Add bind-keys* macro 2014-05-25 17:33:20 +04:00
Nicolas Richard
9ca3690b59 * bind-key.el (bind-key): don't eval key-name at macro expansion time 2014-04-14 19:59:01 +02:00
Noam Postavsky
01196c81ac bind-keys: bind directly to prefix-map
instead of constructing equivalent key sequence by string concatenation.
This allows specifying vector key sequences, as in bind-key (since
f0776c2aeb).
2014-04-14 00:03:36 -04:00
Noam Postavsky
869ff53ab9 bind-keys: ,@(when map (list map)) => map
Omitting map is same as passing nil.
2014-04-14 00:03:35 -04:00
Noam Postavsky
053a1514a1 fix typo
Actually the reader accepts (list 'a'b) = (list 'a 'b); it still looks
wrong.
2014-04-14 00:02:48 -04:00
Noam Postavsky
f0776c2aeb let bind-key accept vectors, add docstring 2014-03-01 22:05:56 -05:00
John Wiegley
0f7d54d1db Merge pull request from Fuco1/variable-col-width
Add variable column width
GitHub-reference: https://github.com/jwiegley/use-package/issues/90
2014-02-18 16:36:18 -06:00
Matus Goljer
38d4d2e2da Add variable column width 2014-02-18 13:52:25 +01:00
Matus Goljer
f90d65e149 Add better descriptions for lambdas, closures, keymaps 2014-02-18 13:40:25 +01:00
Matus Goljer
7d0779114e Add bind-keys macro 2014-02-13 12:55:17 +01:00
Adam Spiers
58ca076647 stop describe-personal-keybindings adding trailing space
When emacs is configured to highlight trailing whitespace,
the *Personal Keybindings* buffer looked pretty ugly.
This fixes that.
2014-02-05 16:19:56 +00:00
Adam Spiers
21cabfd334 fix bind-key URL (fixes)
Also makes a start on https://github.com/jwiegley/use-package/issues/32.
GitHub-reference: https://github.com/jwiegley/use-package/issues/58
2014-01-06 17:24:30 +00:00
Adam Spiers
984850be80 hyperlink functions in Comments column
Previously, only the functions in the Command column were hyper-linked.
Also clarify the meaning of the "was" entries in the Comments column.
2014-01-04 13:00:23 +00:00
Noam Postavsky
9921a76e86 remove after-init-hook for override-global-mode
The INIT-VALUE argument to define-minor-mode is t, so it's enabled by
default.
2013-10-12 14:25:49 -04:00
Ting-Yu Lin
8de5c29ed5 Improve (describe-personal-keybindings) output
Create *Personal Keybindings* by with-output-to-temp-buffer. It
redirects standard output to the buffer and display it in help mode. So
we can get help mode keybindings such as "q" for free.

Quote the command-desc output so that it is made into a hyperlink.
2013-09-04 23:15:28 +08:00
Steve Purcell
a5859a7c8d Fix initial line to satisfy package.el 2013-07-28 09:45:06 +01:00
Jonas Bernoulli
17a1a4659a enforce use of spaces for indentation 2013-04-27 17:19:43 +02:00
Noam Postavsky
09b9ef3ae3 let bind-key* override minor modes with emulation-mode-map-alists 2013-04-13 18:24:52 -04:00
John Wiegley
bf6c23044b Fixed a typo in bind-key.el 2012-06-17 04:50:07 -05:00
John Wiegley
31ea42e15e README and other updates 2012-06-17 04:40:25 -05:00