Fix void-function error

This commit is contained in:
contrapunctus 2022-02-13 17:49:58 +05:30
parent 9db245093d
commit 7ff58a141a
1 changed files with 4 additions and 4 deletions

View File

@ -3373,6 +3373,10 @@ But with =initials=, the desired completion is often buried in the results. That
:CUSTOM_ID: company-emoji
:END:
#+BEGIN_SRC emacs-lisp
(defun --set-emoji-font (frame)
"Adjust the font settings of FRAME so Emacs can display emoji properly."
(set-fontset-font t 'symbol (font-spec :family "Symbola") frame 'prepend))
(use-package company-emoji
:ensure t
:hook
@ -3381,10 +3385,6 @@ But with =initials=, the desired completion is often buried in the results. That
:init (--set-emoji-font nil) ;; For when Emacs is started in GUI mode:
(add-hook 'after-make-frame-functions '--set-emoji-font) ;; Hook for when a frame is created with emacsclient
:config (add-to-list 'company-backends 'company-emoji))
(defun --set-emoji-font (frame)
"Adjust the font settings of FRAME so Emacs can display emoji properly."
(set-fontset-font t 'symbol (font-spec :family "Symbola") frame 'prepend))
#+END_SRC
** company-prescient