emacs: fix icons in doom-modeline (breaking change in package)
Alan Pearce alan@alanpearce.eu
Mon, 22 May 2023 19:08:34 +0200
2 files changed, 17 insertions(+), 7 deletions(-)
M user/emacs/init.el → user/emacs/init.el
@@ -111,6 +111,12 @@ ;;; Chrome (column-number-mode -1) (line-number-mode -1) + +(use-package nerd-icons + :config (progn + (setq nerd-icons-color-icons nil + nerd-icons-scale-factor 1.2))) + (use-package doom-modeline :hook (emacs-startup . doom-modeline-mode) :config (progn @@ -539,10 +545,6 @@ :after company :config (progn (setq company-shell-clean-manpage t) (add-to-list 'company-backends '(company-shell company-shell-env)))) - -(use-package all-the-icons - :defer t - :config (setq all-the-icons-color-icons nil)) (use-package tabnine-capf :commands (tabnine-completion-at-point)
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -80,9 +80,7 @@ }; extraPackages = epkgs: (with epkgs; [ ace-link - all-the-icons almost-mono-themes - all-the-icons apheleia avy capf-autosuggest @@ -138,6 +136,7 @@ magit markdown-mode marginalia modus-themes + nerd-icons doom-modeline posframe projectile @@ -170,8 +169,17 @@ (setq dired-use-ls-dired t)) (setq exec-path (parse-colon-path (setenv "PATH" "${pkgs.lib.readFile darwinPath}"))) ''; }; - home.packages = [ + home.packages = with pkgs; [ editorScript + # see https://github.com/NixOS/nixpkgs/blob/nixos-unstable/pkgs/data/fonts/nerdfonts/shas.nix + (nerdfonts.override { + fonts = [ + "NerdFontsSymbolsOnly" + "JetBrainsMono" + "IBMPlexMono" + "iA-Writer" + ]; + }) ]; xdg.configFile."emacs/early-init.el" = { source = ../emacs/early-init.el;