A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/Malabarba/speed-of-thought-lisp below:

Malabarba/speed-of-thought-lisp: Write elisp at the speed of thought. Emacs minor mode with abbrevs and keybinds.

Write emacs-lisp at the speed of thought.

This defines a new global minor-mode speed-of-thought-mode, which activates locally on any supported buffer. Currently, only emacs-lisp-mode buffers are supported.

The mode is quite simple, and is composed of two parts:

A large number of abbrevs which expand function initials to their name. A few examples:

However, these are defined in a way such that they ONLY expand in a place where you would use a function, so hitting SPC after (r expands to (require ', but hitting SPC after (delete-region r will NOT expand the r, because that's obviously not a function. Furthermore, #'r will expand to #'require (note how it omits that extra quote, since it would be useless here).

It also defines four commands, which really fit into this "follow the thought-flow" way of writing. The bindings are as follows, I understand these don't fully adhere to conventions, and I'd appreciate suggestions on better bindings.

Hitting RET followed by a `(' was one of the most common key sequences for me while writing elisp, so giving it a quick-to-hit key was a significant improvement.

With these commands, you just write your code as you think of it. Once you hit a "stop-point" of sorts in your thought flow, you hit C-c f/v on any undefined functions/variables, write their definitions, and hit C-u C-SPC to go back to the main function.

With the above (assuming you use something like paredit or electric-pair-mode), if you write:

( w t b M-RET i SPC text

You get

(with-temp-buffer (insert text))


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4