summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorGravatar √Čtienne Deparis 2020-12-21 10:53:21 +0100
committerGravatar √Čtienne Deparis 2020-12-21 10:53:21 +0100
commit65efbcace5f5c3330dba40081600b574ad52aec3 (patch)
treefad472f791371afcf6ccbd6baf7b6916d49acbbf
parent3d4db24bf51bacfc1a8c19ef26c58b897aa2311b (diff)
downloademacs.d-65efbcace5f5c3330dba40081600b574ad52aec3.tar.gz
emacs.d-65efbcace5f5c3330dba40081600b574ad52aec3.tar.xz
emacs.d-65efbcace5f5c3330dba40081600b574ad52aec3.zip
Use new package-quickstart feature
-rw-r--r--init.org9
1 files changed, 6 insertions, 3 deletions
diff --git a/init.org b/init.org
index 968fa63..8c0fb14 100644
--- a/init.org
+++ b/init.org
@@ -81,7 +81,9 @@ loaded before ~init.el~ is read.
#+name: packages-init
#+begin_src emacs-lisp :tangle early-init.el :exports code
(setq package-user-dir (expand-file-name "modes" user-emacs-directory)
- package-gnupghome-dir (expand-file-name "gnupg" package-user-dir))
+ package-gnupghome-dir (expand-file-name "gnupg" package-user-dir)
+ package-quickstart-file (expand-file-name "package-quickstart.el" package-user-dir)
+ package-quickstart t)
(with-eval-after-load 'package
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/") t))
@@ -150,7 +152,7 @@ All the following packages need to be installed:
"\n" " "
(replace-regexp-in-string
"^- \\(.+\\)$" "\\1"
- (shell-command-to-string "sed -n 92,144p init.org"))))
+ (shell-command-to-string "sed -n 94,146p init.org"))))
#+end_src
For that, we use a custom script ~install_packages.el~. This script
@@ -174,7 +176,8 @@ content of this script is shown bellow:
(when must-install-p
(package-refresh-contents)
(dolist (package ed/packages-list)
- (package-install package)))))
+ (package-install package))
+ (package-quickstart-refresh))))
#+end_src
I use the org-mode tarball from the website. I've encounter some bug with