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.
我希望通过 dired 的文件导航在单独的框架中进行,但所有文件都在另一个框架中打开。那么如何将 dired-mode 缓冲区粘贴到独立帧上呢?谢谢。
我对不使用额外包的解决方案感兴趣。
在你的 init 文件 ( .emacs) 中加入这样的内容:
.emacs
(defadvice dired(专用激活后) “让这个 Dired 窗口专用。” (set-window-dedicated-p (selected-window) t))
这使得 Dired 的窗口是专用的,这意味着它不能被重新用于另一个缓冲区。您可以对其他 Dired 命令执行相同的操作 - 例如dired-other-window.
dired-other-window