From 7ff58a141aa30ec30be78c0b3b14e4dc5754d376 Mon Sep 17 00:00:00 2001 From: contrapunctus Date: Sun, 13 Feb 2022 17:49:58 +0530 Subject: [PATCH] Fix void-function error --- init.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/init.org b/init.org index a03e877..f58dbbf 100644 --- a/init.org +++ b/init.org @@ -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