Questions tagged [package-development]
The package-development tag has no summary.
38 questions
0 votes
1 answer
55 views
How do you use shorthands for autoloads?
I want to write a shorthand for a shorthanded autoloaded function in a package, like so: ;;; super-duper-long-package-name.el --- Provide a cool command -*- lexical-binding: t -*- ;; Version: 0.1.0 ;...
3 votes
0 answers
36 views
How to switch between distributed and local development versions of a package?
I use the stable version of a package (0.7.0 of gptel) which is distributed on melpa-stable. I installed it via package.el and I configure it via a use-package. I want to be able to switch easily ...
1 vote
0 answers
18 views
flycheck errors on (require) statements in package: cannot load file [duplicate]
i maintain a multi-file package, and i'm having trouble with require statements in it, both for child files of the main parent file inside the package, and for requiring dependencies, which in my case ...
1 vote
0 answers
59 views
Canonical Structuring of Elisp Source Code Repository
Most language ecosystems have a canonical code repository structure for breaking a package or library into multiple files. This usually takes the form of a directory tree for splitting packages, ...
0 votes
2 answers
1k views
Using straight.el to develop your own package which is also on github
I am considering using straight.el, but reading the docs, I have difficulties to understand whether the particular use cases I am interested in are handled as I hope to. Here are the cases: I have ...
1 vote
0 answers
283 views
ESS R workflow with package management in renv (or Packrat)
I do all my R development in Emacs via org-mode and ESS. All of my R projects are managed out of a single org-mode document (studies.org). Each project has a header and is tangled to its own project ...
4 votes
2 answers
232 views
How to develop a package I also have installed?
When developing a package which is also installed via an online repository, there is a practical problem. /source/my-emacs-package git repository where I have my code. ~/.config/emacs/elpa/my-emacs-...
1 vote
1 answer
105 views
How to run commands from other packages if they exist, without depending on them?
I have package that has no relation to evil-mode, but doesn't work well when the command is repeated. While the repeat command can be disabled, I don't want to add a dependency on evil mode just to ...
4 votes
1 answer
1k views
Debugging "Package lacks a file header"
I'm playing around with developing and publishing an Emacs package, very simple stuff, just trying things out before I commit to a bigger project. The problem that I'm having is that after I've made a ...
2 votes
1 answer
454 views
Why is hl-line+.el not a package?
Apparently hl-line+.el solves certain performance problems of hl-line-mode. It is created in 2006, and last updated in 2018. Despite that, it was never packaged to be available at e.g. melpa, which ...
6 votes
1 answer
931 views
Are there license restrictions for Emacs Lisp packages?
GNU Emacs is licensed under the GNU General Public License (GPL). The GPL is a copyleft license that requires any derivative work to also be GPL-licensed. Does that impose restrictions on what license ...
0 votes
2 answers
181 views
Development elisp package
I want to start developing emacs packages. I would like to use cask, so I did: $ cask init --dev It worked well, and generated the Cask file tree -La 1 . ├── .git ├── .gitignore ├── Cask └── README....
0 votes
1 answer
366 views
Whats the correct structure and way to load libraries / packages?
I have create a quite large emacs package now its split over many files. currently i am running an org block with multiple load calls to load them, this is not idea for redistribution. How should I ...
5 votes
3 answers
351 views
How to migrate snippets of scripts into my own packages?
While there are many docs on how to write packages, mirror your own package git repo's ... etc. This seems quite a heavy solution. What would be a good approach to having some local packages which ...
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 ...