; list the packages you want
(setq package-list '(cyberpunk-theme flycheck yasnippet magit go-mode
hl-todo lsp-mode lsp-ui company))
; list the repositories containing them
(setq package-archives '(("elpa" . "http://tromey.com/elpa/")
("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
; activate all the packages (in particular autoloads)
(package-initialize)
; fetch the list of packages available
(unless package-archive-contents
(package-refresh-contents))
; install the missing packages
(dolist (package package-list)
(unless (package-installed-p package)
(package-install package)))
이걸 *scratch* 에 붙이고 M-x eval-buffer 로 마무리.
댓글 없음:
댓글 쓰기