1
0

emacs: Skip package.el entirely when using Nix

This commit is contained in:
2025-08-20 05:14:12 -07:00
parent cb5ddb15a6
commit 6d64e1f074

View File

@@ -15,6 +15,14 @@
;; Disable annoying bell
(setq ring-bell-function 'ignore)
;; Skip package.el entirely when using Nix
(setq package-enable-at-startup nil)
(setq package-archives nil)
(when (and (boundp 'use-package-ensure-function)
(getenv "NIX_PROFILES"))
(setq use-package-ensure-function 'ignore)
(setq use-package-always-ensure nil))
;; -----------------------------------------------------------------------------
;; --- Editor Defaults
;; -----------------------------------------------------------------------------