Tuấn-Anh Nguyễn
a2bb124a3f
hydra.el (hydra-posframe-hide): Delay hiding hint when it makes sense
...
Fixes flickering on OSX.
Fixes #329
Fixes #330
7 years ago
Oleh Krehel
406988f6e9
hydra.el (hydra-posframe-show-params): Add
...
Fixes #328
7 years ago
Oleh Krehel
e94b39171a
hydra.el (hydra-posframe-show): Introduce a border
...
Makes the hint more distinct
7 years ago
Oleh Krehel
f27fce1b2f
hydra.el: Bump version
...
* doc/Changelog.org: Add.
7 years ago
Oleh Krehel
acb69859f3
hydra-test.el: Update tests for the last commit
7 years ago
Oleh Krehel
6842731f08
hydra.el (hydra-lv): Declare obsolete
...
If you want Hydra to use `message' instead of `lv-message' (the default):
(setq hydra-hint-display-type 'message)
If you want only a specific hydra to use `message':
(hydra-set-property 'hydra-test :verbosity 1)
Remember to add a delay if a head uses `message' too, otherwise the
hydra hint will erase it:
(defhydra hydra-test ()
("t" (progn
(message "time %S" (current-time))
(sit-for 0.8)) "test"))
Re #313
7 years ago
bmag
480ae63137
Declare dependency on separate lv package
7 years ago
Oleh Krehel
8e3698fb53
hydra-examples.el (hydra-rectangle): Change "p" to "x"
7 years ago
Oleh Krehel
d96180865c
hydra.el (hydra-hint-display-alist): Add
...
Fixes #317
7 years ago
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