Compare commits

...

3 commits

4 changed files with 10 additions and 13 deletions

6
Makefile Normal file
View file

@ -0,0 +1,6 @@
.PHONY: default install
default: install
install:
emacs --script install.el --kill

View file

@ -6,14 +6,5 @@ Personal Emacs config.
Clone to =~/.config/emacs/= (or =~/.emacs.d/=).
To install packages on non-NixOS systems:
#+begin_src emacs-lisp
(setq prog-mode-hook nil
lisp-data-mode-hook nil)
(package-install-selected-packages)
;; Optionally autoremove unneeded packages:
(package-autoremove)
#+end_src
Or just run ~install.el~ for the same effect.
To install packages on non-NixOS systems run ~make~ (or ~make
install~), or execute ~install.el~ with Emacs.

View file

@ -7,7 +7,7 @@
(setopt warning-minimum-level :error)
;; Configure packages archives with priority
(require 'package-config)
(load-file "package-config.el")
(setq custom-file (locate-user-emacs-file "custom.el"))
(when (and custom-file (file-exists-p custom-file))

View file

@ -2,7 +2,7 @@
;;; Commentary:
;;; Code:
;; Configure packages archives with priority
(require 'package-config)
(load-file "package-config.el")
(package-refresh-contents)
(setopt package-selected-packages
'(