DogLooksGood / emacs-rime

RIME ㄓ in Emacs
GNU General Public License v3.0
478 stars 68 forks source link

[BUG] Windows10 上面小狼豪无法输入 #187

Closed zilongshanren closed 2 years ago

zilongshanren commented 2 years ago

问题描述

安装编译动态模块成功,切换输入法也成功, default-input-method已经修改成 rime了,但是无法输入中文。

Emacs中的配置

(use-package rime
  :custom
  (default-input-method "rime"))

是否可在 emacs -Q 中复现

是/否

环境信息

DogLooksGood commented 2 years ago

确认下是否布署成功了呢?如果没有配置的话,应该在 ~/.emacs.d/rime 会有个目录。

zilongshanren commented 2 years ago

回头我检查看看,我有配置用户数据目录

zilongshanren commented 2 years ago
(use-package rime
  :init
  (setq default-input-method "rime")
  :config
  (progn (set-face-attribute 'rime-default-face nil :foreground "#839496" :background "#073642")
         (setq rime-librime-root (expand-file-name "librime/dist" user-emacs-directory))
         (setq rime-show-candidate 'posframe)
         (setq rime-share-data-dir "~/Library/Rime")
         (setq rime-user-data-dir "~/Library/Rime")
         (if sys/win32p
             (progn
               (setq rime-share-data-dir "C:\\Users\\lionqu\\AppData\\Roaming\\Rime")
               (setq rime-user-data-dir "C:\\Users\\lionqu\\AppData\\Roaming\\Rime")
               ))
         (setq rime-posframe-properties
               (list :background-color "#073642"
                     :foreground-color "#839496"
                     :internal-border-width 1))))

我的 librime放在 .emacs.d目录

zilongshanren commented 2 years ago

image

DogLooksGood commented 2 years ago

你使用 rime-deploy 这个命令会发生什么呢?还有就是确定是否是 rime 在激活?

zilongshanren commented 2 years ago

你使用 rime-deploy 这个命令会发生什么呢?还有就是确定是否是 rime 在激活?

调用一下 rime-deploy 解决了,帅

DogLooksGood commented 2 years ago

嗯,如果切换过目录位置,就需要重新 rime-deploy.