Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何安装插件,我想添加vim支持 #4

Open
yxsongbo opened this issue Jan 1, 2022 · 6 comments
Open

如何安装插件,我想添加vim支持 #4

yxsongbo opened this issue Jan 1, 2022 · 6 comments

Comments

@yxsongbo
Copy link

yxsongbo commented Jan 1, 2022

No description provided.

@cabins
Copy link
Owner

cabins commented Jan 4, 2022

  • 你可以添加自己的相关代码到init.el
  • 或者你自己写一个el文件,然后在init.el中require引入即可
  • 或者你直接添加到init-packages里面。

都是可以的。

@yxsongbo
Copy link
Author

yxsongbo commented Jan 5, 2022

谢谢,已经弄好了
还有orgmode下heading的中文字体字体特别大,应该怎么缩小?英文字体和中文字体大小也不成比例

@cabins
Copy link
Owner

cabins commented Jan 6, 2022

init-ui.el文件里面的cabins/setup-font函数定义了字体以及字体的放大系数,你可以修改看下。

@yxsongbo
Copy link
Author

yxsongbo commented Jan 7, 2022

我用微软拼音输入法的时候,汉语拼音的字体太小了,这个要怎么调大呢?

@yxsongbo
Copy link
Author

yxsongbo commented Jan 7, 2022

我没有学过lisp,请问要修改字体是这样吗,我在里边增加了微软雅黑

(interactive)
(let* ((efl '("Cascadia Code" "Source Code Pro" "JetBrains Mono" "Courier New" "Monaco" "Ubuntu Mono"))
(cfl '("微软雅黑" "楷体" "黑体" "STHeiti" "STKaiti"))
(cf (available-font cfl))
(ef (available-font efl)))
(when ef
(dolist (face '(default fixed-pitch fixed-pitch-serif variable-pitch))
(set-face-attribute face nil :family ef)))
(when cf
(dolist (charset '(kana han cjk-misc bopomofo))
(set-fontset-font t charset cf))
(setq face-font-rescale-alist
(mapcar (lambda (item) (cons item 0.9)) cfl)))))

@cabins
Copy link
Owner

cabins commented Jan 12, 2022

是这样。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants