chuntaro / emacs-keypression

Keystroke visualizer for GUI version Emacs.
122 stars 4 forks source link

not compatible with ace-window #5

Closed stardiviner closed 4 years ago

stardiviner commented 4 years ago

I tried this package, found that it is not compatible with ace-window. keypression will take the first window number. Maybe keypression frame and window should be ignored by ace-window.

chuntaro commented 4 years ago

Try the following settings. The ace-window will now ignore the keypression window.

(require 'ace-window)
(add-to-list 'aw-ignored-buffers 'fundamental-mode)

;; or

(require 'keypression)
(add-hook 'keypression-mode-hook
          (lambda ()
            (when keypression-mode
              (mapc (lambda (buf)
                      (add-to-list 'aw-ignored-buffers (buffer-name buf)))
                    keypression--buffers))))
stardiviner commented 4 years ago

This dirty hack workaround fix my problem. Thanks