]> git.earman.xyz Git - emacsinit.git/commitdiff
Move back to package.el from straight
authorrearman <rearman@r717.net>
Mon, 9 Jan 2023 14:31:29 +0000 (09:31 -0500)
committerrearman <rearman@r717.net>
Mon, 9 Jan 2023 14:31:29 +0000 (09:31 -0500)
Moving away from straight due to issues with magit after update.  Moving some
things to early-init.el (same things Prot. has in his)

package-config.el

index 07c5b56e79bbf245e9e77e8579afb6821d6eef90..d6256de79ffba13fb3c9114702feb448d9836637 100644 (file)
@@ -1,26 +1,15 @@
 ;; -*- lexical-binding: t; -*-
 
 ;; PACKAGES
-;; NEW STRAIGHT.EL CONFIG
-(defvar bootstrap-version)
-(let ((bootstrap-file
-       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
-      (bootstrap-version 6))
-  (unless (file-exists-p bootstrap-file)
-    (with-current-buffer
-       (url-retrieve-synchronously
-        "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
-        'silent 'inhibit-cookies)
-      (goto-char (point-max))
-      (eval-print-last-sexp)))
-  (load bootstrap-file nil 'nomessage))
-
-(straight-use-package 'use-package)
-
-(use-package straight
-  :custom (straight-use-package-by-default t))
+(require 'package)
+(setq package-archives
+      '(("elpa" . "https://elpa.gnu.org/packages/")
+       ("nongnu" . "https://elpa.nongnu.org/nongnu/")
+       ("melpa" . "https://melpa.org/packages/")))
+(package-initialize)
 
 (use-package company
+  :ensure t
   :custom
   (company-idle-delay 0)
   (company-minimum-prefix-length 3)
   (global-company-mode t))
 
 (use-package expand-region
+  :ensure t
   :bind (("C-=" . er/expand-region)))
 
 (use-package magit
+  :ensure t
   :init
   (message "Loading Magit...")
   :config
   (message "Loaded Magit!")
   :bind (("C-x g" . magit-status)))
 
-(use-package gnuplot-mode)
+(use-package gnuplot-mode
+  :ensure t)
 
 (use-package openwith
+  :ensure t
   :config
   (openwith-mode t))
 
-(use-package s)
+(use-package s
+    :ensure t)
 
-(use-package dash)
+(use-package dash
+    :ensure t)