Update README with instructions, add script to handle package installs

This commit is contained in:
Evie Litherland-Smith 2024-04-17 12:46:12 +01:00
parent 4859445e17
commit f1689c7fb5
3 changed files with 23 additions and 2 deletions

View file

@ -6,4 +6,14 @@ Personal Emacs config.
Clone to =~/.config/emacs/= (or =~/.emacs.d/=).
* TODO Fill out README
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.

View file

@ -3,7 +3,9 @@
;; Moving my Emacs config from separate directory
;; To install packages on non-NixOS systems:
;; `(setq prog-mode-hook nil lisp-data-mode-hook nil)'
;; `M-x package-install-selected-packages'
;; `(package-install-selected-packages)'
;; Optionally autoremove unneeded packages:
;; `(package-autoremove)'
;;; Code:
;; Stop popups for warning messages, keep in log buffer
(setopt warning-minimum-level :error)

9
install.el Normal file
View file

@ -0,0 +1,9 @@
;;; install.el -- Handle installing selected packages -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(setq prog-mode-hook nil
lisp-data-mode-hook nil)
(package-install-selected-packages)
(package-autoremove)
(provide 'install)
;;; install.el ends here