]> git.earman.xyz Git - emacsinit.git/commitdiff
Add use-package for slime, if not on windows
authorrearman <rearman@r717.net>
Mon, 9 Jan 2023 16:44:12 +0000 (11:44 -0500)
committerrearman <rearman@r717.net>
Mon, 9 Jan 2023 16:44:12 +0000 (11:44 -0500)
init.el
package-config.el

diff --git a/init.el b/init.el
index f03b13338d0f31e65820e438499f129959c7e092..a44fef0caef90fb219e8afb195bbf2003b835632 100644 (file)
--- a/init.el
+++ b/init.el
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
- '(minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt)) ;; Stolen from Xah
- )
+ '(minibuffer-prompt-properties '(read-only t cursor-intangible t face minibuffer-prompt))
+ '(package-selected-packages
+   '(s openwith gnuplot-mode magit expand-region company use-package)))
 (custom-set-faces
  ;; custom-set-faces was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(mode-line ((t (:foreground "black" :background "gray"))))
- '(mode-line-inactive ((t (:foreground "black" :background "#cae0a6"))))
- )
+ '(mode-line-inactive ((t (:foreground "black" :background "#cae0a6")))))
index d6256de79ffba13fb3c9114702feb448d9836637..2fd686b101510258200d682a600ca682e0dfb5ca 100644 (file)
@@ -1,6 +1,5 @@
 ;; -*- lexical-binding: t; -*-
 
-;; PACKAGES
 (require 'package)
 (setq package-archives
       '(("elpa" . "https://elpa.gnu.org/packages/")
@@ -8,6 +7,10 @@
        ("melpa" . "https://melpa.org/packages/")))
 (package-initialize)
 
+(unless (package-installed-p 'use-package)
+  (package-refresh-contents)
+  (package-install 'use-package))
+
 (use-package company
   :ensure t
   :custom
   (openwith-mode t))
 
 (use-package s
-    :ensure t)
+  :ensure t)
 
 (use-package dash
-    :ensure t)
+  :ensure t)
+
+(if (not (eq system-type 'windows-nt))
+    (use-package slime
+      :ensure t))