How to set crossline alike highlighting mode in emacs?

Viewed 42

What i'm trying to do here is that, in my buffer I want to point the cursor position through highlighting the line horizontally and column vertically. Much like the CrosshairHighlighting mode. (see here. https://www.emacswiki.org/emacs/CrosshairHighlighting) enter image description here

(global-hl-line-mode 1)
(set-face-background 'highlight nil) 
(set-face-foreground 'highlight nil) 
(set-face-underline-p 'highlight "#ff0000") 

So using hl-line library pkg and these 4 line code in my .emacs, I got my desired part of highlighting the line in underline mode. Here is my emacs ss: enter image description here

(vline-global-mode 1)
(set-face-background 'vline "#ff0000")
(set-face-foreground 'vline nil)

Similarly I try to set-up for vertical-line with vline library pkg, but unable to thinner the block. Searched a lot about it but couldn't figure it out.

https://stackoverflow.com/a/23813217/4239355

I tried this one earlier to set the vline-style variable to "compose" value (setq vline-style 'compose) it will show the vertical line as a pipe symbol | which is thicker line. But The problem is that the pipe doesn't look aesthetically pleasing because there is a small gap between lines.

0 Answers
Related