[英]Emacs and CWB under Windows
I'm trying to use the Edinburgh Concurrency Workbench ( http://homepages.inf.ed.ac.uk/perdita/cwb/ ) with Emacs under Windows. 我正在尝试在Windows下的Emacs中使用爱丁堡并发工作台( http://homepages.inf.ed.ac.uk/perdita/cwb/ )。 I have placed the file cwb.el under C:\\emacs\\emacs-22.3\\emacs-stuff.
我已将文件cwb.el放在C:\\ emacs \\ emacs-22.3 \\ emacs-stuff下。 My .emacs file is located at C:\\emacs and has the following content:
我的.emacs文件位于C:\\ emacs并具有以下内容:
(setq load-path ; Look in my own library first.
(cons (expand-file-name "C:\emacs\emacs-22.3\emacsstuff")
load-path))
(autoload 'cwb "cwb" "Run a CWB process." t)
(autoload 'cwb-file-mode "cwb" "Major mode for editing CWB source." t)
(add-hook 'cwb-load-hook
(function
(lambda ()
(setq cwb-program-name "cwb7")))) ;; only necessary if your v7 isn't
;; called cwb
Yet, when I enter "Mx cwb", I get "Cannot open load file: cwb". 但是,当我输入“ Mx cwb”时,出现“无法打开加载文件:cwb”。
I tried to follow the instruction here: http://homepages.inf.ed.ac.uk/perdita/cwb/doc/emacs.html . 我尝试按照此处的说明进行操作: http : //homepages.inf.ed.ac.uk/perdita/cwb/doc/emacs.html 。
Thanks 谢谢
In Emacs Lisp strings, backslash is an escape character, similar to C, so "C:\\emacs\\emacs-22.3\\emacsstuff"
ends up being "C:^[macs^[macs-22.3^[macsstuff"
. 在Emacs Lisp字符串中,反斜杠是转义字符,类似于C,因此
"C:\\emacs\\emacs-22.3\\emacsstuff"
最终为"C:^[macs^[macs-22.3^[macsstuff"
。 (You can try it with either M-: or Mx ielm
.) (您可以尝试使用M-:或Mx
ielm
。)
You can either write the path with forward slashes instead ( "C:/emacs/emacs-22.3/emacsstuff"
) or use double backslashes ( "C:\\\\emacs\\\\emacs-22.3\\\\emacsstuff"
). 您可以改用正斜杠(
"C:/emacs/emacs-22.3/emacsstuff"
)编写路径,也可以使用双反斜杠( "C:\\\\emacs\\\\emacs-22.3\\\\emacsstuff"
)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.