简体   繁体   English

Emacs:如何使俄语显示为单一宽度?

[英]Emacs: how to get Russian to display as single width?

Please tell me how to get Russian to display as single width, 请告诉我如何使俄语显示为单一宽度,

$ cat file
ABCDкомм中文1234

$ cat .emacs
(setq default-frame-alist '((font . "-sony-fixed-medium-r-normal--16-120-100-100-c-80-iso8859-1")))

without disturbing anything else which looks perfect currently for me. 不会打扰目前对我来说看起来很完美的任何事物。

My .emacs causes Russian to appear in 我的.emacs导致俄语出现在

xft:-WenQ-文泉驛點陣正黑-normal-normal-normal-*-16-*-*-*-*-0-iso10646-1

instead of the default 而不是默认值

xft:-PfEd-DejaVu Sans Mono-normal-normal-normal-*-15-*-*-*-m-0-iso10646-1

But I want to keep my .emacs line, as it makes everything else look good for me. 但我想保留我的.emacs行,因为这会使其他所有内容对我来说都很好。 Same problem for Greek. 希腊文也有同样的问题。 Emacs 25.2.2. Emacs 25.2.2。

PS, my LC_CTYPE=zh_TW.UTF-8, and I don't want to change it either. PS,我的LC_CTYPE = zh_TW.UTF-8,我也不想更改它。

OK... reading (info "(emacs) Modifying Fontsets") ... will try... 确定...阅读(信息“((emacs)修改字体集”))...将尝试...

Based on (info "(emacs) Modifying Fontsets"), one finds adding 基于(信息“(emacs)修改字体集”),发现添加了

(set-fontset-font "fontset-default" 'cyrillic "DejaVu Sans Mono")
(set-fontset-font "fontset-default" 'greek "DejaVu Sans Mono")

Works! 作品!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM