|
From: | Emanuel Berg |
Subject: | Re: trouble overwriting C-r in a shell (term-mode) |
Date: | Fri, 29 May 2020 00:42:57 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) |
Narendra Joshi wrote: > (define-key term-raw-map (kbd "C-r") (lambda () (interactive) > (if (get-buffer "*Open Recent*") > (kill-buffer "*Open Recent*")) > (recentf-open-files))) Style points: "\C-r" instead of (kbd "C-r") `let' so the hard-coded data item "*Open Recent*" appears onee time `when' instead of `if' as there is no else branch :) -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal
[Prev in Thread] | Current Thread | [Next in Thread] |