Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sis-global-respect-mode 和前缀键开始的键盘宏有冲突 #37

Open
bohonghuang opened this issue Sep 30, 2021 · 4 comments
Open

Comments

@bohonghuang
Copy link

Peek 2021-09-30 22-36
开启 sis-global-respect-mode 后 ,定义出以前缀键开始的键盘宏就会有问题,比如图中演示的 C-x o ,Emacs版本是28.0.5。

@DogLooksGood
Copy link

meow 的 keypad 也有这样的问题。是否可以通过 input-decode-mapfunction-key-map 来实现这个功能,他们都可以绑定一个函数。

@roife
Copy link
Contributor

roife commented Oct 20, 2023

遇到了同样的问题,请问现在有解决方案了吗

@roife
Copy link
Contributor

roife commented Oct 28, 2023

  ;; WORKAROUND: conflicts with keypad
  (add-hook! meow-leave-insert-mode-hook #'sis-prefix-override-buffer-disable)
  (add-hook! meow-enter-insert-mode-hook #'sis-prefix-override-buffer-enable)
  (add-hook! (meow-normal-mode meow-motion-mode)
    (defun +sis-meow-set-english ()
      (when (or meow-normal-mode
                meow-motion-mode)
        (sis-set-english))))

  ;; WORKAROUND: conflicts with kbd macro
  (defadvice! +sis-disable-prefix-override (&rest _)
    :before #'start-kbd-macro
    (sis-prefix-override-buffer-disable))
  (defadvice! +sis-enable-prefix-override (&rest _)
    :before #'end-kbd-macro
    (when (bound-and-true-p meow-insert-mode)
      (sis-prefix-override-buffer-enable)))

@running-grass
Copy link

遇到相同的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants