(let ((buf (current-buffer)))
(emoji--init)
(switch-to-buffer (get-buffer-create "*Emoji*"))
+ (setq-local emoji--insert-buffer buf)
;; Don't regenerate the buffer if it already exists -- this will
;; leave point where it was the last time it was used.
(when (zerop (buffer-size))
(let ((inhibit-read-only t))
(emoji-list-mode)
- (setq-local emoji--insert-buffer buf)
(emoji--list-generate nil (cons nil emoji--labels))
(goto-char (point-min))))))