Emacs中c/c++环境配置时出现问题 Debugger entered--Lisp error: (error "not support.")

来源:互联网 发布:sql安装挂起清除工具 编辑:程序博客网 时间:2024/05/22 08:28

问题描述:

最近初学emacs,对于配置懂的不多,现在想用emacs配置c/c++的开发环境,参考了http://www.cnblogs.com/karotte/archive/2012/06/06/2537670.html
文章里面的配置,基本全部使用,仅仅修改了相关路径,现在出现如下问题:

Debugger entered--Lisp error: (error "not support.")
signal(error ("not support."))
error("not support.")
(if (null color) (error "not support.") (let (...) (message "%S %S" color my-color) (set-face-attribute ... nil :background ...)))
(let* ((color ...)) (if (null color) (error "not support.") (let ... ... ...)))
color-theme-adjust-hl-mode-face()
eval-buffer(#> nil "/home/fandroid/.emacs.d/lisp/addon.el" nil t) ; Reading at buffer position 1577
load-with-code-conversion("/home/fandroid/.emacs.d/lisp/addon.el" "/home/fandroid/.emacs.d/lisp/addon.el" nil nil)
load("addon.el")
eval-buffer(# nil "/home/fandroid/.emacs.d/init.el" nil t) ; Reading at buffer position 699
load-with-code-conversion("/home/fandroid/.emacs.d/init.el" "/home/fandroid/.emacs.d/init.el" t t)
load("/home/fandroid/.emacs.d/init" t t)
#[nil "^H\205\264^@ \306=\203^Q^@\307^H\310Q\2027^@ \311=\2033^@\312\307\313\314#\203#^@\315\2027^@\312\307\313\316#\203/^@\317\2027^@\315\2027^@\307^H\320Q^Z\321^S\322\n\321\211#\210^K\321=\203_^@\323\324\325\307^H\326Q!\"^\322\f\321\211#\210^K\321=\203^^@\n^S)^K\203\244^@\327^K!\330\232\203\244^@\331^K!\211^]\332P^^\"\333^N\"!\203\200^@^N\"\202\213^@\333^M!\203\212^@^M\202\213^@\313\211^U\203\243^@\334^M^K\"\203\241^@\335\336^M^K#\210\337\340!\210^M^S*^N#?\205\263^@\313^^$\322\341\321\211#))\207" [init-file-user system-type user-init-file-1 user-init-file otherfile source ms-dos "~" "/_emacs" windows-nt directory-files nil "^\.emacs\(\.elc?\)?$" "~/.emacs" "^_emacs\(\.elc?\)?$" "~/_emacs" "/.emacs" t load expand-file-name "init" file-name-as-directory "/.emacs.d" file-name-extension "elc" file-name-sans-extension ".el" file-exists-p file-newer-than-file-p message "Warning: %s is newer than %s" sit-for 1 "default" alt inhibit-default-init inhibit-startup-screen] 7]()
command-line()
normal-top-level()


解决方法:

主要原因是我启用了emacs -nw,这样导致emacs的颜色插件没法完美显示继而导致了如上问题。那么只需要将-nw参数去掉即可。


解决方法启发于.emacs.d/lisp/icicles/hexrgb.el文件的77行注释,因为hexrgb库的使用需要emacs的window管理器支持。


0 0
原创粉丝点击