~l3kn/org-fc-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] modify keymap-hint to optionally include evil

Details
Message ID
<875z6btlug.fsf@treypeacock.com>
DKIM signature
missing
Download raw message
Patch: +5 -2
This may be useful for those who use evil and still wish to see their mapped keys echoed in the minibuffer.

---
 org-fc-keymap-hint.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/org-fc-keymap-hint.el b/org-fc-keymap-hint.el
index c910b22..93c32f9 100644
--- a/org-fc-keymap-hint.el
+++ b/org-fc-keymap-hint.el
@@ -30,6 +30,9 @@
(require 'org-fc)
(require 'edmacro)

(defvar org-fc-evil-keymaps nil
  "Identify if using evil-mode for keymap hints.")

(defun org-fc-keymap-hint--symbol-name (name)
  "Remove org-fc- prefixes from symbol NAME."
  (setq name (symbol-name name))
@@ -44,14 +47,14 @@
  "Generate key-binding hints string for KEYMAP."
  (mapconcat
   (lambda (key)
     (if (symbolp (cdr key))
     (if (if org-fc-evil-keymaps (listp key) (symbolp (cdr key)))
         (format
          "[%s] %s"
          (edmacro-format-keys (list (car key)))
          (if (symbolp (cdr key))
              (org-fc-keymap-hint--symbol-name (cdr key))
            (cdr key)))))
   (reverse (cdr keymap))
   (reverse (if org-fc-evil-keymaps (cadr keymap) (cdr keymap)))
   " "))

(add-hook 'org-fc-review-flip-mode-hook
--
2.29.2

--
Trey Peacock
Reply to thread Export thread (mbox)