 ;; Bootstrap 'use-package'
 (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
 
-(unless (package-installed-p 'use-package)
-  (package-refresh-contents)
-  (package-install 'use-package))
+(if (not (package-installed-p 'use-package))
+    (package-install 'use-package))
 
 ;;Load Use-package
 (eval-when-compile


(require 'setup-undo-tree)
(require 'setup-emmet)
(require 'setup-company)
(require 'setup-web-mode)
(require 'setup-electric-pair-mode)
;;(require 'setup-counsel)
(require 'setup-selectrum)
(require 'setup-prettier)

(require 'setup-flycheck)
;; (require 'setup-sml)

(require 'setup-elpy)
(require 'setup-lsp)
(require 'setup-haskell)
;;(require 'setup-nim)
(require 'setup-nov)
(require 'setup-magit)
(require 'setup-org)
(require 'setup-pdf)
(require 'setup-irc)

;; Convenience packages
(require 'setup-consult)
(require 'setup-embark)
;;(require 'setup-selectrum)
(require 'setup-ctrlf)
(require 'setup-marginalia)
(require 'setup-vertico)
;;(require 'setup-counsel)
;; ;; OPTIONAL PACKAGES, chose to load on convenience
;; ;; these packages result in things mostly cosmetic.

(require 'setup-theme)
(require 'setup-dashboard)
(require 'setup-doom-modeline)

;;(require 'setup-miniframe)

;; GENERAL SETUP
(require 'general-emacs-setup)
