你给的那行命令我这里是语法错误 “c-mode-base-map"没有定义davyzhu 写了:Read Emacs book and info doc if you want to *use* it. Read SICP if you want to *extend* it (side effect is you will hate elisp and fancy Emacs to be extended by Guile/Scheme).sweating 写了:cuiaoxiang 写了:对啊,所以我想知道写全怎么搞,我都说了现在还不熟悉 elisp,5L 这么指点江山的来一句对我一点帮助也没有啊sweating 写了:定然不是XDcuiaoxiang 写了:" in c-mode-base-hook" 也是命令么?不过如果真要学emacs的话,还是考虑看一下SICP为上代码: 全选
(define-key c-mode-base-map (kbd "<return>") 'newline-and-indent) ;;;;;让我们举杯祝福那些嵌在重重括号里面的精灵罢....... :em09 ;;;;上面那句非常重要,有科学研究表明配置文件中出现上面那句能够使得emacs配置起来更加的舒服
否则用起来真不如vim
I recommend "The Little Schemer". TLS is shorter than SICP but show the core design idea of Scheme.
I have written reviews for SICP and TLS.
SICP:http://book.douban.com/review/2322190/
TLS:http://book.douban.com/review/2215327/
Debugger entered--Lisp error: (void-variable c-mode-base-map)
(define-key c-mode-base-map (kbd "<return>") (quote newline-and-indent))
eval((define-key c-mode-base-map (kbd "<return>") (quote newline-and-indent)))
eval-last-sexp-1(nil)
eval-last-sexp(nil)
call-interactively(eval-last-sexp nil nil)
反正自己不懂就是麻烦,可能别人只是一个手误,我就一点办法也没有了,不知道应该是那个变量阿