[英]How to know the linux kernel run either EL2 (non-secure) or EL3 (secure) mode?
[英]How to add perl-mode.el to .emacs?
如果我执行Mx load-file RET /root/.elisp/perl-mode.el RET
那么这个perl-mode.el会正确加载。
如果我在.emacs
添加任何这些,它就不起作用
(load "/root/.elisp/perl-mode.el")
(load-file "/root/.elisp/perl-mode.el")
我正在使用emacs 24.1.1。
我得到的错误是
File mode specification error: (void-function setq-local)
题
从.emacs
加载perl-mode.el
的正确方法是什么?
宏setq-local
是在Emacs 24.3中引入的,因此这个版本的perl-mode
对于你当前运行的Emacs来说太新了(24.1)。
您可以升级Emacs,或者您可以将setq-local
的定义放入.emacs
(从此处 ):
(defmacro setq-local (var val)
"Set variable VAR to value VAL in current buffer."
;; Can't use backquote here, it's too early in the bootstrap.
(list 'set (list 'make-local-variable (list 'quote var)) val))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.