Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

54
votes
12answers
5k 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 ...
15
votes
3answers
6k 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/...
118
votes
4answers
14k 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 ...
22
votes
6answers
5k 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 ...
6
votes
1answer
117 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 ...
4
votes
1answer
4k 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): ...
13
votes
2answers
3k 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 ...
11
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
3answers
3k 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 ...
15
votes
2answers
3k 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. ...
12
votes
3answers
965 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 ...
5
votes
1answer
2k 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-...
7
votes
2answers
3k 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. ...
12
votes
3answers
1k 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?
9
votes
3answers
1k 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
1answer
711 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 ...
5
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
544 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. ...
3
votes
3answers
92 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://...
3
votes
2answers
182 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-...
27
votes
4answers
5k 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 ...
26
votes
2answers
4k 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-...
19
votes
3answers
5k 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 ...
11
votes
2answers
316 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 ...
12
votes
2answers
5k 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)...
13
votes
4answers
835 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 ...
10
votes
2answers
581 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 ...
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 ...
3
votes
1answer
418 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 ...
5
votes
2answers
7k 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 ...
3
votes
2answers
3k 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: ...
10
votes
2answers
625 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
2answers
915 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'...
5
votes
1answer
90 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 resources in ...
5
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 ...
3
votes
2answers
490 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. ...
2
votes
1answer
157 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 ...
1
vote
3answers
283 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 ...
12
votes
1answer
2k 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 ...
6
votes
1answer
2k 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 ...
6
votes
1answer
122 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 ...
6
votes
1answer
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 ...
5
votes
1answer
60 views

package-install is “checking” a lot of files

On running (package-install <some-pkg-name>), I am seeing a long list of messages of the form Checking /some/path/to/a/file. What are these checks that package-install does? How can I exclude ...
5
votes
1answer
467 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/") ("...
3
votes
1answer
231 views

Installing Auctex from Package Manager: Scan error

When install auctex from the Package manager using GNU Archive, I get this error: forward-sexp: Scan error: "Unbalanced parentheses", 18984, 38451 This always happens to me when I install it using ...
3
votes
1answer
56 views

Tell packages not to change certain variables

It seems like some variables that I set at one place in my init file could potentially be modified by other packages that are loaded later. One place where this has come up for me is the variable ...
3
votes
2answers
1k views

Why does (require 'use-package) fail from my init file, but succeed interactively? [duplicate]

With the following init file, emacs chokes on the first line: bash-4.3$ pwd /Users/sean/.emacs.d bash-4.3$ cat init.el (require 'use-package) (use-package package) bash-4.3$ emacs --version | head ...
2
votes
1answer
84 views

package-install doesn't pick up dependencies that are already in site-lisp

I have a bunch of software git-cloned into my site-lisp/ directory. It and all of its sub-directories are in my load-path. The problem I noticed is that package-install sometimes insists on pulling ...
2
votes
1answer
2k views

emacs-snapshot - seq package missing

I use the following script to install Emacs 25 on Ubuntu, sudo add-apt-repository -y ppa:ubuntu-elisp sudo apt-get update sudo apt-get install emacs-snapshot When I start the emacs-snapshot program ...
1
vote
1answer
681 views

What does package-initialize do with package archives?

I'm reading through the definition of package-initialize to try and understand what goes on under the hood, and part of what it does is to read the package archive files. I see it comparing version ...