emacsorphanage / key-chord

Map pairs of simultaneously pressed keys to commands
http://emacswiki.org/emacs/download/key-chord.el
115 stars 23 forks source link

wrong keymap used #1

Closed killdash9 closed 5 years ago

ipstone commented 5 years ago

Has this been tested? I am also interested in contributing to this key-chord, currently there is no mode-line info shown, I tried the following code, which works -- ideally we should add to the package:

;; Internal vars
(defvar key-chord-mode nil
  "Mode variable for key-chord minor mode" ) 
;; (make-variable-buffer-local 'key-chord-mode) ;; Not sure if it's needed/good?
;; Add key-chord-mode to minor-mode-alist
(if (not (assq 'key-chord-mode minor-mode-alist))
      (setq minor-mode-alist
      (cons '(key-chord-mode " KeyC ") ;; Use KeyC to show on mode-line
      minor-mode-alist)))

It will be nice if we can open issues here, etc.

tarsius commented 5 years ago

This has been fixed.