From bfe0018037ba8ccfe961d7bd4c0b985bd7496898 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rudolf=20Adamkovi=C4=8D?= Date: Fri, 7 Oct 2022 17:05:15 +0200 Subject: [PATCH] Propertize keybindings in Org Export dispatch UI * lisp/ox.el (org-export--dispatch-ui): Propertize the keybindings --- lisp/ox.el | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index 95268d3e3..4285cfc0f 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -7123,8 +7123,13 @@ back to standard interface." (delete-other-windows) (org-switch-to-buffer-other-window (get-buffer-create "*Org Export Dispatcher*")) - (setq cursor-type nil - header-line-format "Use SPC, DEL, C-n or C-p to navigate.") + (setq cursor-type nil) + (setq header-line-format + (apply 'format + (cons "Use %s, %s, %s, or %s to navigate." + (mapcar (lambda (key) + (propertize key 'face 'help-key-binding)) + (list "SPC" "DEL" "C-n" "C-p"))))) ;; Make sure that invisible cursor will not highlight square ;; brackets. (set-syntax-table (copy-syntax-table)) -- 2.37.3