aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2026-09-10 23:26:34 -0700
committerGravatar Tom Willemse2026-09-12 01:00:38 -0700
commitafb68627a948a64eda956c34ed5032831be4e37e (patch)
tree698b0012d93f884c7b7e32f8b4f88ef7945546bc /emacs
parent237bd0fa9530e8960b071f180877282bf2ddddbb (diff)
downloadnew-dotfiles-afb68627a948a64eda956c34ed5032831be4e37e.tar.gz
new-dotfiles-afb68627a948a64eda956c34ed5032831be4e37e.zip
emacs: Only ensure packages on macos
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.org10
1 files changed, 6 insertions, 4 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org
index bcd3c96..4244a2f 100644
--- a/emacs/.emacs.d/init.org
+++ b/emacs/.emacs.d/init.org
@@ -74,12 +74,12 @@ Add MELPA to package archives, this lets me install more packages. Also my own o
(add-to-list 'package-archives '("oni" . "https://ryuslash.srht.site/emacs-config/packages/")))
#+end_src
-Make use-package default to ensuring everything. This way each =use-package= doesn't need to have its own ~:ensure t~ and when I use Guix to install these modules they don't try to download everything from everywhere else.
+Make use-package default to ensuring everything on macos. This way each =use-package= doesn't need to have its own ~:ensure t~ and when I use Guix to install these modules they don't try to download everything from everywhere else.
#+begin_src emacs-lisp
(eval-and-compile
(require 'use-package-ensure)
- (setq use-package-always-ensure t))
+ (setq use-package-always-ensure (eq system-type 'darwin)))
#+end_src
* exec-path-from-shell
@@ -98,8 +98,10 @@ This is necessary to make sure that packages installed through bundle and such a
Add the =use-package-ensure-system-package= extension for =use-package=.
#+begin_src emacs-lisp
- (use-package use-package-ensure-system-package)
- (use-package system-packages)
+ (use-package use-package-ensure-system-package
+ :when (eq system-type 'darwin))
+ (use-package system-packages
+ :when (eq system-type 'darwin))
#+end_src
* Docker