Add emacs-rime as input method
This commit is contained in:
parent
0ca3680097
commit
f8565daf66
1
init.el
1
init.el
@ -19,6 +19,7 @@
|
|||||||
(require 'init-save)
|
(require 'init-save)
|
||||||
(require 'init-window)
|
(require 'init-window)
|
||||||
(require 'init-ai)
|
(require 'init-ai)
|
||||||
|
(require 'init-rime)
|
||||||
|
|
||||||
;; Edit
|
;; Edit
|
||||||
(require 'init-completion)
|
(require 'init-completion)
|
||||||
|
46
install/install-arch.sh
Normal file
46
install/install-arch.sh
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if command -v xelatex > /dev/null 2> /dev/null; then
|
||||||
|
echo "TeX Live is already installed."
|
||||||
|
else
|
||||||
|
echo "ERROR! TeX Live has not been installed. Make sure it's installed and environment variables are configured correctly."
|
||||||
|
echo "Depends on the TeX Live edition, append corresponding environments variables into ~/.zshrc"
|
||||||
|
echo 'export PATH="/usr/local/texlive/2024/bin/x86_64-linux:$PATH"'
|
||||||
|
echo 'export MANPATH="/usr/local/texlive/2024/texmf-dist/doc/man:$MANPATH"'
|
||||||
|
echo 'export INFOPATH="/usr/local/texlive/2024/texmf-dist/doc/info:$INFOPATH"'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# emacs
|
||||||
|
sudo pacman -S emacs
|
||||||
|
|
||||||
|
# fonts
|
||||||
|
yay -S nerd-fonts-sarasa-term
|
||||||
|
sudo pacman -S ttf-nerd-fonts-symbols
|
||||||
|
|
||||||
|
# lsp-bridge
|
||||||
|
## dependency
|
||||||
|
sudo pacman -S python-orjson python-six python-setuptools python-paramiko python-rapidfuzz python-watchdog python-packaging
|
||||||
|
yay -S python-epc python-sexpdata python-pynput
|
||||||
|
## lsp
|
||||||
|
sudo pacman -S npm
|
||||||
|
sudo npm install -g yaml-language-server
|
||||||
|
sudo npm install -g bash-language-server
|
||||||
|
sudo npm install -g vscode-langservers-extracted
|
||||||
|
sudo npm install -g pyright
|
||||||
|
yay -S python-lsp-ruff
|
||||||
|
sudo pacman -S texlab
|
||||||
|
|
||||||
|
# vterm
|
||||||
|
sudo pacman -S cmake
|
||||||
|
|
||||||
|
# aider
|
||||||
|
export PATH="$PATH:$HOME/.local/bin"
|
||||||
|
python -m pip install aider-install --break-system-packages
|
||||||
|
aider-install
|
||||||
|
|
||||||
|
# rime
|
||||||
|
sudo pacman -S librime
|
||||||
|
|
||||||
|
# fetch submodules
|
||||||
|
git submodule update --init
|
@ -36,5 +36,9 @@ brew install texlab
|
|||||||
# aider
|
# aider
|
||||||
brew install aider
|
brew install aider
|
||||||
|
|
||||||
|
# rime
|
||||||
|
brew install --cask squirrel
|
||||||
|
brew install librime
|
||||||
|
|
||||||
# fetch submodules
|
# fetch submodules
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
|
18
lisp/init-rime.el
Normal file
18
lisp/init-rime.el
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
;;; init-rime.el --- Rime settings -*- lexical-binding: t -*-
|
||||||
|
;;; Commentary:
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
|
|
||||||
|
(use-package rime
|
||||||
|
:ensure t
|
||||||
|
:config
|
||||||
|
(setq default-input-method "rime")
|
||||||
|
(setq rime-user-data-dir "~/.config/fcitx/rime")
|
||||||
|
(setq rime-show-candidate 'posframe)
|
||||||
|
:bind
|
||||||
|
("C-SPC" . 'toggle-input-method)
|
||||||
|
)
|
||||||
|
|
||||||
|
(provide 'init-rime)
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
;;; init-rime.el ends here
|
Loading…
Reference in New Issue
Block a user