【问题标题】:Emacs - how to install and use dired+?Emacs - 如何安装和使用dired+?
【发布时间】:2023-03-08 20:07:01
【问题描述】:

我在 Windows 7 上使用 GNU Emacs 24.2.1。 我想使用dired+ 功能,但我无法正确加载它们。

dired+.el 文件存在于我的 lisp 路径中。

我在 Emacs 启动期间加载的配置文件中添加了 (require 'dired+) 行。

但是当我输入C-x d时,在我看来,加载的是“正常”的dired,而不是dired+。

  • 如何判断我使用的是 dired+ 还是 dired?
    看起来像这样:
  • 可以使用以diredp- 开头的命令,所以似乎 dired+ 以某种方式加载,但是 e。 G。我没有在上下文菜单中看到可用的附加命令,用鼠标右键单击应该允许我在 Windows 资源管理器 e 中打开一个目录。 G。 (如 dired+ wiki 中所述:http://www.emacswiki.org/emacs/DiredPlus

我做错了什么?

【问题讨论】:

    标签: emacs windows-7 dired


    【解决方案1】:

    从 dired+.el 标头中的 cmets 来看,dired+ 不会增加通常的 dired 模式显示,而是您必须使用 dired+ 特定的入口点才能进入 dired+ 缓冲区。

    ;;  Additional suggested key bindings:
    ;;
    ;; (define-key ctl-x-map   "d" 'diredp-dired-files)
    ;; (define-key ctl-x-4-map "d" 'diredp-dired-files-other-window)
    

    因此,您将使用 diredp-dired-files 覆盖通常的 C-x d 键绑定 (dired)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多