Is there any way to make emacs display this kind of lines? reddit / emacs ---------------------------------------------------------------------- funk443 · 2022-06-13 11:29 I have no idea what these lines are called, but what they did is basically indicate the range of the function. ​ https://preview.redd.it/zzvqarkajd591.png?width=1592&format=png&auto=w ebp&s=943907a1ce99ec263043bc73ffade85eab5d655f ---------------------------------------------------------------------- anaumann · 2022-06-13 11:33 I use [https://github.com/antonj/Highlight-Indentation-for- Emacs/](https://github.com/antonj/Highlight-Indentation-for-Emacs/) for it.. it's available on melpa. ---------------------------------------------------------------------- funk443 · 2022-06-13 11:35 Thank you! I literally don't know what's the name of it. ---------------------------------------------------------------------- anaumann · 2022-06-13 11:43 It just looks like indentation markers, so it's not really clever enough to detect functions scopes or anthing, but it works well enough with well-formatted code :) There are a number of packages for this.. Like this one looking more like your screenshot: [https://github.com/DarthFennec/highlight- indent-guides](https://github.com/DarthFennec/highlight-indent-guides) ---------------------------------------------------------------------- funk443 · 2022-06-13 11:45 Yes I like the latter one more. Thanks again! ---------------------------------------------------------------------- takutekato · 2022-06-13 11:49 While older than Highlight-Indentation-for-Emacs, you can see also [https://github.com/DarthFennec/highlight-indent- guides](https://github.com/DarthFennec/highlight-indent-guides), the latter supports dynamic indent width detection (may not be important for JS, though). ---------------------------------------------------------------------- anaumann · 2022-06-13 11:51 You're welcome, I just switched to the other one myself like a minute ago :D ---------------------------------------------------------------------- anaumann · 2022-06-13 11:56 It does look nicer and I just switched myself and (probably) ran into the same problem I had when trying out some of the indentation highlighting modes: It didn't show anything in my theme :D After switching from fill to character mode and adjusting the colours a bit, it's now looking a lot less chunky than before :) ---------------------------------------------------------------------- funk443 · 2022-06-13 12:17 Much appreciated! ---------------------------------------------------------------------- DeerRepresentative91 · 2022-06-13 12:39 This one isn't working correctly on emacs-git with pixel precision scrolling, I opened a bug report. The other one you have suggested below works perfectly, so thanks! ---------------------------------------------------------------------- konrad1977 · 2022-06-13 13:32 They don't seem to work with Tree-sitter though? ---------------------------------------------------------------------- _viz_ · 2022-06-13 16:17 IIRC, the tree-sitter package implemented via modules outright disables font-lock-mode which explains why the package doesn't work for you. ---------------------------------------------------------------------- rbpx · 2022-06-13 21:15 That line is called a [vinculum](https://www.merriam- webster.com/dictionary/vinculum). I've waited more than a dozen years to use that word. LOL. ---------------------------------------------------------------------- grimman · 2022-06-13 22:05 > a straight *horizontal* mark Is it though? That's from the second definition, but I can't see how the first definition fits any better. ---------------------------------------------------------------------- rbpx · 2022-06-13 22:23 Traditionally a vinculum was a horizontal line. It's purpose is to group a number of items together. That is a better definition. It doesn't have to be ***only*** horizontal, but IIRC it is modern code that has started using it as a vertical grouping. I don't know of any vertical use before that. [Here's the wikipedia page](https://en.wikipedia.org/wiki/Vinculum_(symbol)). You can see that it too sticks with the "horizontal only" definition. However, I don't see the advantage of insisting it cannot be vertical. ---------------------------------------------------------------------- funk443 · 2022-06-14 01:03 Thanks! Just learned this today ---------------------------------------------------------------------- snippins1987 · 2022-06-14 14:01 That was 2 years ago, tree-sitter does works with packages using font- lock-mode now.