在 emacs 中打印
我正在尝试在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在找到更好的答案之前,我会这样做:使用
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, thenundo
to revert if necessary.The key sequence: C-x hM-x fill-regionM-x ps-print-buffer-with-faceC-/.
我进一步搜索,但似乎没有办法做到这一点。
I searched further, but there seems to be no way to do this.