[emoji] Move spacemacs/delay-emoji-cheat-sheet-hook to func.el
This commit is contained in:
parent
5af37b3165
commit
93276e011a
|
@ -28,3 +28,11 @@
|
|||
"Adjust the font settings of current frame so Emacs can display emoji
|
||||
properly."
|
||||
(spacemacs//set-emoji-font (selected-frame)))
|
||||
|
||||
(defun spacemacs/delay-emoji-cheat-sheet-hook ()
|
||||
"Work-around for org buffers."
|
||||
;; we need to wait for org buffer to be fully loaded before
|
||||
;; calling the emoji mode.
|
||||
;; If we directly call the emoji mode at hook runtime then some
|
||||
;; text properties are not applied correctly.
|
||||
(run-at-time 0.1 nil 'emoji-cheat-sheet-plus-display-mode))
|
||||
|
|
|
@ -27,15 +27,7 @@
|
|||
(spacemacs/set-leader-keys "ie" 'emoji-cheat-sheet-plus-insert)
|
||||
(evilified-state-evilify emoji-cheat-sheet-plus-buffer-mode
|
||||
emoji-cheat-sheet-plus-buffer-mode-map
|
||||
"<RET>" 'emoji-cheat-sheet-plus-echo-and-copy)
|
||||
|
||||
(defun spacemacs/delay-emoji-cheat-sheet-hook ()
|
||||
"Work-around for org buffers."
|
||||
;; we need to wait for org buffer to be fully loaded before
|
||||
;; calling the emoji mode.
|
||||
;; If we directly call the emoji mode at hook runtime then some
|
||||
;; text properties are not applied correctly.
|
||||
(run-at-time 0.1 nil 'emoji-cheat-sheet-plus-display-mode)))
|
||||
"<RET>" 'emoji-cheat-sheet-plus-echo-and-copy))
|
||||
:config
|
||||
(spacemacs|hide-lighter emoji-cheat-sheet-plus-display-mode)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue