Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在emacs中编译我的项目时遇到了一点问题。编译缓冲区没有换行,我有一些很长的编译和链接命令,有时我想进行完整性检查。
有谁知道如何在添加到编译缓冲区的输出上强制换行,理想情况下是在添加时(自动填充)。
VBR,马克。
试试这个:
(defun my-compilation-mode-hook () (setq truncate-lines nil) ;; automatically becomes buffer local (set (make-local-variable 'truncate-partial-width-windows) nil)) (add-hook 'compilation-mode-hook 'my-compilation-mode-hook)