Skip to main content

Questions tagged [package]

Emacs includes a facility that lets you easily download and install packages that implement additional features. Each package is a separate Emacs Lisp program, sometimes including other components such as an Info manual.

Filter by
Sorted by
Tagged with
63 votes
12 answers
9k views

Synchronize packages between different machines

I use emacs in different places and I want to have a similar setup and packages installed everywhere. I guess I can use a version control repository for the setup files. Since I use Prelude, that ...
El Diego Efe's user avatar
  • 1,631
19 votes
3 answers
9k views

Why do I have to add each package to load-path? (or Problem with require 'package in my init file)

Each time I install a package from the Package Menu, if I try to require it in my init file I get an error unless I manually add it to the load-path: (add-to-list 'load-path "/home/nick/.emacs.d/elpa/...
Nick's user avatar
  • 4,513
31 votes
6 answers
10k views

Switching between window layouts

When I configure a custom layout and then just need to temporary look into one file fullscreen and once I want that layout back - I need manually to reflow it. I would like a plugin/elisp code to ...
lukas.pukenis's user avatar
137 votes
4 answers
21k views

What are the practical differences between the various Emacs Package Repositories?

I notice that there are several different repositories that often contain the same software. Why would I want to prefer: GNU ELPA Marmalade MELPA over the others? Since any one repository does not ...
Eric Brown's user avatar
  • 3,232
70 votes
9 answers
38k views

How to proceed on package.el signature check failure

I just tried to install ascii-art-to-unicode from the gnu repository (http://elpa.gnu.org/) via list-packages. I get the following error: package--check-signature: Failed to verify signature ...
user avatar
17 votes
3 answers
12k views

Failed to download 'gnu' archive

I tried to install emacs and in an attempt to install MELPA, tried: (this is my init.el file) (package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-...
bobbob's user avatar
  • 171
11 votes
1 answer
1k views

When to specify a package name in use-package's :ensure tag?

use-package lets you automatically install packages by using the :ensure tag. You can do that as follows (use-package <package> :ensure t) But for some packages that doesn't work, such as ...
LinFelix's user avatar
  • 259
36 votes
2 answers
7k views

Is it possible to use both MELPA and MELPA-stable at the same time?

I use melpa-stable as an additional package repository, but one of the packages I like to use (icicles) isn't available on melpa-stable. Is there any way to configure package.el to normally use melpa-...
Timo Geusch's user avatar
28 votes
1 answer
17k views

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

I just began using emacs a few days ago and I read somewhere that (require 'package-name) is not needed when the said package is installed using package-install. But why, what does (require 'package-...
Chakravarthy Raghunandan's user avatar
16 votes
3 answers
2k views

Noninteractively upgrade all packages

I want my emacs to automatically upgrade all packages under certain conditions. What's the best way of doing this?
PythonNut's user avatar
  • 10.4k
11 votes
3 answers
5k views

org-plus-contrib and org with `require` or `use-package`

How can I ensure I'm downloading and using org-plus-contrib from the org-mode repository using require or use-package? Package.el downloads the package, compiles everything and then says it can't load ...
wdkrnls's user avatar
  • 3,707
9 votes
1 answer
10k views

require vs. package-initialize?

Ok, this is a noob question but I've digging into this enough that I think it's reasonable to ask :) My question: In one's .emacs / init.el file, can one use require to load packages that were ...
MikeTheTall's user avatar
7 votes
1 answer
1k views

How change the contents of a package (header2.el)?

I found the package Automatic File Headers, I cheered and installed it with MELPA. I have found file headers to be very valuable in project development. I always know who has been where and how many ...
ReneFroger's user avatar
  • 3,890
18 votes
2 answers
12k views

how to use org-plus-contrib?

I would like to use org-mode's contributed packages: http://orgmode.org/worg/org-contrib/ [EDIT] SOLUTION: As per answer below: 1) First one should have the elpa packages added. (require 'package)...
Leo Ufimtsev's user avatar
  • 4,568
16 votes
2 answers
5k views

Using package.el to install and update but use-package for loading and configuring

After recently learning about use-package I decided to port my configuration to it but found myself reluctant to give up the convenience of using package.el to install packages and keep them updated. ...
Omar's user avatar
  • 4,842
12 votes
3 answers
2k views

Automatically update packages and delete old versions

I'm a bit compulsive about updating packages for all of my systems, so I find myself running list-packages -> U -> x -> y -> y pretty much daily to update my packages and delete old versions once the ...
Ryan's user avatar
  • 4,049
11 votes
3 answers
3k views

How to generate and activate autoloads for local packages?

It is clear that not all local/custom/personal packages should be officially released, and it would be silly to do so just to benefit from built-in package management support. I'm wondering how to ...
Alexander Shukaev's user avatar
10 votes
3 answers
2k views

Package manager encoding error

Upon running package-list-packages, I get the following error. These default coding systems were tried to encode text in the buffer ` *temp*': (iso-latin-1-dos (3242 . 37326) (3243 . 40165)) ...
Matthew Piziak's user avatar
10 votes
2 answers
1k views

Install packages globallly

Is this something that can / should be done? For example, often I use emacs in my user account and sometimes root account. When using the package manager (i.e marmalade or something) do I have to ...
user2237076's user avatar
10 votes
2 answers
6k views

problem of loading a package at emacs startup [duplicate]

According to Emacs Eclim, I added the following to ~/.emacs.d/init.d for emacs-eclim: (require 'eclim) (global-eclim-mode) ; If you want to control eclimd from emacs, also add: (require 'eclimd) ...
Tim's user avatar
  • 5,027
10 votes
2 answers
6k views

How do I work out what the problem is with the emacs package system?

I am trying to set up emacs (on cygwin / Win10) to handle JSON. I started with joshwnj/json-mode and was stoked to discover that emacs will now install its own dependencies from online repos. Fab ...
Adam's user avatar
  • 241
9 votes
4 answers
7k views

How to install a specific version of package?

When I do M-x package-install RET magit it installs the latest version of magit which is 2.1.0. I want to install magit 1.4.2. I don't want to do it manually by downloading and loading package. ...
Chillar Anand's user avatar
7 votes
2 answers
1k views

how to programmatically load packages in .emacs file

Largely following the approach described by Bozhidar Batsov on the page: http://batsov.com/articles/2012/02/19/package-management-in-emacs-the-good-the-bad-and-the-ugly/, I tried to build my emacs ...
jeimer's user avatar
  • 73
6 votes
1 answer
5k views

Required package `emacs-24' is unavailable

I use DropBox to share my .emacs and .emacs.d with the various machines I use. I setup helm using emacs on my mac but now I'm having issues when opening emacs on my Linux box: Warning (emacs): ...
Mike's user avatar
  • 205
4 votes
2 answers
6k views

Can't Install org Through Package Manager

I'm trying to upgrade org in my setup by following the instructions here but I don't see org listed as an option. The instructions say to report it as a discrepancy but I'm thinking it's more likely ...
kfoley's user avatar
  • 527
4 votes
3 answers
680 views

Automatically installing the available version of org

Based on this reply, my code has the following function that installs its dependencies: (defun literef-install-packages() "Install any missing packages. The code is taken from `https://...
AlwaysLearning's user avatar
4 votes
2 answers
1k views

Unable to install ESS package

I want to install ESS. I initialised the package manager with (require 'package) (add-to-list 'package-archives '("melpa-stable" . "https://stable.melpa.org/packages/")) (package-...
emonigma's user avatar
  • 1,907
4 votes
2 answers
754 views

How to update a magit install

I am trying to update my Magit install. The Magit manual has install instructions on https://magit.vc/manual/magit/Installing-from-an-Elpa-Archive.html#Installing-from-an-Elpa-Archive M-x package-...
wolfv's user avatar
  • 1,393
3 votes
2 answers
879 views

Detect whether a package (AUCTeX) is installed from .emacs

In my .emacs, I distinguish between two scenarios: AUCTeX is not available. Then I load my customizations for the basic TeX mode — let's call that (my-tex-mode-customizations). AUCTeX is available. ...
Gilles 'SO- stop being evil''s user avatar
2 votes
3 answers
225 views

Coedit mode on Emacs

I often use the web service Kobra.io, in which we can edit a specific file with some people together at the same time. Is there such a package on Emacs? I'd like to edit a specific lisp code at the ...
Hiroki's user avatar
  • 41
44 votes
6 answers
15k views

How to test REST API with Emacs?

I'm putting together an app, and want to be able to test the api end points. I figured Emacs would be a cool way to go - especially if JSON responses could be parsed and the return data used in ...
Ryan White's user avatar
25 votes
2 answers
9k views

Difference between init and config in use-package

I have a configuration like this: (use-package html-mode :mode "\\.html\\'" :config (progn (add-hook 'html-mode-hook 'turn-off-auto-fill))) Now when I go and visit an HTML file, I observe ...
Sibi's user avatar
  • 3,733
22 votes
3 answers
7k views

How to use skewer-mode?

I am currently struggling to use skewer-mode in Emacs. I downloaded and installed skewer-mode via MELPA, so all the dependencies should be inplace. For testing purposes I even downloaded the boidsjs ...
JacksGT's user avatar
  • 393
18 votes
3 answers
13k views

How to navigate quickly to my installed packages?

When I'm in the package manager (M-x package-list-packages), I'd like to quickly navigate to my installed packages. There are literally thousands of packages marked as available, installed, or built-...
Jeffrey Bauer's user avatar
18 votes
4 answers
2k views

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

Background I use emacs daily, but mostly to get things done. I don't really like customising it more than adding packages and I don't like troubleshooting. I want emacs to fade into the background ...
snth's user avatar
  • 201
14 votes
1 answer
4k views

after-init-hook vs eval-after-load/with-eval-after-load

I've found the rather useful How Packages work in Emacs 24, however, I'd like a definitive answer from an experienced user or a core developer as to which of these is actually preferred in the typical ...
Erik Kaplun's user avatar
12 votes
2 answers
435 views

What are some built-in packages with nice source code? [closed]

I'm trying to get familiar with Emacs Lisp, its syntax, data structures etc, so I was wondering what are some built-in packages whose source could help me better understand how to use the language and ...
caisah's user avatar
  • 4,096
10 votes
4 answers
6k views

How do I see which packages are loaded?

After quite some hacking I now longer get a warning from a package, did I have success? How do I list all loaded packages? (NOT INSTALLED, installation was not the problem, loading was, eg require).
Jappie Kerk's user avatar
10 votes
2 answers
775 views

Technical considerations for package maintainers to not use the Emacs package manager?

I am noticing some notable package maintainers are choosing to not use the Emacs package management system (ESS?) or complaining about its limitations (Helm). Quoting from Helm's README.md: ...
Amelio Vazquez-Reina's user avatar
9 votes
2 answers
1k views

How does emacs manage its packages?

I installed auctex from Ubuntu's software center, and then I installed a newer version of auctex from emacs. I then uninstalled the auctex installed by Ubuntu's software center. I found that it didn'...
Tim's user avatar
  • 5,027
9 votes
3 answers
16k views

package-install reports "no match"

From the Emacs Eclim github page: Install emacs-eclim. You have two options: Installation from the MELPA package archive. Just add the archive to package-archives if you haven't already, and then ...
Tim's user avatar
  • 5,027
8 votes
1 answer
3k views

How to fix this startup package initialization problem?

All of a sudden Emacs returns an error at the startup, when I run $ emacs --debug-init from the terminal (linux) I get this debug error message: Debugger entered--Lisp error: (wrong-type-argument ...
doctorate's user avatar
  • 1,829
8 votes
1 answer
3k views

M-x list-package fails with error "certificate could not be verified"

My environment: Linux Mint 17.3 (based on Ubuntu 14.04) Emacs 25.3.1 The value of package-archives: (("gnu" . "https://elpa.gnu.org/packages/") ("melpa" . "https://melpa.org/packages/") ("...
York's user avatar
  • 221
6 votes
2 answers
2k views

What does dependency mean in the Status field of a package shown in list-packages

The command list-packages shows the list of available packages. A Status column appears with several possible values: available installed dependency built-in incompat And the packages seem to be ...
nephewtom's user avatar
  • 2,271
6 votes
1 answer
1k views

Since Emacs 25.1, package-list-packages modifies and writes my .emacs

I've just installed Emacs 25.1. My .emacs works well on Emacs 24.5. But now that I'm on Emacs 25.1, when I do M-x package-list-packages, Emacs modifies and write .emacs in the background with the ...
Jérôme Radix's user avatar
6 votes
1 answer
3k views

"Unable to activate package" when starting Emacs

I get the following message when starting Emacs: Warning (emacs): Unable to activate package `elpy'. Required package `highlight-indentation-0.5.0' is unavailable Warning (emacs): Unable to activate ...
Amelio Vazquez-Reina's user avatar
6 votes
1 answer
192 views

How do I include non-code resources as part of an Emacs package?

I have a project that wants to play a sound file. I'd like to distribute this project in MELPA. There are two issues I'm having with that. They're both part of the question "how do I use ...
zck's user avatar
  • 9,112
6 votes
1 answer
518 views

package.el: How can I avoid byte-compilation

How can I tell package.el to not byte-compile? It is generally OK to byte-compile installed packages but it makes difficult to test a new Emacs with byte compiler improvements (such as Emacs 26 from ...
Yasushi Shoji's user avatar
5 votes
2 answers
9k views

How to install Auctex

This is how I attempted to install the package: I ran the command list-packages and then tried to install the auctex package in package mode. This was the line showing auctex entry in package mode: ...
Sibi's user avatar
  • 3,733
5 votes
1 answer
808 views

Emacs tea-time is supposed to be integrated in org-mode, but apparently, it's not

I'm talking about tea-time. In short: It allows you to set up time intervals and after this interval is elapsed, Emacs will notify you with sound and notification. What I'm really interested in ...
Certainly's user avatar
  • 117