lindydancer / lisp-extra-font-lock Goto Github PK
View Code? Open in Web Editor NEWHighlight bound variables and quoted expressions in lisp
Highlight bound variables and quoted expressions in lisp
I notice in a comment in one of the issues that the author uses this package for Common Lisp, to my surprise: I thought it was strictly for Elisp only (and enable it accordingly).
it's not
(require 'lisp-extra-font-lock-mode)
but (require 'lisp-extra-font-lock)
thanks for your work.
Hi there,
I found your package today, but it didn't quite do what I was looking for, so I came up with this:
https://github.com/alphapapa/highlight-function-calls
Maybe you will find it useful, or maybe you can integrate it into this package! :)
Thanks.
See http://www.lispworks.com/documentation/lw71/CLHS/Body/02_df.htm for reference in case you need it.
Hello Anders, and thank you for sharing such a clever package.
Would it be possible to add highlighting of when nil
forms with the shadow
face, to indicate disabled code? Even better, could this package shadow code when using when
with a global boolean variable that evaluates to false?
Thank you in any case.
Please add support for the destructuring forms in dash.el like -let
, -lambda
etc.
Hello.
Thanks for awesome package! It makes editing lisp code so much better.
However, I have a slight problem with it: increased memory consumption. Before installing this package my emacs was eating around 600M RSS, after it could easily hog 2+G and start lagging because of GC (I'm using gcmh).
I'm using Emacs 26.3 on Gentoo.
Here's excerpt from memory profiler report for about 15 minutes of editing of common lisp buffer:
- command-execute 2,756,429,579 49%
- call-interactively 2,756,367,291 49%
- byte-code 2,578,698,232 46%
- evil-operator-range 2,578,696,120 46%
- evil-read-motion 2,575,207,678 46%
- evil-keypress-parser 2,575,207,678 46%
- read-key-sequence 2,575,198,174 46%
- apply 2,575,198,174 46%
- ad-Advice-read-key-sequence 2,575,198,174 46%
- #<subr read-key-sequence> 2,571,450,510 46%
- timer-event-handler 2,568,112,445 46%
- apply 2,568,106,109 46%
- jit-lock-stealth-fontify 2,434,370,447 43%
- jit-lock-fontify-now 2,434,311,311 43%
- jit-lock--run-functions 2,434,310,255 43%
- run-hook-wrapped 2,434,310,255 43%
- #<compiled 0x180200d> 2,434,310,255 43%
- highlight-indent-guides--guide-region 2,148,061,990 38%
- font-lock-fontify-region 2,148,030,558 38%
- font-lock-default-fontify-region 2,148,030,558 38%
- font-lock-fontify-keywords-region 2,148,021,150 38%
- lisp-extra-font-lock-match-loop-keywords 2,147,945,702 38%
- regexp-opt 2,147,944,678 38%
- regexp-opt-group 2,147,934,118 38%
- regexp-opt-group 2,147,890,422 38%
- regexp-opt-group 2,121,422,362 38%
- regexp-opt-group 2,077,157,205 37%
- regexp-opt-group 2,030,865,186 36%
- regexp-opt-group 1,917,640,794 34%
- regexp-opt-group 1,799,798,720 32%
- regexp-opt-group 1,666,424,752 29%
- regexp-opt-group 1,553,692,520 27%
- regexp-opt-group 1,436,092,136 25%
- regexp-opt-group 1,323,165,412 23%
- regexp-opt-group 1,058,357,452 19%
- regexp-opt-group 905,951,944 16%
- regexp-opt-group 777,148,543 13%
- regexp-opt-group 670,963,739 12%
- regexp-opt-group 582,616,420 10%
regexp-opt-group 341,428,356 6%
mapcar 222,950,392 4%
Is there something I can do to mitigate this issue?
lisp-extra-font-lock/lisp-extra-font-lock.el
Line 507 in 092f5a6
Blame to this commit 77d153a.
when-let
and if-let
allow forms that omit variable name. Bindings after such a form are not recognized. For example, baz
is not highlighted in the code snippet below
(when-let ((foo (get-foo))
((bar-p foo))
(baz (get-baz foo)))
(do-something))
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.