|
From: Amadeus W.M. <ama...@ve...> - 2009-12-23 02:03:02
|
I need a little help with matlab-emacs because I'm getting an error,
even though I believe I followed the installation instructions.
This is the error I'm getting:
Symbol's function definition is void: add-to-path
Then I run emacs --debug-init myfile.m:
͂
Debugger entered--Lisp error: (void-function add-to-path)
(add-to-path "~/mymatlab/emacsMode/matlab-emacs/matlab.el")
eval-buffer(#<buffer *load*> nil "/home/amadeus/.emacs" nil t) ;
Reading at buffer position 2793
load-with-code-conversion("/home/amadeus/.emacs"
"/home/amadeus/.emacs" t t)
load("~/.emacs" t t)
͂#[nil "some octal code which I can't copy and paste"
[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()
When I click on command-line() emacs complains that it
Can't find library /usr/share/emacs/23.1/lisp/startup.el
although I do have startup.elc in that path.
This is what I did to install cedet and matlab-emacs:
I downloaded matlab-emacs from cvs. I downloaded also cedet-1.0pre6. Put
both in the same directory, then created a link cedet to cedet-1.0pre6.
In cedet I did
make
then in matlab-emacs I also did make. This is what I have in my .emacs
file:
;---------------------
; Enable MATLAB mode |
; --------------------
;; Load CEDET.
;; See cedet/common/cedet.info for configuration details.
(load-file "~/mymatlab/emacsMode/cedet-1.0pre6/common/cedet.el")
;; Enable EDE (Project Management) features
(global-ede-mode 1)
;; Enable EDE for a pre-existing C++ project
;; (ede-cpp-root-project "NAME" :file "~/myproject/Makefile")
;; Enabling Semantic (code-parsing, smart completion) features
;; Select one of the following:
;; * This enables the database and idle reparse engines
(semantic-load-enable-minimum-features)
;; * This enables some tools useful for coding, such as summary mode
;; imenu support, and the semantic navigator
(semantic-load-enable-code-helpers)
;; * This enables even more coding tools such as intellisense mode
;; decoration mode, and stickyfunc mode (plus regular code helpers)
;; (semantic-load-enable-gaudy-code-helpers)
;; * This enables the use of Exuberent ctags if you have it installed.
;; If you use C++ templates or boost, you should NOT enable it.
;; (semantic-load-enable-all-exuberent-ctags-support)
;; Enable SRecode (Template management) minor-mode.
;; (global-srecode-minor-mode 1)
;; Matlab proper
(add-to-path "~/mymatlab/emacsMode/matlab-emacs/matlab.el")
(require 'matlab-load)
Thanks for any help.
|