1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-04 04:52:10 -08:00
Commit graph

94 commits

Author SHA1 Message Date
justbur
0e564fc2f5 Add config setup functions and more
Fix a problem where the frame-height was not accouting for the
minibuffer. Also, set the buffer to hidden-mode-line-mode to hide the
mode-line for now (#16).
2015-07-08 22:18:02 -04:00
justbur
e63acf1e5d Update readme 2015-07-08 22:16:21 -04:00
justbur
82f252fdad Possible fix for #18 2015-07-08 20:39:27 -04:00
justbur
a7c7862e47 Fix #21 2015-07-08 16:08:03 -04:00
justbur
3c5f1ba686 Fix act-width in populate-buffer 2015-07-08 15:36:23 -04:00
justbur
3ce0c3e56f Rework key-based replacement
Previous implementation didn't work for multiple major-mode bindings
2015-07-08 13:55:53 -04:00
justbur
0fd81d309e Fix replace-match and rewrite propertize-key 2015-07-08 13:32:27 -04:00
justbur
a27658524d Break out key-based replacement function.
Seems simpler to use `assoc-string` in this case.
2015-07-08 13:20:27 -04:00
justbur
91916c129e Fixes #19
Kind of a hack, but seems a lot easier than trying to get an exact
calculation of the width
2015-07-08 11:41:10 -04:00
justbur
52574e5e94 Remove hide-popup call from update function
Doesn't seem to be needed anymore after adding hide-popup to the
pre-command-hook.
2015-07-08 11:35:40 -04:00
justbur
68e5f8155f Fix bug in format-matches 2015-07-08 10:43:50 -04:00
justbur
fe5b1ee62e Add option to specify major-mode in replacements
Note all replacements need to be proper lists instead of cons cells now
to add the option to check the third argument. If the third argument is
missing it defaults to replacing in all major modes
2015-07-08 10:36:57 -04:00
justbur
e5279fb8bd Revert unintended change to act-height calc 2015-07-08 08:52:28 -04:00
justbur
721c015ba9 Fix #17 errors when not enough room is available.
Also gives more control over whether and where to show prefix keys. When
the buffer is vertical showing in first line seems to make more sense.
2015-07-08 08:30:41 -04:00
justbur
bafd48048e Add :group to faces 2015-07-08 07:40:17 -04:00
justbur
78c3759f07 Require cl-lib
Addresses #15
2015-07-08 07:37:41 -04:00
justbur
c3586da3d2 Add key-based replacement list 2015-07-07 20:12:01 -04:00
justbur
dc4391e73d Add regexp to remove namespace (w minor cleanup) 2015-07-07 19:39:38 -04:00
justbur
9838d3b8d4 Remove column-width from max-dimensions
It's not needed
2015-07-07 19:25:57 -04:00
justbur
40ac541bc7 Show prefix in popup 2015-07-07 16:19:45 -04:00
justbur
be7f2c9f5f Remove commented out close timer stuff
Closes #10
2015-07-07 15:21:57 -04:00
justbur
c6c50bbe4c Make echo-keystrokes a variable and speed it up. 2015-07-07 15:19:06 -04:00
justbur
a09f70c587 Be consistent in defining faces. 2015-07-07 15:09:48 -04:00
justbur
f122d3d42e Make default delay less aggressive.
Also avoids touching echo-keystrokes if it is already low.
2015-07-07 15:00:10 -04:00
justbur
bfdae2557f Maek special keys bold 2015-07-07 13:27:08 -04:00
justbur
2e904d2930 Add DEL to special keys 2015-07-07 13:24:39 -04:00
justbur
2393a70a1c Add small indication of more pages 2015-07-07 11:09:18 -04:00
justbur
50962765d1 Pull out faces and add special key face
Special keys (SPC, TAB, RET and ESC) are now truncated to one character
and shown in inverse-video to distinguish them from S, T, R and E
2015-07-07 11:01:12 -04:00
justbur
9e09f05f61 Need cl for emacs < 25 2015-07-06 15:50:42 -04:00
justbur
2e9ec6bae2 Fix compiler warnings 2015-07-06 15:25:49 -04:00
justbur
a657ea8faf Change side-window default position to right 2015-07-06 14:40:07 -04:00
justbur
b2ea6227c3 Try without close timer 2015-07-06 14:39:02 -04:00
Justin Burkett
73d5374546 Merge pull request #13 from bmag/pre-command-hook
Hide buffer right before command execution
2015-07-06 14:28:39 -04:00
justbur
1fd43dc7fb Merge branch 'frame-popup' of https://github.com/bmag/emacs-which-key into pr12 2015-07-06 14:23:56 -04:00
justbur
85f65a910d Work on docstrings 2015-07-06 14:22:08 -04:00
justbur
c8bf18a49b Redo replacement logic 2015-07-06 13:53:10 -04:00
justbur
eb6f52a0cb Make arrow separator into variable 2015-07-06 13:40:49 -04:00
justbur
9cec7b8e1d Refactor replacement alists 2015-07-06 13:23:19 -04:00
Bar Magal
1cbad4b774 Hide buffer right before command execution
Fixes #9, this is also what guide-key uses.

When quoting functions, using "#'" tells the compiler that you're
quoting a function, and allows it to catch void function errors.
2015-07-06 19:34:31 +03:00
Bar Magal
35a171ef7d Try to fix focus problems with popup frame #7 2015-07-06 19:22:40 +03:00
justbur
163eacfa9d Allow echo-keystrokes but make it quick 2015-07-06 11:18:55 -04:00
justbur
3119e80c3e Add .gitignore 2015-07-06 11:03:00 -04:00
justbur
a760c589db Fix problem with echo-keystrokes and minibuffer
If the echo-keystrokes delay is too long, it clobbers which-key in the
minibuffer
2015-07-06 10:54:24 -04:00
justbur
c551775370 Remove popwin requirement; Add require cl 2015-07-06 09:49:58 -04:00
justbur
38362826cf Merge branch 'master' of https://github.com/bmag/emacs-which-key into pr5 2015-07-06 08:08:32 -04:00
justbur
a1aa345111 Delete old defvars and minor docstring cleanup 2015-07-06 08:03:59 -04:00
Bar Magal
44450f60c7 Fix doc, new frame parameters 2015-07-06 14:51:31 +03:00
Bar Magal
02140265c4 Frame popup support and some small fixes
Summary of changes:
- add emacs 24.3 as a dependency, because
  `display-buffer-in-major-side-window` doesn't exist in older emacsen
- add option to show which-key buffer in a popup frame
  `(setq which-key-popup-type 'frame)`
- stop close timer when disabling which-key-mode
- don't hide which-key buffer before showing it. instead, show methods
  handle the case that the buffer is already shown
- `which-key/hide-popup` calls function depending on popup
  type (similar to `which-key/show-popup`)
- use `display-buffer-in-major-side-window` instead of
  `display-buffer-in-side-window`, for popup type side-window. ensures
  new side window is created properly even if other side windows already
  exist.
- erase previous contents of which-key buffer before inserting new
  contents, and adjust buffer display in window by moving point to
  the buffer's beginning
2015-07-06 13:46:46 +03:00
justbur
20353a2923 Rename config variables, simplifying interface
The primary config variable is now which-key-popup-type, which
supports 'minibuffer and 'side-window. 'side-window has further
associated options, primarily which-key-side-window-location
2015-07-05 23:06:06 -04:00
justbur
ab3ff4770f Merge bmag changes
See PR #1
2015-07-05 19:24:20 -04:00