mnewt / eg.el

Emacs wrapper for `eg`

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eg.el

Description

An Emacs wrapper for eg (https://github.com/srsudar/eg). Quoting the main repo:

eg provides examples of common uses of command line tools.

Man pages are great. How does find work, again? man find will tell you, but you’ll have to pore through all the flags and options just to figure out a basic usage. And what about using tar? Even with the man pages tar is famously inscrutable without the googling for examples.

No more!

eg will give you useful examples right at the command line. Think of it as a companion tool for man.

eg comes from exempli gratia, and is pronounced like the letters: “ee gee”.

Screenshots

./screenshot-light.png

./screenshot-dark.png

Requirements

pip install eg

Install

It is not currently in a package repository such as MELPA. If I see this project get some stars or someone files an issue about it, I can submit it. Until then, you’ll need to just download/clone it.

Manual

A fully manual approach might look like this.

git clone https://github.com/mnewt/eg.el.git "~/.emacs.d/"
(add-to-list 'load-path "~/.emacs.d/eg.el")
(require 'eg)

use-package / straight

If you use straight.el you might do something like this.

(use-package eg.el
  :ensure t
  :straight (:type git :host github :repo "mnewt/eg.el")
  :commands (eg eg-at-point))

Usage

To get help for the find command:

M-x eg RET find RET

The eg command will complete partial commands. It will also pre-populate the command if one is found at point.

To go straight to the help doc for the symbol at point:

M-x eg-at-point RET

About

Emacs wrapper for `eg`


Languages

Language:Emacs Lisp 100.0%