unpackaged.el
lispy
unpackaged.el | lispy | |
---|---|---|
9 | 21 | |
373 | 1,187 | |
- | - | |
1.6 | 0.0 | |
about 1 year ago | 2 months ago | |
Emacs Lisp | Emacs Lisp | |
GNU General Public License v3.0 only | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unpackaged.el
- Repository with code snippets and utility functions
- [ANN] unpackaged/imenu-eww-headings: Offer HTML headings in EWW buffers with Imenu
- unpackaged/custom-toggle-all-more-hide: Expand all options’ documentation
-
The Emacs Lock-In Effect or the Emacs Sunk Cost Fallacy
The question is almost like asking a fish to describe water. It's the sudden lack of it that produces a really clear example. :)
Anyway, here's a random example that comes to mind: I have some sexps in a Lisp file and I want to sort them alphabetically. Each sexp (usually a top-level form, but not necessarily) usually spans multiple lines, so line-sorting won't do it. Since they may be top-level forms, there may be comments between them that would lose their context if their position relative to sexps were lost, so comments need to "stick to" sexps they're above.
How would you solve this in a random text editor?
In Emacs, I would develop a command that does what I need. At each stage of the development process, I evaluate the command's definition, and it's instantly available to be used and tested. I could even test the function on its own definition, if I wanted to be silly (undoing the sorting after testing, of course).
When I'm done, I save the command definition to my configuration, and it's now a permanent tool in my toolbox. I didn't have to recompile the editor and start a new process, nor did I have to submit a patch to an upstream and ask for it to be merged. Similarly to a carpenter (forgive me if it sounds silly), my editor is my workbench, and as wood is malleable, so is my editor.
So, here's the command I came up with (maybe not the prettiest implementation, but maybe not the worst): https://github.com/alphapapa/unpackaged.el#sort-sexps And using Emacs and Org mode, I publish it into this "unpackaged" package, which I then install into my configuration as a package, and other users can then easily install it into theirs, too.
I don't know of any other editor that can do all of this, certainly not so easily.
- An Introduction to the Ultimate Git UI, Magit!
-
Automatically sorting an Org file upon save using multiple sorting criteria
Here's the code in my Emacs config. I'll probably add these functions to unpackaged.el (the Org sorting function there is more primitive than these).
-
Navigation suggestion needed
Sorting. This is handled within Org, see org-sort. However, you may find this function helpful for sorting recursively and with multiple methods (e.g. first by priority, then alphabetically): https://github.com/alphapapa/unpackaged.el#sort-tree-by-multiple-methods-at-once
-
Lets talk about Emacs UI
The customize buffers can be used with the keyboard. You can tab between fields, and C-c C-c to set values. See also https://github.com/alphapapa/unpackaged.el#set-value-of-customization-option-at-point
lispy
- Sapling: A highly experimental vi-inspired editor where you edit code, not text
-
What are the small reasons to try Emacs?
Some killer features in Emacs, which I would recommend checking out, is imenu and movement by s-expression (functions like forward-sexp). These are built into Emacs and make navigating across or inside blocks of code very easy. I have also seen that lispy, which is usually used for Lisp code also supports Python. Again I can't speak to any specifics about how well these things work for Python devs.
- What packages do I need to for the best elisp editing environment?
-
Any way to make lispy format works automatically?
While writing other programming languages with LSP, it formats the buffer once I hit save. Is there any way to make https://github.com/abo-abo/lispy do some equivalent behaviour?
-
Let's share your top 3 packages that you can't live without.
Without any order magit, lispy and minions.
- paredit.vim – Paredit Mode: Structured Editing of Lisp S-Expressions
-
Emacs/Slime equivalent of some Cider features?
I don't know cider, but...I found lispy mode a revelation in making the easy, easier.
-
Why is it hard to get started with elisp in emacs
The level of interactivity in your emacs determines how easy trying emacs-lisp becomes. I suggest checking out https://github.com/abo-abo/lispy, it makes it easy to look up documentation (C-c 1 I believe) and evaluate S-expressions on the fly (keybinding is e). Also C-h f, C-h k, C-h v are always very helpful. Also check out helpful (the package), selectrum, marginalia, prescient, etc.
-
Tree Sitter and the Complications of Parsing Languages
Emacs seems to attract quite a lot of people who want structural code editing. We now have * paredit * smartparens * evil-cleverparens * lispy * symex * combobulate (more?)
-
The State of Structural Editing in Emacs?
Obviously, we have packages like Paredit and Lispy, recently we got SymEx, but these are all for the Lisp family of languages, where syntactic redundancy is very high because of the homoiconicity.
What are some alternatives?
ement.el - A Matrix client for GNU Emacs
smartparens - Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
Emacs-VSCode-Default-High-Contras
parinfer-rust - A Rust port of parinfer.
vertico - :dizzy: vertico.el - VERTical Interactive COmpletion
symex.el - An intuitive way to edit Lisp symbolic expressions ("symexes") structurally in Emacs
org-make-toc - Automatic tables of contents for Org-mode files
emacs-config - My personal Emacs configuration
org-ql - A searching tool for Org-mode, including custom query languages, commands, saved searches and agenda-like views, etc.
babashka - Native, fast starting Clojure interpreter for scripting
consult - :mag: consult.el - Consulting completing-read
objed - Navigate and edit text objects with Emacs. Development on pause.