Hot answers tagged

58 votes
Accepted

How to proceed on package.el signature check failure

set package-check-signature to nil, e.g. M-: (setq package-check-signature nil) RET download the package gnu-elpa-keyring-update and run the function with the same name, e.g. M-x package-install RET ...
joe_maya's user avatar
  • 736
28 votes
Accepted

What does (require 'package) mean for emacs and how does it differ from load-file?

If you load a library repeatedly, that file will be read and its code evaluated repeatedly (each and every time you load it). If you require a library repeatedly, it will load the library once (at ...
phils's user avatar
  • 50.5k
20 votes
Accepted

A non-free package in Emacs?

You can find information about this package on the Debian webpage, which includes this: This package contains the architecture independent infrastructure that is not compliant with the Debian Free ...
tarsius's user avatar
  • 25.6k
20 votes

Failed to download 'gnu' archive

Add the following before package-initialize: (setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3") This is apparently a bug in Emacs 26.2 for MacOS. I found this solution in this reddit thread.
gguy's user avatar
  • 301
17 votes
Accepted

How can I improve startup time despite many packages?

One of the design choices in package.el was to try and make things "simple". Part of this is that package-initialize searches for all the packages that are installed, then tries to figure out which ...
Stefan's user avatar
  • 26.3k
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 ...
Basil's user avatar
  • 12.3k
15 votes

How to proceed on package.el signature check failure

If you try to install the package gnu-elpa-keyring-update (which seems to have the purpose of updating the keys used by the package manager), you will see in its description that you can do: gpg --...
Johan's user avatar
  • 315
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 (...
Basil's user avatar
  • 12.3k
14 votes
Accepted

How to automate installation of packages with .emacs file?

The easiest way is to install use-package. (package-initialize) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t) (dolist (package '(use-...
njdan5691's user avatar
  • 156
12 votes
Accepted

Easiest way to downgrade a package installed via MELPA

When you update your packages through the M-x list-packages interface, after the successful installation of the package, you'll get asked if you want to remove the old package. Don't delete them so ...
p_wiersig's user avatar
  • 1,071
11 votes

Easiest way to downgrade a package installed via MELPA

The "nuclear option", as it were, would be to ditch package.el entirely and instead use the package manager that I wrote, straight.el. The advantage would be that straight.el installs packages by ...
Resigned June 2023's user avatar
11 votes
Accepted

Is there a package manager for emacs that can use git repositories directly?

There are several: Starting with Emacs 29 there is the built-in package-vc-install (Fetching Package Sources (GNU Emacs Manual)) Quelpa Quelpa allows for fetching packages from arbitrary sources and ...
Hubisan's user avatar
  • 1,715
10 votes
Accepted

How to view package Full Description (commentary section) inside Emacs

M-x finder-commentary RET <library-name> RET extracts that section and presents it in a separate buffer for reading. There is also M-x finder-by-keyword for discovering libraries this way.
wasamasa's user avatar
  • 22.1k
9 votes

Interaction between package, use-package, and quelpa

While quelpa and use-package have no direct relation with each other, there now is a package, quelpa-use-package, which adds a quelpa handler to use-package. This allows one to use use-package with a ...
ack's user avatar
  • 191
9 votes

"no match" error after `M-x package-install` on a package

helm-gtags is not available in elpa repository. You should add melpa repository to your packages archives to install helm-gtags. Add the following code in your emacs init file, (setq package-archives ...
Hariharan's user avatar
  • 473
9 votes
Accepted

File error: Cannot open load file

Looking at the help from require (C-h f require) (require FEATURE &optional FILENAME NOERROR) If feature FEATURE is not loaded, load it from FILENAME. If FEATURE is not a member of the ...
JeanPierre's user avatar
  • 7,423
9 votes
Accepted

(file-name-directory #$): How does Emacs know what #$ is?

M-x elisp-index-search RET #$ RET tells us: Internally, the dynamic loading of documentation strings is accomplished by writing compiled files with a special Lisp reader construct, ‘#@COUNT’. ...
phils's user avatar
  • 50.5k
8 votes
Accepted

How to fix this startup package initialization problem?

The "misbehaving" file ~/.emacs.d/elpa/archives/gnu/archive-contents was most likely overwritten by HTML content of a page reporting a connection error. It should be safe to remove it. Emacs will ...
wvxvw's user avatar
  • 11.3k
8 votes

Emacs does not contain package "package"

OS-X comes with emacs 22, which is several years out of date. One easy way to get a current emacs is by downloading from http://emacsformacosx.com/. This will give you package.
Jon Kåre Hellan's user avatar
8 votes
Accepted

Why is Emacs asking me to save changed buffers, when I install a package?

There isn't a lot of logic behind this. At least, not in the sense of a conscious decision. It's more of a feature of the compilation process that really doesn't apply to package management but nobody ...
Malabarba's user avatar
  • 23.1k
8 votes

How to update Org to latest version using package repo's / git clone in Ubuntu

Add: (require 'package) (setq package-archives '(("melpa" . "https://melpa.org/packages/") ("gnu" . "https://elpa.gnu.org/packages/") ("org" . "http://orgmode.org/elpa/"))) (...
Alex's user avatar
  • 1,038
8 votes
Accepted

Emacs (spacemacs) not keeping extensions

This is expected, from the FAQ: Why are packages installed with package-install automatically deleted by Spacemacs when it boots? By default Spacemacs will keep only the packages that you use (i.e. ...
syl20bnr's user avatar
  • 2,095
8 votes
Accepted

how do you disable all key binding for a package?

As Drew says, you cannot do this without knowing specifically which keymaps and bindings are being affected. There are common cases in which all the bindings are liable to be in a single keymap (...
phils's user avatar
  • 50.5k
8 votes

How can I remove an incompatible package?

Are you sure they are installed? The difference between them and the obsolete packages in my package list is that the obsolete packages have a relative path listed in the Status: line, just like ...
p_wiersig's user avatar
  • 1,071
8 votes
Accepted

Package for live inline rendering for markdown/org mode text with css styling?

The answer to question 2 is yes! If you have an image cat.png in the same folder as you org file, you can insert it using simply [[./cat.png]] and toggle inline display with C-c C-x C-v. Here's a link ...
Lino Ferreira's user avatar
8 votes
Accepted

package-selected-packages. What is it useful for?

From the variable’s documentation: Store here packages installed explicitly by user. Whatever you explicitly install (e.g. with the package-install command, or with a package “manager” like use-...
GergelyPolonkai's user avatar
7 votes

What are the use cases of alternative package managers vis-à-vis `package.el`?

I have written a new package manager for Emacs, straight.el, which attempts to improve on all existing package management solutions. There is an extensive section in the straight.el documentation ...
Resigned June 2023's user avatar
7 votes

How to install a specific version of package?

You can use el-get to install any specific revision of any package, from a git repo. (el-get-bundle git-timemachine :checkout "3.0") This will clone git-timemachine from github and checkout tag 3....
lorefnon's user avatar
  • 171
7 votes
Accepted

How to blacklist a package?

I don't know how to blacklist the installation of a package. But it's easy to prevent it from loading. If you put (provide 'auto-complete) in your init file, then any package that tries to load auto-...
Gilles 'SO- stop being evil''s user avatar
7 votes

How to blacklist a package?

What @Gilles wrote is the general answer I would have given also. But note that using provide does not prevent code from loading the package. It prevents code from loading the package only by require....
Drew's user avatar
  • 77k

Only top scored, non community-wiki answers of a minimum length are eligible