branch: externals/system-packages
commit da5835a1f767a2783185348683e35bb99ec53658
Merge: 47cef47 07c4faa
Author: Alex Branham <[email protected]>
Commit: GitHub <[email protected]>
Merge pull request #9 from syohex/fix-package
Fix package
---
system-packages.el | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/system-packages.el b/system-packages.el
index eb1c0aa..f885495 100644
--- a/system-packages.el
+++ b/system-packages.el
@@ -6,6 +6,7 @@
;; Maintainer: J. Alexander Branham <[email protected]>
;; URL: https://github.com/jabranham/system-packages
;; Version: 0.1
+;; Package-Requires: ((cl-lib "0.5"))
;; This file is not part of GNU Emacs.
@@ -38,8 +39,7 @@
;;; Code:
-(eval-when-compile
- (require 'cl))
+(require 'cl-lib)
(defgroup system-packages nil
"Manages system packages"
@@ -117,14 +117,15 @@
(list-installed-packages . "brew list")
(list-installed-packages-all . nil)))))
-(defvar system-packages-packagemanager
+(defcustom system-packages-packagemanager
(cl-loop for (name . prop) in system-packages-supported-package-managers
for path = (executable-find (symbol-name name))
when path
return name)
"String containing the package manager to use. Currently
system-packages supports pacman, pacaur, apt, and
- homebrew. Tries to be smart about selecting the default.")
+ homebrew. Tries to be smart about selecting the default."
+ :type 'symbol)
(defvar system-packages-usesudo
(cdr (assoc 'default-sudo (cdr (assoc system-packages-packagemanager
@@ -196,3 +197,4 @@ named in system-packages-packagemanager. With
(system-packages--run-command 'list-installed-packages)))
(provide 'system-packages)
+;;; system-packages.el ends here