55

GitHub - DogLooksGood/emacs-rime: RIME ㄓ in Emacs

 5 years ago
source link: https://github.com/DogLooksGood/emacs-rime
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

README.org

Emacs Rime

https://i.imgur.com/RqJkzlx.gif

在 Emacs 中通过 liberime 集成 RIME 输入法,可支持多种输入方案。

使用方法

(use-package liberime-config
  :quelpa (liberime-config
           :fetcher github
           :repo "DogLooksGood/liberime"
           :files ("CMakeLists.txt" "Makefile" "src" "liberime-config.el")))

(use-package rime
  :quelpa (rime
           :fetcher github
           :repo "DogLooksGood/emacs-rime"
           :files ("rime.el")))

设置输入中发送到 Rime 的组合键。

下面的设置,使输入过程中的 C-fC-b 发送给 Rime 。可以用来配合方案中的设置完成光标移动和选字等功能。 支持 Control (C-), Meta (M-), Shift (S-)的组合键。

;; 默认值
(setq rime-translate-keybindings
  '("C-f" "C-b"))

候选框展示风格

设置 rime-show-candidate

可选值说明nil不展示minibuffer在minibuffer中展示, 推荐使用的方式message直接使用 message 输出,兼容控制 minibuffer 内容的插件popup使用 popup.el 展示跟随的候选

针对仓颉等具有编码注释功能的方案

目前的编码编辑功能与方案的编码注释不兼容,关闭方案中的编码注释或使用下面的设置关闭编码编辑功能。

(setq rime-input-editable nil)

用于展示的提示符

使用函数 (rime-lighter) 返回一个用于展示的 符号。 可以通过 rime-indicator-facerime-indicator-dim-face 设置样式。

临时英文模式的切换

如果使用模式编辑,或是需要在一些特定的场景下自动使用英文,可以 rime-disable-predicates

一个在 evil-normal-state 中、在英文字母后面以及代码中自动使用英文的例子。

(setq rime-disable-predicates
      '(evil-normal-state-p
        rime--after-alphabet-char-p
        rime--prog-in-code-p))

如果你使用 Linux

Emacs 有一个优秀的远古BUG: 如果 LC_CTYPEen_US.UTF8 的话,那么就无法调用起 Fcitx. 所以可以利用这点把 Emacs 内切换输入法的快捷键和系统快捷键设为同一个键。

优秀的 Emacs 输入法

你可能需要 pyim, liberime, erime.


Recommend

  • 23

    parinfer-mode - Parinfer for Emacs :)

  • 115

    Less is more Highlights Semantic but still effective layout on Dvorak, Colemak and Qwerty. A complete modal editing plays well with special modes, like dired, etc. Never pay for co...

  • 8
    • www.ahonn.me 3 years ago
    • Cache

    用 RIME 定制输入法

    用 RIME 定制输入法Thursday, January 30, 2020RimeIME一直以来我都希望能够有一款输入法能够让我高度的进行自定义,就像 Vim 一样能通过配置文件来进行配置。发现 Rime 正好符合我的需求,加上最近在学习双拼,便折腾了起来。 什...

  • 12

    「Rime 鼠须管」小鹤双拼配置指南 发表于 2019-06-15...

  • 7
    • inote.xyz 3 years ago
    • Cache

    Rime 输入法多端配置

    最近工信部公布数据,几乎所有主流云输入法都在违规收集用户隐私数据,要安全放心输入只有使用单机输入法,当前最好的单机输入法非 Rime 莫属。 准确讲,Rime 是一款开源跨平台输入法引擎...

  • 61
    • rovo98.github.io 3 years ago
    • Cache

    fcitx5-rime 挂接小鹤音形

    fcitx5-rime 挂接小鹤音形 Posted on 2020-08-21 In Linux Views: 18 近几天,在看 Github explore 时意外看到了

  • 9
    • ttys3.dev 3 years ago
    • Cache

    Nvim and Rime Esc Auto Switch

    January 10, 2021 前提⚓ 简单描述下自动切换的行为: nvim记住最近一次插入模式时的输入法(可能是英文...

  • 8
    • finance.yahoo.com 3 years ago
    • Cache

    Tencent buys 'Rime' developer Tequila Works

    Tencent buys 'Rime' developer Tequila WorksS&P 5004,226.51+53.40 (+1.28%)Dow 3033,311.42+366.18 (+1.11%)

  • 16
    • hsingko.github.io 3 years ago
    • Cache

    在doom emacs中安装emacs-rime

    最近看了《子弹笔记法》,又想要折腾GTD工作法了。为什么起这个念头呢?那是因为2020都快结束了,而年初的计划根本就没有实现啊,感觉又白白浪费了一年,而我的青春已经所剩无几了(甚至到了连说“青春”两个字都要厚着脸皮的地步)。看了这本书之后,我决心要通...

  • 4

    Rime auto deploy 一个自用的脚本,帮助无痛快速安装、部署 Rime 输入法(中州韵、小狼毫,鼠须管)以及部署配置。 一、不同系统下使用说明

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK