prism.el
highlight-indent-guides
prism.el | highlight-indent-guides | |
---|---|---|
18 | 13 | |
269 | 545 | |
- | - | |
4.7 | 0.0 | |
7 months ago | almost 2 years 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.
prism.el
-
Just showing off how nice lisp can look in prism-mode. Check reply for the config :)
Heh, seriously, though, it's not necessary to use a rainbow of colors. You can use any number of colors and rotate through them. For example, this uses just 3 colors, gradually desaturating them as the depth increases. Since each color is easily distinguished from the other 2, it makes code very readable: https://github.com/alphapapa/prism.el/raw/master/images/parens-0.5.png
- Release v0.3 ยท alphapapa/prism.el (Disperse Lisp forms and other languages into a spectrum of colors by depth -- like rainbow-delimiters, et al, but more powerful)
-
How do I build a syntax highlighter based on S-Expressions?
If you can use tree-sitter, that's obviously a good choice. Alternatively, you can see how I implemented https://github.com/alphapapa/prism.el, which isn't regexp-based, using Emacs's built-in syntax parsing instead.
-
Trying to find a package that colorizes file contents by indentation level.
I did some experimenting with supporting XML directly in https://github.com/alphapapa/prism.el/issues/16. It seems that it's not easily done with existing Emacs SGML-related functions, but I'm guessing that tree-sitter will help a lot in Emacs 29.
-
How to combine highlight-parenthesis with rainbow-delimiters?
It's not exactly what you asked for, but you may also find this useful: https://github.com/alphapapa/prism.el It can highlight parens distinctly too.
-
Change text appearance in buffer
As examples, I can recommend code in https://github.com/alphapapa/highlight-function-calls (simple) and https://github.com/alphapapa/prism.el (more complex).
-
Colorize blocks of LISP
There is also the package prism.el.
-
How to properly font-lock for a custom major-mode aka how to use complex regex?
The best advice I can offer is to carefully and repeatedly study the Elisp manual section on font-lock, and to model on the source code of a similar project. The most I've done with it is in https://github.com/alphapapa/prism.el
-
How We Made Bracket Pair Colorization 10,000x Faster
There is one for emacs. Could be good inspo if someone wanted to make a VSCode version.
https://github.com/alphapapa/prism.el
-
Screenshot Sunday: What does your Emacs look like today?
You might be interested in https://github.com/alphapapa/prism.el
highlight-indent-guides
-
What is the alternative to indentLine in Emacs?
This one looks close. Also at the end of the readme there's a table comparing it to other alternatives.
-
highlight-indent-guides breaks Emacs Git
Here is the issue: https://github.com/DarthFennec/highlight-indent-guides/issues/123
-
Trying to find a package that colorizes file contents by indentation level.
I meant to set it up but never wrote down what it was called and now I can't find it anymore. I'm not talking about this: https://github.com/DarthFennec/highlight-indent-guides and results for this (and the 5+ other packages that do this same thing) is all I can find when googling different variations of "emacs syntax coloring by indentation level" etc.
- Visual code folding?
-
Is there any way to make emacs display this kind of lines?
While older than Highlight-Indentation-for-Emacs, you can see also https://github.com/DarthFennec/highlight-indent-guides, the latter supports dynamic indent width detection (may not be important for JS, though).
-
Fast highlight indent guides?
I'm happy with https://github.com/DarthFennec/highlight-indent-guides and Emacs 28 (with native comp) but my files are not huge, max 400 lines generally.
-
How to add more indentation to list bullets in `org-mode`?
Also for seeing indentation more clearly you could try something like highlight-indent-guides.
-
Vertical guides on org lists like roam-research
highlight-indent-guides has a mode like the one in the screenshot, but by default it doesn't show up in org-mode. I haven't tried to see what it would take to enable it there.
-
EmacsConf 2021 Call for Proposals
Before LSP, it was always annoying getting things setup. You want to get serious with a new language, spend a day configuring Emacs first. Or, fix your 3 year old config. Now it all pretty much just works! With native-comp its even better. Plus I'm using lot of modern features that I never did earlier, eg. renaming, automatically remove imports, see the inferred type in minibuffer.
Flycheck still makes it a bit slow. I think, one big missing piece is lack of multiple threads, which often makes few things a bit laggy. For example, if I'm reading a big C++ source code with indentation guides[1], even with native-comp it can lag a bit.
[1] https://github.com/DarthFennec/highlight-indent-guides
-
Scoped indentation highlighting
And there's also https://github.com/DarthFennec/highlight-indent-guides.
What are some alternatives?
Bracket-Pair-Colorizer-2 - Bracket Colorizer Extension for VSCode
indent-guide - Show vertical lines to guide indentation
icomplete-vertical - Global Emacs minor mode to display icomplete candidates vertically
lsp-dart - lsp-mode :heart: dart
vscode-extension-samples - Sample code illustrating the VS Code extension API.
WebViewFeedback - Feedback and discussions about Microsoft Edge WebView2
ts-fold - Code-folding using tree-sitter
vscode-python - Python extension for Visual Studio Code
doomemacs - An Emacs framework for the stubborn martian hacker
quelpa - Build and install your Emacs Lisp packages on-the-fly directly from source
lsp-mode - Emacs client/library for the Language Server Protocol