- replace "add-pkg-in-pkg-dir" (recursive load-path scanning) with a central "creature/pkgs" registry that handles load path, autoloads, info dirs and dependencies - adapt all init-*.el files to the new activation function - add a top-level Makefile to byte-compile site-lisp packages - remove unused "emacs-kv" and "emacs-db" submodules
39 lines
956 B
EmacsLisp
39 lines
956 B
EmacsLisp
;; -*- coding: utf-8; lexical-binding: t; -*-
|
|
|
|
(require 'init-package)
|
|
|
|
(creature/pkg-active 'rime)
|
|
(creature/pkg-active 'lazy-load)
|
|
|
|
(require 'rime)
|
|
|
|
|
|
(setq default-input-method "rime")
|
|
(setq rime-show-candidate 'posframe)
|
|
(setq rime-posframe-style 'vertical)
|
|
(setq rime-posframe-fixed-position t)
|
|
(setq rime-sidewindow-style 'vertical)
|
|
|
|
(defun creature/adjust-show-candidate ()
|
|
(when rime-active-mode
|
|
(unless (display-graphic-p)
|
|
(setq rime-show-candidate 'sidewindow))))
|
|
(add-hook 'rime-active-mode-hook #'creature/adjust-show-candidate)
|
|
|
|
(lazy-load-set-keys
|
|
'(("M-i" . rime-select-schema)
|
|
("C-`" . rime-send-keybinding)
|
|
("M-`" . rime-send-keybinding)
|
|
("C-@" . rime-send-keybinding)
|
|
("M-SPC" . rime-send-keybinding))
|
|
rime-mode-map)
|
|
|
|
(lazy-load-set-keys
|
|
'(("M-i" . rime-inline-ascii)
|
|
("M-o" . rime--backspace)
|
|
("M-h" . rime--escape)
|
|
("C-S-<return>" . rime-send-keybinding))
|
|
rime-active-mode-map)
|
|
|
|
(provide 'init-rime)
|