summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorunknown <adrijan.bjedov@gmail.com>2025-09-03 10:44:03 +0200
committerunknown <adrijan.bjedov@gmail.com>2025-09-03 10:44:03 +0200
commit10b56a188ec432c150104a6e46b9496c95c4f526 (patch)
treef4ce3e48cc37bc9db9a5b51144c1ae4979c8f55b /init.el
parent944a53b123677596c173f98a5bbe0e4c0c43e8d3 (diff)
Adapt configuration so it is compatible with Windows
Diffstat (limited to 'init.el')
-rw-r--r--init.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/init.el b/init.el
index a6652c8..39333c9 100644
--- a/init.el
+++ b/init.el
@@ -3,7 +3,9 @@
;; Font
(add-to-list 'default-frame-alist
- '(font . "JetBrainsMono Nerd Font 12"))
+ `(font . ,(if (eq system-type 'windows-nt)
+ "JetBrainsMono NF 12"
+ "JetBrainsMono Nerd Font 12")))
;; Add line numbers
(setq display-line-numbers t)
@@ -80,7 +82,12 @@
(vundo-compact-display t))
;; Catppuccin theme
-(load (locate-user-emacs-file "theme.el"))
+(if (eq system-type 'windows-nt)
+ (use-package catppuccin-theme
+ :config ;; On Windows I am happy with perma dark mode
+ (setq catppuccin-flavor 'mocha)
+ (load-theme 'catppuccin :no-confirm))
+ (load (locate-user-emacs-file "theme.el")))
;; (use-package doom-modeline
;; :hook (after-init . doom-modeline-mode))