emacs: Skip package.el entirely when using Nix
This commit is contained in:
@@ -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
|
||||
;; -----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user