Hacker News new | ask | show | jobs
by federicotdn 830 days ago
Nice! I tried some months back implementing a “framework” that would allow for implementing Magit-like interfaces for any command (https://github.com/federicotdn/brief) but at the end of the day, implementing bespoke interfaces per-command would probably allow you to better integrate with the command itself.
2 comments

Emacs seems to support this already with Derived Modes.

I've tried to derive Magit mode for some commands before, and it seems relatively straight forward.

My main issue is that Elisp and Emacs still confuse me after 2 years of casually messing around with it.

https://www.gnu.org/software/emacs/manual/html_node/elisp/De...

Magit is built on such a framework. It is called 'transient' an Emacs Lisp library.
which is in core now!