From: rearman Date: Mon, 9 Jan 2023 16:44:12 +0000 (-0500) Subject: Add use-package for slime, if not on windows X-Git-Url: https://git.earman.xyz/?a=commitdiff_plain;h=1f9caf5f90dcbf56d563d8650714677df742503e;p=emacsinit.git Add use-package for slime, if not on windows --- diff --git a/init.el b/init.el index f03b133..a44fef0 100644 --- a/init.el +++ b/init.el @@ -25,13 +25,13 @@ ;; 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"))))) diff --git a/package-config.el b/package-config.el index d6256de..2fd686b 100644 --- a/package-config.el +++ b/package-config.el @@ -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 @@ -42,7 +45,11 @@ (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))