Yanghao Xie
e0e3282efa
hydra.el (hydra-hint-display-type): Add
...
Re #317
7 years ago
Oleh Krehel
9c4a4711bc
hydra.el (hydra-key-doc-function-default): Accept also sexp as doc
...
* hydra-test.el (hydra-column-sexp): Add test.
Fixes #304
7 years ago
Oleh Krehel
aa55bbd196
hydra.el (hydra--hint-from-matrix): Don't wrap with concat
7 years ago
Oleh Krehel
38a567fc5b
hydra.el (hydra--hint-from-matrix): Return a list
7 years ago
Oleh Krehel
1dab16cd2a
hydra.el (hydra--hint-from-matrix): Prep to return list
7 years ago
Oleh Krehel
f0745366ff
hydra.el (hydra--hint-from-matrix-1): Extract
7 years ago
Oleh Krehel
b7279c7c19
hydra.el (hydra--hint-row): Prep to return list
7 years ago
Oleh Krehel
3846e2728f
hydra.el (hydra-interpose): Extract
7 years ago
Oleh Krehel
16563fbc4c
hydra.el (hydra--hint-row): Extract
7 years ago
Oleh Krehel
1e423933a9
hydra.el: sexp hints are now supported for :columns
...
* hydra-test.el: Old tests have one less layer of '(concat ...) around
the docstring.
(hydra-format-10): Add test.
Fixes #304
Fixes #311
7 years ago
Oleh Krehel
67e454bf10
hydra.el (defhydra+): Update indent spec
...
Re #185
7 years ago
Oleh Krehel
9ca93bdffb
hydra.el (defhydra+): Add
...
* hydra-test.el (hydra-extend): Add test.
Fixes #185
7 years ago
Oleh Krehel
425f20e7ed
README.md: Link to :column code
...
Re #307
7 years ago
Oleh Krehel
05871dd6c8
hydra.el (defhydra): Document the :column feature
...
Fixes #307
7 years ago
Oleh Krehel
2ad0b01611
hydra.el (hydra--normalize-body): Fixup for Emacs24
7 years ago
Oleh Krehel
e01a79e4b7
hydra.el (defhydra): Declare "/params" and "/docstring"
...
* hydra-test.el: Update tests.
Re #185
7 years ago
duianto
ffff068d7f
Update readme.md, add repo name and melpa badges
7 years ago
Oleh Krehel
67098cc914
hydra.el (hydra--format): Add extra newline
...
* hydra-test.el (hydra-columns-2): Add test.
Fixes #306
7 years ago
Jonas Bernoulli
5c5b9ca326
Silence byte-compiler on Emacs 25
...
This variable first appears in Emacs 26.
7 years ago
Oleh Krehel
d071278fcc
hydra.el (hydra--format): Fix off-by-one
...
* hydra.el (hydra--hint): Don't add an extra newline.
* hydra-test.el (hydra-column-order): One newline less in expected string.
Also, re-indent the test code.
Fixes #303
7 years ago
Oleh Krehel
c30e04d3f6
lv.el (lv-window): Turn off display-line-numbers
...
Fixes #298
8 years ago
culot
44b42598ee
Fix Typos
...
Fixes #296
8 years ago
Oleh Krehel
87cc74b264
hydra.el (hydra--format): Make no docstring equivalent to :hint nil
...
* hydra.el (defhydra): When no docstring is given, set it to ""
instead of "hydra".
* hydra-test.el (hydra-column-order): Update test.
Fixes #291
8 years ago
Oleh Krehel
5b8f662992
hydra.el (hydra--format): Allow e.g. "M-?" in docstring
...
Fixes #286
8 years ago
Oleh Krehel
1e72f96a14
hydra.el (defhydra): Add :base-map option to body plist
...
* README.md: Update
Example:
(defhydra hydra-numbers (:base-map (make-sparse-keymap))
"test"
("0" (message "zero"))
("1" (message "one")))
Fixes #285
8 years ago
Oleh Krehel
62e0f37462
hydra-test.el: Fix tests for previous commit
...
Re #283
8 years ago
Justin Burkett
8119d82fe9
hydra.el (hydra--make-defun): require hydra
...
When a user compiles hydras in a personal config file, it may be the case that
hydra is available at compilation time but has not been loaded when the file is
reloaded.
8 years ago
Oleh Krehel
cf96140079
hydra-test.el: Regenerate tests for the last commit
...
Re #281
8 years ago
Oleh Krehel
462202d7fc
hydra.el (hydra--doc): Fixup
...
Re #281
8 years ago
Justin Burkett
03eeea324c
Make first line of hydra docstrings more informative.
...
Before this commit every head has the same first line for its docstring. The
distinguishing line is last. This change makes the distinguishing line appear
first in the docstring along with some minor wording changes.
For an application, see https://github.com/justbur/emacs-which-key/issues/185#issuecomment-361944776
* hydra.el (hydra--doc): Reword docstring.
(hydra--make-defun): Say which head is called in the first line.
8 years ago
wouter bolsterlee
1deed8a00e
fix typo in readme
8 years ago
Oleh Krehel
e228432bb6
hydra.el (hydra--hint-from-matrix): Adjust for "%" in key
...
Fixes #269
8 years ago
Oleh Krehel
49611c1509
hydra.el (hydra--generate-matrix): Refactor
8 years ago
Oleh Krehel
a23046b7d5
hydra.el (hydra--hint-from-matrix): Refactor
8 years ago
Oleh Krehel
6eaf10f52c
hydra-test.el (hydra-format-5): Fix failing test
8 years ago
Oleh Krehel
df3025f7e3
hydra.el (hydra-key-regex): Add "\\"
...
Fixes #257
9 years ago
Oleh Krehel
b12d37ac00
hydra.el (hydra--format): Detect macroexpand
...
When initiating `complete-symbol' while inside a `defhydra', a
`macroexpand' will be called by elisp-mode.el. This is problematic,
since macroexpand is being called on incomplete code.
Attempt to detect this. See `elisp--local-variables-completion-table',
`elisp--local-variables'.
Fixes #255
9 years ago
Oleh Krehel
b4fb3298cd
hydra.el (hydra--hint-heads-wocol): Ignore dynamic hints
...
Fixes #254
9 years ago
Joe Wreschnig
ab67b29835
Declare the third argument of `defhydra’ as a (potential) docstring.
...
This enables proper fontification of them within emacs-lisp-mode.
9 years ago
Oleh Krehel
943636fe4a
hydra.el: Bump version
9 years ago
David AMAR
38ce88a9c3
hydra.el : fix some docstring warning
9 years ago
David AMAR
02f29073e0
hydra.el (hydra--sort-heads): change ordering method of columns
...
The order was based upon the alphabetical order of the column name.
It is now done upon the order in which column name first appear in defhydra.
9 years ago
Oleh Krehel
36fb5e0149
hydra.el (defhydra): Use copy-tree on heads
...
Since HEADS arg will be modified by adding various properties, make a
deep copy of it (`copy-sequence' is not enough).
This solves the problem of using the same heads list for two different
hydras, in a macro or otherwise.
Fixes #230
9 years ago
David AMAR
2751f00c2c
Remove trailing whitespace from :column docstring
...
Table doctrings generated from :column algorithm no longer have trailing
whitespace
Test hydra-column-1 modified accordingly
Trimming whitespace in hydra-test.el no longer breaks non-regression
9 years ago
David AMAR
95008ea38b
hydra.el: Add automatic lookup for remaped cmd
...
* hydra-test.el (hydra-remap-lookup-1):
(hydra-remap-lookup-2): New tests.
* hydra.el (hydra-look-for-remap): New defcustom.
(hydra--call-interactively-remap-maybe): New defun.
(hydra--call-interactively): Update.
Fixes #222
Fixes #221
9 years ago
David AMAR
3db82e5f43
Implement named columns
...
This is a first rough implementation to gather early reviews
diff with code snippet from #147 :
- Dash dependencies removed
- slight refactoring
Add basic column integration test.
Fixes #220
9 years ago
Oleh Krehel
a72d68a0f6
hydra.el (hydra-fontify-head-default): Fix head keys as "%f"
...
Fixes #223
For example, this should work now:
(defhydra hydra-test ()
"test"
("%f" forward-char))
9 years ago
Oleh Krehel
dd5f703d52
hydra.el: Use error-message-string, not message
...
* hydra.el (hydra--make-defun): Update.
* hydra-test.el: Update tests.
Fixes #209
10 years ago
Oleh Krehel
a07b92a875
lv.el (lv-window): Rename to " *LV*"
...
No reason to have this buffer visible by default.
Re abo-abo/swiper#666
10 years ago
jasonm23
2ebf8624d5
Move Amaranth warning message to a defvar
10 years ago