Nameless is an Emacs package for hiding namespace prefixes in elisp code. It
is a short and simple minor-mode that changes the display, without changing the
contents of the buffer. Using it is as simple as turning it on, there’s no need
to change your package in any way.
Nine months ago I introduced Names, a package that allows you to write elisp
code inside a namespace. Since then, I’ve used it on two of my packages without
issues (as have several other Emacs hackers) and it’s been delightful. I’ve been
hacking elisp for several years now, but stripping away all those namespace
prefixes really makes it more pleasurable to write and read code.
Still, there’s no denying that it’s a bit heavy-handed. It’s quite a large
library that your package has to depend on, and it changes the way you write the
file itself, which means it messes with anything from grep to find-function.
Nameless, on the other hand, hooks onto font-lock-mode and changes the way
symbols are displayed. This means it doesn’t interfere with any other tools you
might use for code management or navigation. At the end of the day, it tries a
lot less and therefore does a lot more.
Nameless is available from GNU Elpa. To give it a try, just M-xpackage-install it, and turn on the minor-mode wherever you want.
Nameless, less is more
06 Sep 2015, by Artur Malabarba.Nameless is an Emacs package for hiding namespace prefixes in elisp code. It is a short and simple minor-mode that changes the display, without changing the contents of the buffer. Using it is as simple as turning it on, there’s no need to change your package in any way.
Nine months ago I introduced Names, a package that allows you to write elisp code inside a namespace. Since then, I’ve used it on two of my packages without issues (as have several other Emacs hackers) and it’s been delightful. I’ve been hacking elisp for several years now, but stripping away all those namespace prefixes really makes it more pleasurable to write and read code.
Still, there’s no denying that it’s a bit heavy-handed. It’s quite a large library that your package has to depend on, and it changes the way you write the file itself, which means it messes with anything from
grep
tofind-function
. Nameless, on the other hand, hooks ontofont-lock-mode
and changes the way symbols are displayed. This means it doesn’t interfere with any other tools you might use for code management or navigation. At the end of the day, it tries a lot less and therefore does a lot more.Nameless is available from GNU Elpa. To give it a try, just M-x
package-install
it, and turn on the minor-mode wherever you want.See the Readme for more information.
Tags: elpa, names, namespaces, init.el, emacs,
Donations, donations, donations »
« Org-mode subtrees and file-local variables
Related Posts
validate.el: Schema validation for Emacs-Lisp in elpa
New on Elpa and in Emacs 25.1: seq.el in elpa
Automate a package's group and version number in names
Content © 2019, All rights reserved. Icons under CC3.0.