-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Make fcitx.el in Chinese layer work by default. #10460
Make fcitx.el in Chinese layer work by default. #10460
Conversation
(fcitx-default-setup) | ||
(fcitx-prefix-keys-add "M-m" "C-M-m") | ||
(if (eq system-type 'gnu/linux) | ||
(setq fcitx-use-dbus t))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This option may lead to command lag on linux:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. I made it an option by adding a layer variable. README.org is also updated.
layers/+intl/chinese/packages.el
Outdated
(setq fcitx-active-evil-states '(insert emacs hybrid)) | ||
(fcitx-default-setup) | ||
(fcitx-prefix-keys-add "M-m" "C-M-m") | ||
(if chinese-fcitx-use-dbus |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When there's no else clause, then if
should be changed to when
.
Update request:
|
… in original chinese layer. - Corrected README.org. It is dbus interface (not fcitx-remote) that is needed for linux.
@duianto Hi, thanks for the code review. The requests were done, but since it's been so long, and I am really not familiar with git, so please see if anything goes wrong. |
It's fine if your not familiar with git, we can fix or suggest changes and try to help. You'll learn more as you use git, I didn't know anything about it before starting to use Spacemacs a couple of years ago. If you haven't tried Magit I suggest you try it. It comes with the Spacemacs I made these changes:readme.orgRemoved double space between Before:
After:
Question 1:What's being sped up? If it's
If it's the
packages.elSince :init (fcitx-evil-turn-on) When :config
(progn
(setq fcitx-active-evil-states '(insert emacs hybrid))
(fcitx-default-setup)
(fcitx-prefix-keys-add "M-m" "C-M-m")
(when chinese-fcitx-use-dbus
(setq fcitx-use-dbus t))))) We prefer one commit per PR, so the four commits were squashed into one with this commit message:
Question 2:Does the commit message match the meaning you had in mind? I have these changes ready, but feel free to mention any changes/improvements you would like. |
It's fcitx.el that's being sped up. Setting
Yes they do.
I found that
Thanks a lot! |
Thank you for contributing to Spacemacs! |
Make fcitx.el work by default. fcitx.el was not configured properly in original chinese layer.
Corrected README.org. It is dbus interface (not fcitx-remote) that is needed for linux.