在 emacs 中打印

发布于 2024-09-15 17:40:52 字数 325 浏览 1 评论 0原文

我正在尝试在 emacs 中打印包含很长行的页面。有人从未听说过 80 列规则,现在我想打印该文件。我正在使用 ps-print-buffer-with-faces 命令

当我启动此命令时,我得到的行被包裹在单词中间。极其不舒服。但是,如果我使用 longlines-mode 为例,我会得到很好的换行,但行号错误(换行的行得到错误的数字)。当我让 ps-print 在单词中间进行换行时,不会出现此问题。

那么我如何告诉 ps-print 在单词边界处换行并保留行号?

谢谢!
金融理财师。

I'm trying to print a page with very long lines in emacs. Someone out there has never heard of the 80 columns rule, and now I'd like to print that file. I'm using the ps-print-buffer-with-faces command

When I launch this command, I get lines wrapped in the middle of words. Extremely uncomfortable. But if I use the longlines-mode for examples, I get nice wrapping, but wrong line numbers (lines which wrap get wrong numbers). This problem doesn't occur when I let ps-print do the wrapping in the middle of words.

So how can I tell ps-print to wrap at word boundaries and preserve line numbers?

Thanks!
CFP.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

海螺姑娘 2024-09-22 17:40:52

在找到更好的答案之前,我会这样做:使用 fill-region 硬包装并打印缓冲区,然后在必要时使用 undo 进行恢复。

按键序列:Cx hMx fill-regionMx ps-print-buffer-with-faceC-/

Before there's a better answer, here is what I'd do: use fill-region to hard-wrap and print the buffer, then undo to revert if necessary.

The key sequence: C-x hM-x fill-regionM-x ps-print-buffer-with-faceC-/.

悍妇囚夫 2024-09-22 17:40:52

我进一步搜索,但似乎没有办法做到这一点。

I searched further, but there seems to be no way to do this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文