Created
March 16, 2023 10:17
-
-
Save nyanshell/5267583a1a004f22c4aee280bf2789e8 to your computer and use it in GitHub Desktop.
emacs rime config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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