-
Notifications
You must be signed in to change notification settings - Fork 15
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 break magit-log-select-mode keybindings hint #28
Comments
开启了几个sis-*-mode之后,经常在magit buffer里自定义的快捷键会失效,比如:global-map里的 不知道与这个issue是否相关。 |
@tshu-w emacs-smart-input-source/sis.el Line 846 in f2d4031
这样可以disable快捷键前缀截取 |
要不,彻底把 emacs-smart-input-source/sis.el Line 846 in f2d4031
请测试反馈 |
因为我用的doom, |
改成了 |
其实也没有改变快捷键,
我直接到包里面改成了 最小可复现配置: (setq package-archives '(("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")
("gnu" . "https://elpa.gnu.org/packages/")))
;; initialize packages
(unless (bound-and-true-p package--initialized) ; To avoid warnings in 27
(setq package-enable-at-startup nil) ; To prevent initializing twice
(package-initialize))
;; setup `use-package'
(unless (package-installed-p 'use-package)
(when (not package-archive-contents)
(package-refresh-contents))
(package-install 'use-package))
(require 'use-package)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package evil
:ensure t
:init
(setq evil-want-keybinding nil)
(evil-mode))
(use-package evil-collection
:ensure t
:init
(evil-collection-init))
(use-package magit :ensure t)
(use-package sis
:ensure t
:hook (after-init . sis-global-respect-mode)
:config
(sis-ism-lazyman-config nil "rime" 'native)
(setq sis-prefix-override-keys '("C-c" "C-x" "C-h" "M-SPC"))
(setq-default sis-inline-tighten-head-rule 0
sis-inline-tighten-tail-rule 1)) |
@laishulu 我也遇到了类似的问题。 执行
光标在这个位置就不正常: 光标在这个位置的时候正常: 关闭 sis-global-respect-mode 后,都正常。 目前的解决方案: 配置变量 (setq sis-prefix-override-buffer-disable-predicates
(list 'minibufferp
(lambda (buffer)
(sis--string-match-p "^magit" (buffer-name buffer)))
(lambda (buffer)
(and (sis--string-match-p "^\*" (buffer-name buffer))
(not (sis--string-match-p "^\*new\*"
(downcase (buffer-name buffer))))
(not (sis--string-match-p "^\*scratch\*"
(downcase (buffer-name buffer)))))))) |
to enter magit-log-select-mode, M-x magit-status, magit-rebase and select modify a commit
before enable it:
after:
The text was updated successfully, but these errors were encountered: