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
61
votes
12answers
8k 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 ...
18
votes
3answers
8k 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/...
28
votes
6answers
8k 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 ...
131
votes
4answers
18k 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 ...
14
votes
1answer
8k 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-...
16
votes
3answers
9k 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-...
9
votes
1answer
501 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 ...
15
votes
3answers
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?
11
votes
3answers
4k 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 ...
7
votes
1answer
946 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 ...
6
votes
1answer
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): ...
55
votes
9answers
27k 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 ...
16
votes
2answers
4k 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. ...
16
votes
2answers
10k 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)...
12
votes
3answers
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 ...
7
votes
2answers
5k 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. ...
10
votes
2answers
831 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 ...
10
votes
2answers
5k 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) ...
7
votes
1answer
6k 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 ...
10
votes
3answers
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)) ...
7
votes
2answers
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 ...
4
votes
2answers
824 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-...
9
votes
2answers
5k 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 ...
4
votes
3answers
481 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://...
4
votes
2answers
5k 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 ...
3
votes
2answers
500 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-...
3
votes
2answers
766 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. ...
40
votes
5answers
11k 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 ...
31
votes
2answers
6k 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-...
22
votes
2answers
6k 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 ...
21
votes
3answers
6k 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 ...
10
votes
3answers
2k 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 ...
12
votes
2answers
378 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 ...
15
votes
4answers
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 ...
5
votes
1answer
624 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 ...
8
votes
3answers
12k 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 ...
7
votes
1answer
3k views

Create private spacemacs layer for yafolding

I had tried to create my first (private) layer for spacemacs, for the yafolding package. So I had created the ~/.emacs.d/private/yafolding/packages.el file with the following contents: (setq ...
4
votes
2answers
7k 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: ...
9
votes
2answers
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'...
3
votes
3answers
8k views

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

See the image below. . I want to update my org from Version: 2016071 to Version 20161003. It does not give me an option to upgrade when I use the package-list-packages command. An ...
2
votes
4answers
951 views

How to install package without install dependencies through “package”?

I am using :ensure t of use-package to install "go-prjectile" package which depends on "go-rename". But I would like to use a local version of "go-rename" and its path is already added to load-path. ...
10
votes
2answers
716 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: ...
8
votes
1answer
2k 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 ...
6
votes
1answer
132 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 ...
4
votes
1answer
248 views

How to get release note of updated package in Spacemacs

In spacemacs, you can update all the installed package. However, is there a way to get a release notes for each package which have been updated ?
3
votes
1answer
146 views

Tell package.el that dependency is already taken care of

Let's say I'm following the master branch of Org mode. So, I have it under ~/src/org-mode add tell my Emacs to load it by adding "~/src/org-mode/lisp" to load-path. I use ELPA and MELPA to install ...
2
votes
1answer
195 views

Transitioning to MELPA

It's time. I've spent too long with too many pieces of elisp lying around in site-lisp, outdated until I manually grab a new copy. I am new to the ELPA/MELPA/package.el/el-get world, but have ...
2
votes
3answers
2k views

How can I script emacs to install packages from list?

I have a list of packages installed that I would want to install on another computer. How would I use the info in the packages buffer or some other list to generate a script that would be used to ...
2
votes
2answers
292 views

Managing libraries hosted on EmacsWiki

I recently learned that some former MELPA libraries are now available only from the EmacsWiki. Let aside security implications, Is there an equivalent of M-x package-list-packages for those ...
13
votes
1answer
3k 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 ...