all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* trouble overwriting C-r in a shell (term-mode)
@ 2020-05-28 16:30 Christian Seberino
  2020-05-28 20:35 ` Narendra Joshi
  0 siblings, 1 reply; 5+ messages in thread
From: Christian Seberino @ 2020-05-28 16:30 UTC (permalink / raw)
  To: help-gnu-emacs

I'm trying to overwrite C-r in a shell and it isn't working.
Any help greatly appreciated.  I tried adding a term-mode hook as
follows....

(add-hook 'term-mode-hook
          '(lambda () (interactive)
                   (global-set-key (kbd "C-r")
                                   (lambda () (interactive)
                                              (if (get-buffer  "*Open
Recent*")
                                                  (kill-buffer "*Open
Recent*"))
                                              (recentf-open-files)))))

Thanks!

Chris


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-05-29  9:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-05-28 16:30 trouble overwriting C-r in a shell (term-mode) Christian Seberino
2020-05-28 20:35 ` Narendra Joshi
2020-05-28 21:31   ` Christian Seberino
2020-05-28 22:42   ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-05-29  9:09     ` Jamie Beardslee

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.