Emacs neotree 行间距

我想把neotree字体缩小成原来的0.7倍来模拟sublime,但是行间距还是那么大

我是直接修改face内的Height的

尝试过把line-spacing变量改成 -0.2,没有用啊

1 个赞

https://www.gnu.org/software/emacs/manual/html_node/elisp/Line-Height.html

On graphical terminals, you can specify the line spacing for all lines in a frame, using the line-spacing frame parameter (see Layout Parameters). However, if the default value of line-spacing is non-nil, it overrides the frame’s line-spacing parameter. An integer specifies the number of pixels put below lines. A floating-point number specifies the spacing relative to the frame’s default line height.

You can specify the line spacing for all lines in a buffer via the buffer-local line-spacing variable. An integer specifies the number of pixels put below lines. A floating-point number specifies the spacing relative to the default frame line height. This overrides line spacings specified for the frame.

Finally, a newline can have a line-spacing text or overlay property that overrides the default frame line spacing and the buffer local line-spacing variable, for the display line ending in that newline.

One way or another, these mechanisms specify a Lisp value for the spacing of each line. The value is a height spec, and it translates into a Lisp value as described above. However, in this case the numeric height value specifies the line spacing, rather than the line height.

On text terminals, the line spacing cannot be altered.

都用 emacs 了,还需要那棵么。放着占屏幕,用着也不方便。