* Enable hl-line-mode with recentf
@ 2014-09-16 7:49 Florian Lindner
2014-09-16 14:08 ` Michael Heerdegen
0 siblings, 1 reply; 2+ messages in thread
From: Florian Lindner @ 2014-09-16 7:49 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I want to enable hl-line-mode when I use recentf-mode
(recentf-mode t)
;; adding a hook
(add-hook 'recentf-mode-hook (lambda ()
(hl-line-mode t) ))
;; or use the key command
(global-set-key (kbd "C-x C-r") (lambda ()
(interactive)
(recentf-open-files)
(hl-line-mode t) ))
Both had no effect? BTW, do I need to place the hook before (recentf-mode
t)? Tried both, both had no effect.
Thanks,
Florian
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Enable hl-line-mode with recentf
2014-09-16 7:49 Enable hl-line-mode with recentf Florian Lindner
@ 2014-09-16 14:08 ` Michael Heerdegen
0 siblings, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2014-09-16 14:08 UTC (permalink / raw)
To: help-gnu-emacs
Florian Lindner <mailinglists@xgm.de> writes:
> I want to enable hl-line-mode when I use recentf-mode
>
> (recentf-mode t)
I'm not sure I understand. In which buffer do you want lines
highlighted - in the file selection dialog buffer (recentf-mode only
places a submenu in the menu-bar)? Then you probably wanted to
(add-hook 'recentf-dialog-mode-hook 'hl-line-mode)
That isn't very useful, though. The file names in the dialog buffer are
buttons, and they are not highlighted by `hl-line-mode', only the (tiny)
rest of the line.
Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-16 14:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 7:49 Enable hl-line-mode with recentf Florian Lindner
2014-09-16 14:08 ` Michael Heerdegen
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.