在Emacs中设置视线的列宽 [英] Set column width for visual lines in Emacs

查看:176
本文介绍了在Emacs中设置视线的列宽的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否等同于Wrap模式的 fill-column 变量( visual-line-mode )在Emacs?如果没有,当缓冲区的窗口/框架更宽时,我如何设置视线长度的限制?

Is there an equivalent to the fill-column variable for the "Wrap" mode (visual-line-mode) in Emacs? If not, how could I set a limit on the length of visual lines when the window/frame of the buffer is wider ?

推荐答案

为了回答这个问题,我创建了一个名为窗口边缘的小模式,它完成了什么@Stefan在他的回答中建议。

In response to this question I created a minor mode called window-margin that accomplishes what @Stefan suggested in his answer.

打开 window-margin-mode with:

(add-hook 'text-mode-hook 'turn-on-window-margin-mode)

安装窗口边缘是使用Emacs附带的 longlines-mode ,但正在逐步淘汰,因为有一些 longlines-mode的问题,但是如果需要,这里是旧的方法:

The way you can still do it without installing window-margin is to use the longlines-mode that ships with Emacs, but is being phased out since there are some problems with longlines-mode, but here's the old way to do it if you want:

转动在 longlines-mode 之类的东西:

(add-hook 'text-mode-hook 'longlines-mode)

其中包含填充栏

这篇关于在Emacs中设置视线的列宽的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆