【问题标题】:How to set the default width of fill mode to 80 with emacs?如何使用emacs将填充模式的默认宽度设置为80?
【发布时间】:2010-08-25 14:13:01
【问题描述】:

我知道 "C-u 80 C-x f" 将填充宽度设置为 80,然后 M-q 调整它。 如何使其默认?我的意思是,如何将宽度设置为默认的 80 填充宽度?

【问题讨论】:

    标签: emacs


    【解决方案1】:

    在您的 .emacs 位置 (setq-default fill-column 80) 或者您可以在填充列上使用 M-x 自定义变量,它会使用标准自定义界面为您设置并保存它。

    【讨论】:

    • AFAIU fill-column 是一个缓冲区局部变量,这就是为什么你需要setq-default,而不仅仅是setq
    猜你喜欢
    • 2015-01-06
    • 2011-12-26
    • 1970-01-01
    • 2016-03-09
    • 2014-01-16
    • 1970-01-01
    • 1970-01-01
    • 2012-11-30
    • 1970-01-01
    相关资源
    最近更新 更多