From 04a9b40860ea346e1289cb1055686316a3b497d7 Mon Sep 17 00:00:00 2001 From: Daniel Weschke Date: Sun, 18 Dec 2022 15:47:01 +0100 Subject: [PATCH] include removed function tmm-get-keybind to settings --- settings/completion-settings.el | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/settings/completion-settings.el b/settings/completion-settings.el index 6602b04f..885419c9 100644 --- a/settings/completion-settings.el +++ b/settings/completion-settings.el @@ -109,7 +109,18 @@ ;; ivy-done completion for file, but opens dird mode for directories ;; ivy-alt-done complete dir or open file, but without entering any character it opens dird mode ;; ivy-immediate-done no completion - )) + ) + + ;; previously defined in tmm.el (removed by commit on Oct 24, 2020) + ;; counsel-tmm uses `tmm-get-keybind' + (defun tmm-get-keybind (keyseq) + "Return the current binding of KEYSEQ, merging prefix definitions. +If KEYSEQ is a prefix key that has local and global bindings, +we merge them into a single keymap which shows the proper order of the menu. +However, for the menu bar itself, the value does not take account +of `menu-bar-final-items'." + (lookup-key (cons 'keymap (nreverse (current-active-maps))) keyseq)) + ) ;;(setq tab-always-indent 'complete) ;; use 'complete when auto-complete is disabled