Trying eev with a sexp (2024)Note: most of this page uses sexps for package.el, that is the default package manager for Emacs. If you use straight.el, go to this section. Update: see the page of my presentation at the EmacsConf2024.
1. Two basic tutorialsIn sep/2024 I started to answer people in the #emacs IRC channel who asked for elisp tutorials with this sexp,
abbreviated to this,
...and converted to a single long line (not shown). When someone executes that sexp with their favorite variant of C-x C-e it installs eev from ELPA, activates eev-mode, and displays the main eev tutorial - (find-eev-quick-intro) - at the window at the left, and displays its elisp tutorial - (find-elisp-intro) - at the window at the right, like this: 2. EepitchWhen someone is curious by eepitch - i.e., by: then the sexp for trying it is this one, but usually converted to a single long line...
Here is a screenshot of what the person will see if she understands the demo in the section 6.1 and tries the demo in the part marked in blue below, that is in the section 6.2: 3. `find-wget'Stranger sexps are possible. For example, I am learning SQLite, and people who are curious about how I am organizing my notes on it may find the sexp below interesting:
In my machine `find-es' is just a shorter hyperlink to an anchor in a local file, but most people redefine `find-es' to make it use `find-wget'. Usually that redefinition is done in the init file, but here we do it in another way. Usually people use M-x find-dot-emacs-links to put configurations for eev in their init files, but in the big sexp above the ee-dot-emacs-concat returns a small lisp program - that redefines `find-es' - as a string, and the ee-read and the eval execute that small lisp program... we run it without putting it in the init file. The
points to my notes on "WITH RECURSIVE". They look like this, and note that they have lots of links to the manual of SQLite, like this one:
One of my presentations at the EmacsConf2022 was about that kind of link. See:
3.1. edebugThe example below uses `find-wget-elisp' - that is similar to `find-wget', but puts the buffer in emacs-lisp-mode - to display a mini-tutorial for edebug at the window at the right.
It was inspired by this thread in help-gnu-emacs, and discussed in the eev mailing list. Here are two screenshots: In the second screenshot I had just instrumented the function `ee-triangle-buggy', and I was running it in edebug mode; I had typed SPC a few times, and edebug was saying that it had just evaluated the variable `n', and the result was 4. 4. Straight.elIf you use straight.el then you need to replace the
in each of the sexps above by one of these two sexps:
or
The shorter one uses the version of eev from ELPA; the other one uses the version from the git repository. So, for example, to open the main tutorial and the elisp tutorial you can use this sexp,
and to open the tutorial on eepitch you can use this one:
5. The videoThe video about "Trying eev with a sexp" is here. 6. Uninstalling eevEev is not for adults - and if you're an adult then you will probably want to uninstall it after a few minutes. For most people just deactivating eev-mode with `M-x eev-mode' should be enough; see:
...because the eev-mode-map defines lots of keybindings - see the first screenshot below, and go here for more information on its main keys. If you really want to remove eev completely and you are using package.el then you can run `M-x find-epackages eev RET' and click on the uninstall button - see the second screenshot below (that was from my page about the other window). A slightly less obvious way to uninstall eev is with `M-x package-delete RET eev'... and if you prefer to uninstall eev by running a sexp, use the uncommented `package-delete' below:
|