11
votes
How do I patch an Emacs package?
To chime in with a slightly different work flow for loading different versions of packages, here's a couple of variations of what I do, both of which use the load-path to control which version I'm ...
7
votes
How to generate and activate autoloads for local packages?
The correct solution (IMO) is to use a package manager which has explicit support for this use case. This would be straight.el, which I wrote for this purpose.
You can read verbose documentation, ...
5
votes
How do I patch an Emacs package?
Good question! The answer is that until now, there was no good answer, since none of the existing package managers were designed for this use case (except for Borg, but Borg does not attempt to handle ...
3
votes
Accepted
Why is hl-line+.el not a package?
It was on MELPA. It's not on MELPA anymore because MELPA doesn't want to pull from Emacs Wiki anymore. It's on Emacs Wiki because that's where I prefer to upload it. And it is a "package" - a single ...
3
votes
Are there license restrictions for Emacs Lisp packages?
An MIT license is clearly fine, since it is compatible with the GPLv3+.
What is less clear is whether it would be legal to release an Elisp package with a license that is not compatible with the ...
3
votes
How to migrate snippets of scripts into my own packages?
You can maintain your own package archive locally. It's not much more than a directory containing your packages. You just need to make sure you have an entry for it in your package-archives variable.
...
3
votes
How to generate and activate autoloads for local packages?
If you have replaced an already installed package with a different version, and all you are missing is the autoloads file, you can use package-generate-autoloads to generate it:
(package-generate-...
3
votes
How to load only a subset of installed packages
This use case is a terrible deficiency of package.el, so don't use package.el. Instead, use a package manager like straight.el (I'm the author), which was specifically designed to support this use ...
2
votes
How do I patch an Emacs package?
I don't think there's a good answer to that yet (I expect you can get a partial solution with Cask, tho I'm not sufficient familiar with it to give you a good answer using it; hopefully someone else ...
2
votes
How do I patch an Emacs package?
These are all good questions!
Emacs works on a memory-image model, where loading new code alters the memory image of the running instance. Defining new functions and variables is easily undone, if ...
2
votes
How do I patch an Emacs package?
The other answers to this question, including my other answer, talk about patching an Emacs package by making changes to its code. But people finding this question via Google might be thinking of ...
2
votes
How to generate and activate autoloads for local packages?
I do the following on Linux:
I setup a local melpa repository by cloning melpa.
I modify the recipes I want to point to my local packages. The following is local-melpa/recipies/ace-window
(ace-...
2
votes
Accepted
speed up sml-modeline, is this possible?
The slow-down is caused by calls to line-number-at-pos. As mentioned in the answer by username Constantine in the related thread entitled "A faster method to obtain line-number-at-pos in large ...
2
votes
How to migrate snippets of scripts into my own packages?
Yet another alternative would be to use quelpa, which allows you to use local folders or git repos as sources for package installation. It also has integration with use-package via quelpa-use-package....
2
votes
Accepted
How to develop a package I also have installed?
Since asking this question I've found use-package & straight can be used for this purpose.
Given this use-package example.
(use-package recomplete
:commands (recomplete-ispell-word))
Can be ...
1
vote
Accepted
Using straight.el to develop your own package which is also on github
I understand your concerns, but I'm not sure they're founded. Although I'm not a straight expert, I have been using it since at least November 2020. You're welcome to look at my init.
My ...
1
vote
How to run commands from other packages if they exist, without depending on them?
This can be done using with-eval-after-load which runs after the package has been loaded, or immediately if it's already loaded.
Submitting own answer, although there may be better alternatives.
(...
1
vote
Accepted
Development elisp package
You're supposed to fill in the "TODO" in the Cask file with the actual package file of your project.
1
vote
Accepted
Whats the correct structure and way to load libraries / packages?
The usual way to bundle elisp code for redistribution to Emacs users is via package.el, which is described in the elisp manual. This information is available from within emacs as well, C-h i m elisp &...
1
vote
How to migrate snippets of scripts into my own packages?
A lightweight alternative to making a full-blown "package" that is amenable to the Emacs package-handling system (package.el) and is loadable into one of the existing package repositories is to simply ...
1
vote
How can I run a package setup only once?
Well you need to save this information somewhere persistently.
You might write data to a package-specific config file (see locate-user-emacs-file), but the simplest approach is probably to use ...
1
vote
Manually installing a multifile package to “elpa/”
package.el does not have good support for this use case. You have to re-run package-install-from-buffer every time you make an update to the package, and also M-x find-function and friends will not ...
1
vote
1
vote
Coedit mode on Emacs
There's rudel, available on GNU ELPA, which intends to do that (it supports various protocols of communication between the various Emacs sessions).
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
package-development × 38package × 13
package-repositories × 5
org-mode × 2
spacemacs × 2
elisp × 2
byte-compilation × 2
autoload × 2
cask × 2
interactive-development × 2
hooks × 1
files × 1
git × 1
use-package × 1
mode-line × 1
projectile × 1
ess × 1
r × 1
syntax-table × 1
syntax × 1
warning × 1
emacs24.4 × 1
web-browser × 1
lexical-scoping × 1
require × 1