summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el22
1 files changed, 8 insertions, 14 deletions
diff --git a/init.el b/init.el
index 12a468a..910fd45 100644
--- a/init.el
+++ b/init.el
@@ -11,19 +11,8 @@
;; https://stackoverflow.com/questions/31079204/emacs-package-install-script-in-init-file
(package-initialize)
-;; (use-package dashboard
-;; :ensure t
-;; :config
-;; (dashboard-setup-startup-hook)
-;; (setq dashboard-projects-backend 'projectile)
-;; (setq dashboard-items '((recents . 5)
-;; (bookmarks . 5)
-;; (projects . 5)
-;; (agenda . 5)
-;; (registers . 5))))
-
(setq package-list
- '(eslint-fix go-mode highlight-thing tree-sitter-langs tree-sitter eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))
+ '(highlight-indent-guides helm helm-projectile js-doc eslint-fix go-mode highlight-thing tree-sitter-langs tree-sitter eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode all-the-icons req-package projectile org))
;; Fetch the list of packages available
(unless package-archive-contents
@@ -31,8 +20,13 @@
; Install the missing packages
(dolist (package package-list)
- (unless (package-installed-p package)
- (package-install package)))
+ (let ((has-refreshed 0))
+ (unless (package-installed-p package)
+ (unless (eq has-refreshed 1)
+ (setq has-refreshed 1)
+ (package-refresh-contents)
+ )
+ (package-install package))))
;; The default is 800 kilobytes. Measured in bytes.
(setq gc-cons-threshold (* 50 1000 1000))