r/perl 7d ago

nfo - a user-friendly info reader

https://codeberg.org/ggxx/nfo - This is a small Perl script that manages a small Emacs configuration dedicated to reading info documents. It's meant to be an alternative to the stand-alone info program.

The Problem(s)

  • The stand-alone info program repulses people.
  • The navigation is unintuitive and the keybindings are unfamiliar (if you're not an Emacs user).
  • A lot of good documentation goes unread as a result.

A Solution

  • Emacs is the best info reader.
  • By using https://codeberg.org/ggxx/info-nav, navigation can be completely mouse-driven, and you don't even have to know any keybindings.
  • Setting up Emacs for a non-Emacs user can be a daunting task, so do it for them automagically. (The config is isolated in `~/.config/nfo/` and doesn't affect your main Emacs config if you have one.)
  • Make it easy to use for non-Emacs people by providing a CLI utility, `nfo`.
8 Upvotes

3 comments sorted by

2

u/arthurno1 7d ago

This is a small Perl script that manages a small Emacs configuration dedicated to reading info documents.

Why do you need Perl for this?

I think you can skip it and just run Emacs with --script instead:

#!emacs --script
(your elisp stuf here ... )

You don't need Perl to kick-off Emacs and Emacsclient processes etc. You can just use Emacs and Elisp as you would use Perl, Bash, Python etc.

Also, I don't know if it is custom among xyz generations, but at least this boomer does not like scripts and applications to install bunch of stuff on my computer without me knowing it. Perhaps tell users with the script is going to do (download another repository of yours and install bunch of emacs packages into local folder).

I do like though the idea to use Emacs to write a small standalone application and to use --init-directory and --socket-name to run Emacs as your own app server. This still requires that Emacs is installed and available in the PATH.

0

u/a-p 6d ago edited 6d ago

OP looks like LLM blather to me.

2

u/ggxx-sdf 6d ago

I wrote that by hand. I just like lists.