emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proper namespaces in Elisp


From: Clément Pit-Claudel
Subject: Re: Proper namespaces in Elisp
Date: Mon, 4 May 2020 11:38:07 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0

On 04/05/2020 11.11, Adam Porter wrote:
> See also Artur Malabarba's https://github.com/Malabarba/names.  It's in
> MELPA and is used by a few MELPA packages.

And https://github.com/Malabarba/nameless/.  I'm surprised that this package 
hasn't seen more adoption.  It's basically solved the namespacing problem for 
me.
It uses font-lock to shorten package prefixes: my-package-xyz gets displayed as 
:xyz, my-package--abc gets displayed as ::abc, and other prefixes can be added 
(by default font-lock-xyz gets displayed as fl:xyz).
The ':' prefix has a special face that makes it clear that it's an abbreviation.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]