首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在emacs 21中设置ido模式

在emacs 21中设置ido模式
EN

Stack Overflow用户
提问于 2011-09-15 17:33:32
回答 2查看 767关注 0票数 1

我正在使用ido模式。以及AIX上的GNUM emacs 21.1.1。我在.emacs.d中添加了ido.el。并在.emacs文件中添加以下内容。

代码语言:javascript
复制
(load-file "~/.emacs.d/site-lisp/ido/ido.el")
(require 'ido)
(ido-mode t)
(setq ido-enable-flex-matching t) ;; enable fuzzy matching

当启动emacs时,它会报错。也没有ido-mode。如何解决这个问题?

代码语言:javascript
复制
error: "Unknown req `min-colors' with options `(88)'"

To ensure normal operation, you should investigate the cause
of the error in your initialization file and remove it.  Start
Emacs with the `--debug-init' option to view a complete error
backtrace

回溯的内容

代码语言:javascript
复制
Debugger entered--Lisp error: (error "Unknown req `min-colors' with options `(88)'")
  signal(error ("Unknown req `min-colors' with options `(88)'"))
  error("Unknown req `%S' with options `%S'" min-colors (88))
  face-spec-set-match-display(((min-colors 88) (class color)) #<frame F1 0x201a3600\ >)
  face-spec-choose((((... ...) (:foreground "red1")) ((...) (:foreground "red")) (t (:underline t))) #<frame F1 0x201a3600\ >)
  face-spec-set(ido-subdir (((... ...) (:foreground "red1")) ((...) (:foreground "red")) (t (:underline t))) #<frame F1 0x201a3600\ >)
  custom-declare-face(ido-subdir (((... ...) (:foreground "red1")) ((...) (:foreground "red")) (t (:underline t))) "Face used by ido for highlighting subdirs in the alternatives." :group ido)
  (defface ido-subdir (quote (... ... ...)) "Face used by ido for highlighting subdirs in the alternatives." :group (quote ido))
  eval-buffer(#<buffer  *load*<2>> nil "~/.emacs.d/site-lisp/ido/ido.el" nil t)
  load-with-code-conversion("~/.emacs.d/site-lisp/ido/ido.el" "~/.emacs.d/site-lisp/ido/ido.el" nil nil)
  load("~/.emacs.d/site-lisp/ido/ido.el" nil nil t)
  load-file("~/.emacs.d/site-lisp/ido/ido.el")
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("~/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "^H\205\227^@   Æ=\203^Q^@Ç^HÈQ\2025^@  É=\203'^@ÊÇËÌ#\203#^@Í\2025^@Î\2025^@   Ï=\2031^@Ð\2025^@Ç^HÑQ^ZÒ^SÓ\nÒ\211#\210^KÒ=\203F^@Ë^S^K\203\210^@Ô^K!Õ\232\203\210^@Ö^K!\211^\×P^]Ø^M!\203d$
  command-line()
  normal-top-level()
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2011-10-21 05:23:44

我也有同样的问题。我们正在升级到RHEL5,所以我假设我们将在很长一段时间内使用emacs 21。幸运的是,EmacsWiki有一个指向older version的链接。它已经有十多年的历史了,但总比什么都没有好。

它似乎工作得很好,但一些常量有不同的名称。例如,我将ido-default-file-method设置为selected-window,但在旧版本的代码中,后者被命名为same-window。

票数 0
EN

Stack Overflow用户

发布于 2011-09-19 05:24:43

Emacs 21.1.1是相当古老的(21.1几乎是在10年前发布的)。升级到更新的版本应该没问题(除非它不再构建在AIX上?)很多人都在使用尚未定稿的版本24,但23.3是目前的稳定版本。

ido现在也是Emacs的标准部分,所以你应该可以去掉它的副本了。

诚然,通过采用这种方法,您可能会遇到其他升级不兼容问题,但随着时间的推移,这个问题肯定会变得更糟……

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/7428749

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档