mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 16:53:00 +00:00
feat(emacs) rime
This commit is contained in:
parent
214f23425d
commit
da0cc1d6e8
11 changed files with 100 additions and 29 deletions
|
|
@ -21,8 +21,24 @@
|
|||
;; See 'C-h v doom-font' for documentation and more examples of what they
|
||||
;; accept. For example:
|
||||
;;
|
||||
(setq doom-font (font-spec :family "Iosevka Nerd Font Propo" :size 14 :weight 'semi-light)
|
||||
doom-variable-pitch-font (font-spec :family "JetBrainsMono Nerd Font" :size 13))
|
||||
;; https://emacs-china.org/t/doom-emacs/23513/13
|
||||
(setq doom-font (font-spec :family "Iosevka Nerd Font Propo" :size 14)
|
||||
doom-serif-font doom-font
|
||||
doom-symbol-font (font-spec :family "LXGW WenKai Mono")
|
||||
doom-variable-pitch-font (font-spec :family "LXGW WenKai Mono" :weight 'extra-bold))
|
||||
|
||||
;; 如果不把这玩意设置为 nil, 会默认去用 fontset-default 来展示, 配置无效
|
||||
(setq use-default-font-for-symbols nil)
|
||||
|
||||
;; Doom 的字体加载顺序问题, 如果不设定这个 hook, 配置会被覆盖失效
|
||||
(add-hook! 'after-setting-font-hook
|
||||
(set-fontset-font t 'latin (font-spec :family "Iosevka Nerd Font Propo"))
|
||||
(set-fontset-font t 'symbol (font-spec :family "Symbola"))
|
||||
(set-fontset-font t 'mathematical (font-spec :family "Symbola"))
|
||||
(set-fontset-font t 'emoji (font-spec :family "Symbola")))
|
||||
|
||||
;; (dolist (charset '(kana han cjk-misc bopomofo))
|
||||
;; (set-fontset-font t charset (font-spec :family "LXGW WenKai Mono" :size 16)))
|
||||
;;
|
||||
;; If you or Emacs can't find your font, use 'M-x describe-font' to look them
|
||||
;; up, `M-x eval-region' to execute elisp code, and 'M-x doom/reload-font' to
|
||||
|
|
@ -94,5 +110,12 @@
|
|||
(load! "org.el")
|
||||
|
||||
(after! evil-matchit
|
||||
(global-evil-matchit-mode 1)
|
||||
)
|
||||
(global-evil-matchit-mode 1)
|
||||
)
|
||||
|
||||
|
||||
(use-package! rime
|
||||
:config
|
||||
(setq default-input-method "rime")
|
||||
(add-hook! (org-mode markdown-mode) (activate-input-method default-input-method))
|
||||
)
|
||||
|
|
|
|||
|
|
@ -12,4 +12,7 @@
|
|||
:nv "I" 'evil-next-buffer
|
||||
:nvom "N" '(lambda () (interactive) (evil-next-line 5)) ; 5n
|
||||
:nvom "E" '(lambda () (interactive) (evil-previous-line 5)) ; 5e
|
||||
:nvom "C-w n" 'evil-window-down
|
||||
:nvom "C-w e" 'evil-window-up
|
||||
:nvom "C-w i" 'evil-window-right
|
||||
)
|
||||
|
|
|
|||
|
|
@ -16,7 +16,8 @@
|
|||
|
||||
(doom! :input
|
||||
;;bidi ; (tfel ot) thgir etirw uoy gnipleh
|
||||
chinese
|
||||
;;; 关闭 chinese 以启用 best Chinese IME
|
||||
;; chinese
|
||||
;;japanese
|
||||
;;layout ; auie,ctsrnm is the superior home row
|
||||
|
||||
|
|
@ -75,7 +76,7 @@
|
|||
vc ; version-control and Emacs, sitting in a tree
|
||||
|
||||
:term
|
||||
;;eshell ; the elisp shell that works everywhere
|
||||
eshell ; the elisp shell that works everywhere
|
||||
;;shell ; simple shell REPL for Emacs
|
||||
;;term ; basic terminal emulator for Emacs
|
||||
;;vterm ; the best terminal emulation in Emacs
|
||||
|
|
|
|||
|
|
@ -52,3 +52,4 @@
|
|||
(package! copilot
|
||||
:recipe (:host github :repo "copilot-emacs/copilot.el" :files ("*.el")))
|
||||
(package! evil-matchit)
|
||||
(package! rime)
|
||||
|
|
|
|||
|
|
@ -31,12 +31,15 @@
|
|||
(:map global-map
|
||||
("M-0" . treemacs-select-window)
|
||||
("C-x t 1" . treemacs-delete-other-windows)
|
||||
("C-x t t" . treemacs)
|
||||
;; ("C-x t t" . treemacs)
|
||||
("C-x t d" . treemacs-select-directory)
|
||||
("C-x t B" . treemacs-bookmark)
|
||||
("C-x t C-t" . treemacs-find-file)
|
||||
("C-x t M-t" . treemacs-find-tag)
|
||||
)
|
||||
:config
|
||||
(evil-leader/set-key
|
||||
"ft" 'treemacs)
|
||||
)
|
||||
|
||||
(use-package treemacs-evil
|
||||
|
|
|
|||
3
tools/wezterm/.gitignore
vendored
3
tools/wezterm/.gitignore
vendored
|
|
@ -8,5 +8,8 @@
|
|||
# ln -sf $DOTFILES/tools/wezterm $XDG_CONFIG_HOME/wezterm
|
||||
# New-Item -ItemType SymbolicLink -Target $DOTFILES\tools\wezterm -Path $Env:XDG_CONFIG_HOME\wezterm
|
||||
|
||||
# In windows, many cache & logs are stored in %APPDATA%\wezterm
|
||||
|
||||
*.json
|
||||
check_update
|
||||
plugins
|
||||
|
|
@ -23,10 +23,12 @@ return function(config)
|
|||
}
|
||||
-- Cursor
|
||||
config.animation_fps = 120
|
||||
config.cursor_blink_ease_in = "EaseOut"
|
||||
config.cursor_blink_ease_out = "EaseOut"
|
||||
config.default_cursor_style = "BlinkingBlock"
|
||||
config.cursor_blink_rate = 650
|
||||
if not os_type.is_win then -- This is sooooooo slow on Windows
|
||||
config.cursor_blink_ease_in = "EaseOut"
|
||||
config.cursor_blink_ease_out = "EaseOut"
|
||||
config.default_cursor_style = "BlinkingBlock"
|
||||
config.cursor_blink_rate = 650
|
||||
end
|
||||
-- Visual Bell
|
||||
config.visual_bell = {
|
||||
fade_in_function = "EaseIn",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue