emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached 75f5c4d09a: Enable hl-line-mode in detached-li


From: ELPA Syncer
Subject: [elpa] externals/detached 75f5c4d09a: Enable hl-line-mode in detached-list
Date: Tue, 4 Oct 2022 11:57:30 -0400 (EDT)

branch: externals/detached
commit 75f5c4d09a24b377b412869b1ab14899b1d405d9
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Enable hl-line-mode in detached-list
    
    Make it easier to navigate and see what data relates to the session at
    point by enabling the use of hl-line-mode.
---
 detached-list.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/detached-list.el b/detached-list.el
index c7f39bbe89..3e3013d1fd 100644
--- a/detached-list.el
+++ b/detached-list.el
@@ -26,6 +26,7 @@
 ;;;; Requirements
 
 (require 'detached)
+(require 'hl-line)
 (require 'tabulated-list)
 
 ;;;; Variables
@@ -466,7 +467,8 @@ If prefix-argument is provided unmark instead of mark."
   "Update content in buffer."
   (interactive)
   (tabulated-list-revert)
-  (detached-list--restore-marks))
+  (detached-list--restore-marks)
+  (when hl-line-mode (hl-line-highlight)))
 
 ;;;###autoload
 (defun detached-list-sessions ()
@@ -688,6 +690,7 @@ If prefix-argument is provided unmark instead of mark."
   (setq imenu-create-index-function #'detached-list-imenu-index)
   (setq-local eldoc-echo-area-use-multiline-p t)
   (setq-local eldoc-idle-delay 0)
+  (hl-line-mode)
   (add-hook 'eldoc-documentation-functions #'detached-list-eldoc nil t)
   (add-hook 'tabulated-list-revert-hook #'detached-list--revert-sessions nil t)
   (tabulated-list-init-header))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]