commit 7e88235004a5d3cc7a07ea2e87dc43092e803345
parent 941690963b9f08c462cfde1bb94ff6adebdee106
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date: Wed, 7 Sep 2016 22:43:25 +0530
Position cursor at first emoji after displaying results in apropos
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/emojify.el b/emojify.el
@@ -1392,7 +1392,7 @@ Borrowed from apropos.el"
;; description
(apropos-parse-pattern pattern)
- ;; Collection matching emojis in a list (list score emoji emoji-data)
+ ;; Collect matching emojis in a list of (list score emoji emoji-data)
;; elements, where score is the proximity of the emoji to given pattern
;; calculated using `apropos-score-str'
(emojify-emojis-each (lambda (key value)
@@ -1424,7 +1424,8 @@ Borrowed from apropos.el"
(ht-get (cadr emoji) "name")
(ht-get (cadr emoji) "style")))
(insert "\n"))
- (goto-char (point-min))
+ (goto-char (point-min))
+ (forward-line (1- 6))
(emojify-apropos-mode)
(setq emojify--apropos-last-query (concat query " "))
(setq-local line-spacing 7)))