Skip to content

Instantly share code, notes, and snippets.

@nyanshell
Created March 16, 2023 10:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nyanshell/5267583a1a004f22c4aee280bf2789e8 to your computer and use it in GitHub Desktop.
Save nyanshell/5267583a1a004f22c4aee280bf2789e8 to your computer and use it in GitHub Desktop.
emacs rime config
(use-package rime
:custom
(rime-librime-root "/home/flandre/.emacs.d/librime/build")
;; (rime-librime-root (expand-file-name "librime/build" user-emacs-directory))
(default-input-method "rime")
:bind
(:map rime-mode-map
("C-`" . 'rime-send-keybinding)))
;; :config
;; (define-key rime-active-mode-map (kbd "C-2") 'rime-s2t)
;; (push "C-2" rime-translate-keybindings));
;; (push "f4" rime-translate-keybindings))
;; rime
(require 'posframe)
;; (require 'rime)
(rime-compile-module)
;; (define-key rime-active-mode-map (kbd "S-C-f") 'rime-s2t)
;; (setq rime-translate-keybindings '("C-2"))
(setq default-input-method "rime"
rime-show-candidate 'posframe)
(setq rime-posframe-properties
(list :font "Noto Sans SC Regular"
:internal-border-width 10))
(setq rime-share-data-dir "/home/flandre/.emacs.d/rime")
;; (setq rime-show-candidate "posframe")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment