我在mac os上運行x。 我在/Users/Max/.emacs本中的文件:爲什麼我的GNU Emacs沒有使用tuareg模式進行初始化?
(add-to-list 'load-path 「/Users/Max/emacs/tuareg-mode/」)
(load "tuareg-mode-startup」)
我在/用戶/最大/ emacs的/圖阿雷格模式/有這些文件裏面這是我從圖阿雷格2.0有有一個文件夾0.6和提取我的「圖阿雷格模式」文件夾:
>Makefile
ocamldebug.el
README
tuareg-pkg.el
tuareg.el
編輯:在我的「圖阿雷格模式」文件夾中得到了2.0.7文件,而不是,它們是:
>Makefile
ocamldebug.el
README
tuareg-pkg.el
tuareg.el
tuareg-site-file.el
的我打開emacs時遇到的錯誤是這樣的:
Warning (initialization): An error occurred while loading `/Users/Max/.emacs':
Symbol's value as variable is void: 「/Users/Max/emacs/tuareg-mode/」
To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.
與--debug-init選項啓動Emacs給我:
Debugger entered--Lisp error: (void-variable 「/Users/Max/emacs/tuareg-mode/」) (add-to-list (quote load-path) 「/Users/Max/emacs/tuareg-mode/」) eval-buffer(# nil "/Users/Max/.emacs" nil t) ; Reading at buffer position 57
load-with-code-conversion("/Users/Max/.emacs" "/Users/Max/.emacs" t t) load("~/.emacs" t t) #[0 "\205\262 \306=\203\307\310Q\202; \311=\204\307\312Q\202;\313\307\314\315#\203*\316\202;\313\307\314\317#\203:\320\nB\321\202;\316\322\323\322\211#\210\322=\203a\324\325\326\307\327Q!\"\323\322\211#\210\322=\203\210\203\243\330!\331\232\203\243\332!\211\333P\334!\203}\211\202\210\334!\203\207\202\210\314\262\203\241\335\"\203\237\336\337#\210\340\341!\210\266\f?\205\260\314\323\342\322\211#)\262\207" [init-file-user system-type delayed-warnings-list user-init-file inhibit-default-init inhibit-startup-screen ms-dos "~" "/_emacs" windows-nt "/.emacs" directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$" (initialization "
_emacs' init file is deprecated, please use `.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"] 7 "\n\n(fn)"]() command-line() normal-top-level()
我是新的Mac OS和完全新的OCaml的。我不明白我做錯了什麼。爲什麼它不能加載路徑?
非常感謝。
也許你想'(加載「/Users/Max/emacs/tuareg-mode/tuareg-mode-startup.el」) - 小心雙引號! – 2014-09-19 11:25:06
我應該在哪裏找到這個tuareg-mode-startup.el文件?我在2.0.6包中下載的所有文件都在我的問題中列出如上 – Silent 2014-09-19 11:33:37
從'load-path'的路徑中刪除尾部的反斜槓。 – Dan 2014-09-19 11:35:33