|
From: | Zhiwei Chen |
Subject: | Re: Highlight current line when using gud |
Date: | Wed, 30 Jun 2021 14:26:33 +0000 |
Maybe I’m the victim of vscode.
I’m making gud more like that, the yellow line is more like the overlay this patch adds.
Personally, hl-line-mode is used to show the approximate position of my point so the face defined in doom-one is fine to me. It needn’t to be too contrast as it hurts my eyes in daily use.
But when debugging, I need to know where the line as if I step over the interesting line I will blame myself. Debugging is more serious than coding/writing, so I would like to
make the line highlighted/contrast.
(defun make-hl-line-face-contrast ()
(setq-local hl-line-face ‘a-more-contrast-one))
(add-hook gdb-mode-hook #’make-hl-line-face-contrast)
But when I select the source buffer and move the point, forward a page, I can’t tell which line I’m debugging. So I need to seek for the arrow in fringe but it’s too small to be discovered.
I imagine that if there is a sticky overlay what will happen. I will never lose my debug point…
> Why remove hl-line-mode? It has gobs of users.
Specifically, the 8 lines in gud.el rather than the hl-line-mode itself.
;; If they turned on hl-line, move the hl-line highlight to
;; the arrow's line.
(when (featurep 'hl-line)
(cond
(global-hl-line-mode
(global-hl-line-highlight))
((and hl-line-mode hl-line-sticky-flag)
(hl-line-highlight)))))
--
Zhiwei Chen
|
[Prev in Thread] | Current Thread | [Next in Thread] |