【问题标题】:Dired - open files in another Emacs windowDired - 在另一个 Emacs 窗口中打开文件
【发布时间】:2012-04-02 07:39:26
【问题描述】:

我想在屏幕上显示两个 Emacs 窗口:一个用于 Dired,一个用于代码。但是,当我单击 Dired 缓冲区中的文件时,该文件会在同一个窗口中打开,而不是 Dired 缓冲区。我可以改变这种行为吗?

【问题讨论】:

    标签: emacs dired


    【解决方案1】:

    你为什么用鼠标点击东西?我以为你在使用 Emacs?

    将指针移到您感兴趣的行并按 o 在另一个窗口中打开它或按 C-o 打开文件但停留在 Dired 缓冲区。

    如果你必须用鼠标来做,用鼠标中键来做同样的事情。

    【讨论】:

      【解决方案2】:

      S-Return 在 spacemacs 中为我工作,如果有人感兴趣的话。

      dired-find-file-other-window is an interactive compiled Lisp function in
      `dired.el'.
      
      It is bound to <S-return>, g O, <normal-state> <S-return>, <normal-state> g O,
      <menu-bar> <immediate> <find-file-other-window>.
      
      (dired-find-file-other-window)
      
      For more information check the manuals.
      
      In Dired, visit this file or directory in another window.
      
      [back]
      

      【讨论】:

        猜你喜欢
        • 2012-10-16
        • 1970-01-01
        • 2011-01-22
        • 1970-01-01
        • 1970-01-01
        • 2016-05-05
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多