Forráskód Böngészése

Fixed issue with :hook unrecognized on some computers.

melpa-stable apparently has a version of use-package that doesn't
support this.
Tom Flucke 8 éve
szülő
commit
34c3685ca0
1 módosított fájl, 3 hozzáadás és 3 törlés
  1. 3 3
      .emacs.d/init.el

+ 3 - 3
.emacs.d/init.el

@@ -41,7 +41,7 @@
                          ("org" . "https://orgmode.org/elpa/")
                          ("melpa" . "https://melpa.org/packages/")
                          ("melpa-stable" . "https://stable.melpa.org/packages/"))
-      package-archive-priorities '(("melpa-stable" . 1)))
+      package-archive-priorities '(("melpa" . 1)))
 (package-initialize)
 
 (unless (package-installed-p 'use-package)
@@ -52,8 +52,8 @@
 
 ;; ---------- Use X11 clipboard -----------
 (use-package xclip
-  :if (executable-find "xclip")
-  :hook ((text-mode-hook prog-mode-hook) . xclip-mode))
+  :hook ((text-mode-hook prog-mode-hook) . xclip-mode)
+  :if (executable-find "xclip"))
 
 ;; ---------- Color Themes ----------
 (use-package color-theme