The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [package-development]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 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 ...
1
vote
1answer
47 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 ...
4
votes
1answer
173 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
2answers
61 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 └── ...
0
votes
1answer
53 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
3answers
166 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 ...
9
votes
3answers
853 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 ...
1
vote
2answers
148 views

speed up sml-modeline, is this possible?

I really like the package sml-modeline (it is available on melpa): https://melpa.org/#/sml-modeline With it I replaced my vertical scrollbars. But when opening large text files like this Raspbian-...
0
votes
1answer
35 views

How can I run a package setup only once?

I'm writing a package to interact with a web service via HTTP API. But I need to make an action once to get permission to send my data. This action must be made just one time. How can I configure my ...
16
votes
6answers
1k views

How do I patch an Emacs package?

I wish to alter a package, test it and hopefully submit a pull request afterwards. How do I do it in a safe and efficient way? The question might feel too broad, I will accept the answer that covers ...
2
votes
2answers
147 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 ...
0
votes
0answers
126 views

Recommendations for eval on save workflow for projects?

I've started to write a package and excessive use of the interactive eval-* functions has become a pain point for me. After I make a change re-evaluating entire file or package is almost always ...
1
vote
0answers
54 views

describe-package commentary for non built-in packages

Currently, it seems like describe-package will only show the contents of the 'commentary' section for packages that are builtin. For example (describe-package 'python) show a detailed description of ...
10
votes
1answer
2k views

Dealing with “Warning: assignment to free variable” when certain libraries can be missing by design

Byte compilation of my mode: (defun dict-setup-expansions () "Add `dict-mode' specific expansions." (set (make-local-variable 'er/try-expand-list) (list #'dict-mark-article))) gives warning: ...
8
votes
1answer
122 views

Validating / linting Elisp code

Currently I use: (checkdoc) (byte-compile-file (buffer-file-name)) (package-buffer-info) to validate Elisp code. This takes me some stupid errors and it is easy to resolve them. Code intending can ...
8
votes
1answer
4k views

How to use a local version of a package in spacemacs?

This is similar to this question but the answer there seems to be deprecated. Let's say I'm using a layer and want hack the code of a particular package that layer is using. How do I go about it? To ...
2
votes
1answer
291 views

What is archive-contents and how do I create it?

I used cask package to generate a package tar file for my local fork of ensime, and added it to my package-archives using customize-option. However, I then got this backtrace when attempting to list-...
5
votes
1answer
100 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 ...
11
votes
1answer
79 views

How to communicate package changes to repository users?

I have a package for interacting with GRASS GIS processes, available on MELPA. The rate of development and number of users are both quite low, so there's no need for a mailing list or any formal ...
13
votes
4answers
698 views

How to load only a subset of installed packages

I ran into a bug that involved an interaction between several packages. In order to report the bug, I need to provide a reproducible recipe illustrating the problem. This requires loading the ...
1
vote
0answers
605 views

Suggestions for a well-thought structure, for instant results inside browser from buffers

Situation First, I hope you will not mind my poor English. When you're working with websites/webapplications, there is a good chance that you will work with HTML/CSS files. When editing such files in ...
6
votes
2answers
95 views

Byte-compiling a file against a package that may or may not be here

I am trying to include support for smartparens in a major-mode package. I want that if a user is using smartparens, then he will get additional pair definitions, and if he isn't, he will not notice ...
1
vote
1answer
95 views

Is there a possibility to close the right syntax for another languages?

When I was watching Emacs Rocks, there was a feature showed, called sgml-close-tag. You can see an example here. When called that command, he will close the tag for you if there is a tag missing. I ...
18
votes
1answer
5k views

What's the best way to use local packages in spacemacs?

I'm a developer for a package (ycmd) used by spacemacs, and I'd like to try using spacemacs as well. I'd like spacemacs to use the "development version" of my package, i.e. the one I'm hacking on ...
0
votes
1answer
210 views

How to create org-mode recipe for melpa?

I'm trying to use github.com/milkypostman/melpa for creating a package from my own org-mode git repository. There are many recipes which I can create by make recipes/foo command, but there isn't the ...
7
votes
4answers
219 views

Looking for feedback/review of emacs package?

That's meta-ish question but google isn't helpful in this case. Are there any standardized habits of where/how/whether one should look for feedback on his (or her) new emacs package? Especially - ...
7
votes
3answers
880 views

Manually installing a multifile package to “elpa/”

When I'm writing a new package, it's great that I can test its installation by just issuing M-x package-install-from-buffer. This will install the package with package.el, so that it goes under "~/....
2
votes
1answer
166 views

How can I perfectly simulate an automatic package install?

There is a nefarious bug in a project stored locally in ~/my/project/path. This project is on MELPA, but installing from MELPA fails for some reason for some users. It's unknown why it fails, but I ...
16
votes
1answer
806 views

What are good tools for Emacs package development? [closed]

We already have a question about tools useful specifically for testing, but what about actually writing the code? Which packages do you find speed up your development? Which aids do you use to ...
12
votes
2answers
163 views

Proper approach to providing external programs along with packages?

I maintain a number of elisp packages (e.g. codesearch, emacs-ycmd, traad) that would benefit from being able to install the external programs that they use, saving time and effort for some users. For ...