commit 9cf5461f93c8e46665f97bc283864b86f88f07cd
parent 2693f75a000a111aee033af870b2ce74b775074b
Author: jrs5 <jonathan.schmeling@generalgrowth.com>
Date: Sat, 9 May 2020 01:53:54 -0500
And then we've gotta modify the `candidates` so they can work with
functions like `ido-completing-read`.
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/emojify.el b/emojify.el
@@ -1842,7 +1842,12 @@ completion UI to display properly emojis."
(let* ((emojify-minibuffer-reading-emojis-p t)
(line-spacing 7)
(completion-ignore-case t)
- (candidates (emojify--get-completing-read-candidates))
+ ;; Ido can only accept a list so grab the keys of the hashmap
+ (candidates (let ((keys ()))
+ (maphash (lambda (k v) (push k keys))
+ (emojify--get-completing-read-candidates))
+
+ keys))
;; Vanilla Emacs completion and Icicles use the completion list mode to display candidates
;; the following makes sure emojify is enabled in the completion list
(completion-list-mode-hook (cons #'emojify--completing-read-minibuffer-setup-hook