all repos — nixfiles @ 01b867a97a08438c035b77566438f7054420c1d3

System and user configuration, managed by nix and home-manager

Emacs: use package-quickstart
Alan Pearce alan@alanpearce.eu
Tue, 09 Mar 2021 16:46:19 +0100
commit

01b867a97a08438c035b77566438f7054420c1d3

parent

546e626a8023382c965e7b479b3ebba9ec24e3d6

3 files changed, 2 insertions(+), 2 deletions(-)

jump to
M user/emacs/early-init.eluser/emacs/early-init.el
@@ -1,7 +1,7 @@ (setq inhibit-startup-screen t
       initial-scratch-message ""
       initial-major-mode 'fundamental-mode
-      package-enable-at-startup nil
+      package-quickstart t
       frame-inhibit-implied-resize t)
 
 ;; Disable all the bars, unless on OSX, in which case, keep the menu bar.
M user/emacs/init.eluser/emacs/init.el
@@ -13,7 +13,6 @@ (server-start)                                (setq gc-cons-threshold default-gc-cons-threshold
                                      gc-cons-percentage 0.1))))
 
-(package-initialize)
 
 (defun reload-user-init-file ()
   "Reload init file."
M user/settings/emacs.nixuser/settings/emacs.nix
@@ -197,6 +197,7 @@ xdg.configFile."emacs/init.el" = {     source = ../emacs/init.el;
     onChange = ''
       ${config.programs.emacs.finalPackage}/bin/emacs -Q -batch -f batch-byte-compile .config/emacs/init.el
+      ${config.programs.emacs.finalPackage}/bin/emacs -Q -batch -l package -f package-quickstart-refresh
     '';
   };