Update README with instructions, add script to handle package installs
This commit is contained in:
parent
4859445e17
commit
f1689c7fb5
12
README.org
12
README.org
|
@ -6,4 +6,14 @@ Personal Emacs config.
|
||||||
|
|
||||||
Clone to =~/.config/emacs/= (or =~/.emacs.d/=).
|
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.
|
||||||
|
|
4
init.el
4
init.el
|
@ -3,7 +3,9 @@
|
||||||
;; Moving my Emacs config from separate directory
|
;; Moving my Emacs config from separate directory
|
||||||
;; To install packages on non-NixOS systems:
|
;; To install packages on non-NixOS systems:
|
||||||
;; `(setq prog-mode-hook nil lisp-data-mode-hook nil)'
|
;; `(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:
|
;;; Code:
|
||||||
;; Stop popups for warning messages, keep in log buffer
|
;; Stop popups for warning messages, keep in log buffer
|
||||||
(setopt warning-minimum-level :error)
|
(setopt warning-minimum-level :error)
|
||||||
|
|
9
install.el
Normal file
9
install.el
Normal 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
|
Loading…
Reference in a new issue