Add eh-package-install-selected-packages
[emacs-helper.git] / eh-installer.el
bloba93ada8c658c3cb886cfb6d2a9c66145f1ee7c50
1 ;; ** 设置 emacs 包管理器
2 (require 'package)
3 (setq package-archives
4 '(("gnu" . "https://elpa.gnu.org/packages/")
5 ("nongnu" . "https://elpa.nongnu.org/nongnu/")
6 ("melpa" . "https://melpa.org/packages/")))
8 (setq package-archive-priorities
9 '(("gnu" . 10)
10 ("nongnu" . 9)
11 ("melpa" . 8)))
13 (defun eh-package-install-selected-packages ()
14 (interactive)
15 (let ((package-selected-packages
16 '(;; Packages required by emacs-helper
17 adaptive-wrap aggressive-indent
18 cal-china-x citre cnfonts
19 company company-posframe
20 consult eat ebdb
21 ebdb-i18n-chn el2org emms
22 flycheck geiser-guile guix
23 magit marginalia markdown-mode
24 modus-themes orderless
25 org-contrib org-download org-ql
26 org-super-agenda ox-gfm paredit
27 pos-tip projectile pyim
28 pyim-basedict rainbow-delimiters
29 rainbow-mode switch-window
30 tempel vertico vundo
31 wgrep xmlgen xr)))
32 (package-install-selected-packages :no-confirm)))
34 (unless package--initialized
35 (package-initialize))
37 (eh-package-install-selected-packages)