all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.