10

Github GitHub - zainab-ali/pair-tree.el: An Emacs Lisp cons cell explorer

 3 years ago
source link: https://github.com/zainab-ali/pair-tree.el
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

pair-tree.el

A cons cell explorer.

M-x pair-tree is a learning tool for visualizing Emacs Lisp lists.

If you're baffled by cons and confused by cdaadr you might want to give it a spin.

For example

M-x pair-tree '((2 . (turtle doves)) (3 french hens) 4 (calling . birds) partridge)

Requirements

You will need Emacs 27.1 and svg support. Needless to say, this won't work on a terminal.

Installation

Clone this repository and add pair-tree.el to your load path:

(add-to-list load-path "/path/to/repo/pair-tree.el")

Usage

Call M-x pair-tree and type the list you want to visualise.

You can navigate the tree with the arrow keys. The minibuffer shows the most concise accessor for the focused section.

Other resources

If you're learning about lists, be sure to read the GNU Emacs manual. You may want to check out dash.el, the excellent list library used in this package.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK