现在有个问题很闹心,那就是在使用快捷键时,如果全程加ctrl、alt还好,像m-g m-g之类的没问题,问题是很多快捷键只能是c-h t 这种形式,单独的字母键会直接呼出中文待选单,我又常常混输中英文,不是每次都能记住使用快捷键时处在哪个状态,这就造成快速输入时常常卡住,非常麻烦,请问有没有办法在我输入第一个快捷键时就自动切换成英文,等快捷键功能执行完后自动返回之前的输入法状态?
(setq package-archives '(("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/g\
nu/")
("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/m\
elpa/")))
(package-initialize) ;; You might already have this line
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(sis)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(sis-ism-lazyman-config "1033" "2052" 'im-select)
(require 'package)
(add-to-list 'package-archives '("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/"))
(add-to-list 'package-archives '("melpa" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/melpa/"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-and-compile
(setq use-package-always-ensure t
use-package-expand-minimally t))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(use-package sis)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(use-package sis
:bind("C-<f9>" . sis-switch)
:config
(sis-ism-lazyman-config "1033" "2052" 'im-select)
)