branch: externals/system-packages
commit 936bb1a1f3df903e73d1485a14dc483a790b2573
Author: David Florness <[email protected]>
Commit: David Florness <[email protected]>
`system-packages-usesudo' to `system-packages-use-sudo'
---
README.org | 6 +++---
system-packages.el | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/README.org b/README.org
index 7721d2e..336b604 100644
--- a/README.org
+++ b/README.org
@@ -26,7 +26,7 @@ packages more convenient through emacs.
commands (like installing and uninstalling packages). Some package
managers (like homebrew) warn not to use sudo, others (like =apt=)
need sudo privileges. You may set this manually by configuring
- =system-packages-usesudo=.
+ =system-packages-use-sudo=.
Other package customization options can be accessed with M-x
=customize-group RET system-packages RET=.
@@ -81,9 +81,9 @@ the commands to =system-packages-supported-package-managers=
like so:
#+END_SRC
You may then need to adjust =system-packages-package-manager= and
-=system-packages-usesudo= accordingly:
+=system-packages-use-sudo= accordingly:
#+BEGIN_SRC emacs-lisp
- (setq system-packages-usesudo t)
+ (setq system-packages-use-sudo t)
(setq system-packages-package-manager "pacaur")
#+END_SRC
diff --git a/system-packages.el b/system-packages.el
index 4e3feb6..3080ba0 100644
--- a/system-packages.el
+++ b/system-packages.el
@@ -292,7 +292,7 @@ to the package manager."
(error (format "%S not supported in %S" action
system-packages-package-manager)))
(unless (listp command)
(setq command (list command)))
- (when system-packages-usesudo
+ (when system-packages-use-sudo
(setq command (mapcar (lambda (part) (concat "sudo " part)) command)))
(setq command (mapconcat 'identity command " && "))
(setq command (mapconcat 'identity (list command pack) " "))