Skip to content

Commit 5253e33

Browse files
author
Dan Sutton
committed
Update readme with resize-window-add-choice
1 parent 4f8c087 commit 5253e33

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

readme.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,15 @@ run helm-mini. Its trivial now to bounce around, resize windows and
7979
reset their sources. And since the help menu is dynamically generated,
8080
pressing ? displays this new choice automatically.
8181

82+
For convenience sake, you can use the helper method `resize-window-add-choice` to register your function without having to remember the structure of the list it will end up in. For example:
83+
84+
(push '(?h (lambda () (dired "~/projects/clojure")) "Clojure home" nil))
85+
; is equivalent to
86+
87+
(resize-window-add-choice ?h (lambda () (dired "~/projects/clojure")) "Clojure home")
88+
89+
; the allows-capitals argument is optional.
90+
8291
Further, there are alias, held in the `resize-window-alias-list` alist. It is
8392
currently defined as
8493

0 commit comments

Comments
 (0)