From d068046f1cd5df7f5bb4b03c41d297e095782c4f Mon Sep 17 00:00:00 2001 From: James Patrick Date: Fri, 21 Aug 2020 18:05:10 -0400 Subject: [PATCH] Using Hasklig on OSX for emacs Fira has a weird issue with OSX where its displaying ligature symbols as hanzi characters. For the time being I'm going to use hasklig. --- emacs/config.el | 7 ++++++- emacs/init.el | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/emacs/config.el b/emacs/config.el index 2b34293..02fb817 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -3,8 +3,13 @@ ;; Use "," as leader. (setq doom-localleader-key ",") +;; Firacode is broken with Emacs-plus on osx. Fallback to Hasklig. +(if IS-MAC + (setq doom-font (font-spec :family "Hasklig" :size 12)) + (setq doom-font (font-spec :family "FuraCode NF" :size 12)) + ) +;; ;; Set font -(setq doom-font (font-spec :family "FuraCode NF" :size 12)) (pcase (system-name) ("zuk" ;; Wayland support for high HDPI scaling has some issues. diff --git a/emacs/init.el b/emacs/init.el index 1e91944..ed96fc9 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -48,7 +48,9 @@ +all ; catch all popups that start with an asterix +defaults) ; default popup rules (pretty-code ; replace bits of code with pretty symbols - +fira) + (:if IS-MAC +hasklig) ; Pretty-code doesn't work with Fira on OSX. Falling back to hasklig. + (:if IS-LINUX +fira) + ) tabs ; an tab bar for Emacs treemacs ; a project drawer, like neotree but cooler unicode ; extended unicode support for various languages