42
votes
Accepted
How to update packages installed with use-package
I just do this manually: run list-packages hit Uto mark available upgrades, then review to decide if there are any I don't want to pick up. Then x to upgrade. I do this pretty regularly, and often ...
19
votes
How to update packages installed with use-package
You can use auto-package-update to automatically update packages.
Copied from my other post (https://emacs.stackexchange.com/a/31903/9972)
(use-package auto-package-update
:ensure t
:config
...
18
votes
Accepted
use-package - :init or :config
Is there any rule by which the user can determine whether the package configuration requires :init or :config?
There is no general rule which applies to all settings and packages; you just need to ...
17
votes
Accepted
When to specify a package name in use-package's :ensure tag?
But for some packages that doesn't work. Such as auctex.
The reason (use-package tex :ensure t) doesn't work for auctex is because auctex names a GNU ELPA package (see (emacs) Packages), whereas tex ...
17
votes
Accepted
How to bind key in use-package
Thank you for telling me about the different types of maps.
The issue is as @NickD pointed out in their answer and the example use-package code puts all the bindings into the global map.
ie org-mode ...
15
votes
How to avail of `:hook` using use-package?
As others said I think https://github.com/jwiegley/use-package#hooks
is pretty clear. :hook replaces add-hook and creates autoloads for
you. Your example with :hook would be:
(use-package web-mode
:...
15
votes
Getting started `use-package` question
Do I need (package-initialize) before these lines?
If your version of Emacs (M-xemacs-versionRET) is older than 27, and you are using the built-in package manager, then you indeed need to call (...
14
votes
Does use-package keep packages automatically updated?
I use auto-package-update to automatically update packages.
(use-package auto-package-update
:ensure t
:config
(setq auto-package-update-delete-old-versions t
auto-package-update-...
14
votes
Accepted
error: Package `use-package-' is unavailable
This particular error happens if Emacs failed looking up the latest version of a package, like if there's no package-archives file containing that information. Before installing packages, make sure ...
11
votes
Accepted
Activate global minor modes from use-package
I don't know why company-mode is getting diminished, but I think I know what's going on with whitespace-mode. Your block
(use-package whitespace
:ensure t ;; I also tried without this line
:...
11
votes
Accepted
Why doesn't (use-package dired) work for me?
Debugger entered--Lisp error: (error "Package ‘dired-’ is unavailable")
You get this error when package.el tries to install a non-existent package. use-package will attempt to install the given ...
11
votes
Accepted
Is it possible to load Dired+ automatically with use-package?
dired+ has left MELPA repository, and now you have to download it manually from EmacsWiki. You can still use use-package with a downloaded package, like this:
(use-package dired+
:load-path "~/....
10
votes
Accepted
use-package won't load
You may need a more complete "bootstrap" of use-pacakge. This is what I've picked up from somewhere else on SE.
;;{{{ Set up package and use-package
(require 'package)
(add-to-list 'package-archives
...
9
votes
error: Package `use-package-' is unavailable
I am adding this answer as suggested by @Drew.
I appreciate the answer from @wasamasa which allowed me to get this working in my .emacs file.
Here is how I modified my .emacs file.
(package-...
8
votes
Accepted
Emacs setup for LaTeX after (use-package) verse
The essential part is to load latex instead of tex, see the first line.
(also I did some small cleanups)
(use-package latex
:mode
("\\.tex\\'" . latex-mode)
:bind
(:map LaTeX-mode-map
...
8
votes
Accepted
Why does use-package considers "emacs" as a package?
It is not packages that use-package loads but features (which are things you can require and test for with featurep). From this point of view, use-package is essentially a fancy wrapper for require.
...
7
votes
Accepted
Install ESS with use-package
I was missing ':ensure t .
Now the ess package gets automatically installed at first use.
For more information on how to load packages from ELPA with package.el and use-package see: https://github....
7
votes
Accepted
Does use-package keep packages automatically updated?
The :ensure option in use-package does not automatically keep packages up to date. It ensures that the package is installed. This might be useful if you pull your Emacs config on to a new machine (or ...
7
votes
Accepted
use-package: load all defined packages
Take a look at the customization options available for use-package. I think you can set use-package-always-demand based on how Emacs was started to get the behavior you want.
For example at the ...
7
votes
Accepted
How to install smart-mode-line powerline theme with use-package
have you tried that for example:
(use-package smart-mode-line-powerline-theme
:ensure t
:after powerline
:after smart-mode-line
:config
(sml/setup)
(sml/apply-theme 'powerline)
)
7
votes
Accepted
use-package ensure not working: package downloaded but gives warning and skips config
The symbol you must give use-package is not the name of the package,
but the name of a feature provided by the package. org-plus-contrib
provides the org feature. You should use
(use-package org
:...
6
votes
How can I defer loading elpy using use-package?
The author of elpy suggests doing this via an advice, because elpy-enable modifies the python-mode-hook variable, so calling it inside the mode-hook is too late.
simple approach:
(package-initialize)
(...
6
votes
Package `exec-path-from-shell` isn't setting PATH variables from `.zshenv` on MacOS
You should remove :defer f, because you don't want exec-path-from-shell to be defer loaded and you are going to use function from it when Emacs starts. Try something like the following
(use-package ...
6
votes
How to update packages installed with use-package
There is a highly recommended package called paradox that extends package management commands.
Read more from https://github.com/Malabarba/paradox
(use-package paradox
:init
(setq paradox-github-...
6
votes
Accepted
Symbol's function definition is void: use-package
The emacs-darcula-theme README suggests installing via use-package, but this requires installing the use-package first. Since you've already installed the darcula-theme package, you can just do a ...
6
votes
Accepted
Rewrite a package config using use-package
it doesn't seem to work
The first issue I see is that you replaced the string "persp-mode-autoloads" with the symbol 'persp-mode-autoloads in the first argument to with-eval-after-load. These exhibit ...
6
votes
How to properly define hydras inside use-package?
The package use-package-hydra, which is also available on MELPA, should solve this problem. I combined your code blocks into a single (use-package) expression (see keywords :after, :bind and :hydra). ...
5
votes
Unbinding key using use-package
Using use-package's :bind by setting the binding to nil worked for me in similar cases, but I use it with :straight org-plus-contrib and I do not know if this approach applies the same with built-in ...
5
votes
Setting up a theme using use-package
My user-emacs-directory points to a folder on my Dropbox.
Apparently use-package :load-path points to the user-emacs-directory by default, I just had to put "themes" and the necessary files inside it.
...
5
votes
Accepted
Why do the latest versions of use-package and CIDER break each other?
Commit 70971d0a918053d86e76e4ff8248b25a8646940e removed support for emacs 24.3 and below. This removed a file called cider-compat.el and replaced it with an emacs core file subr-x.el Supposedly this ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
use-package × 265init-file × 40
package × 40
key-bindings × 32
org-mode × 16
hooks × 13
package-repositories × 12
autoload × 12
install × 8
dired × 7
debugging × 6
evil × 5
major-mode × 5
keymap × 5
config × 5
load × 5
error × 5
spacemacs × 4
magit × 4
helm × 4
emacsclient × 4
projectile × 4
start-up × 4
ess × 4
lsp-mode × 4