From: Matt M <jun...@gm...> - 2010-02-14 02:40:59
|
Greetings. I do not know what I'm doing! I'm just down with Emacs and have to use Matlab (FreeMat actually) so I would like to be able to edit ".m" files in Emacs with - Syntax highlighting - Smart Indentation engine - Smart auto-fill for comments and code I am running Ubuntu. I installed CVS, then sequentially executed the following two commands in terminal: "cvs -d:pserver:ano...@ma...:/cvsroot/matlab-emacs login" I amusing just the enter key when prompted for the password, then "cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs co -P matlab-emacs" A bunch of stuff happened in the terminal, i.e. text went scrolling by, so I guessed it worked but I do not see any difference in Emacs when editing a ".m" file. I even tried M-x matlab-mode in Emacs, but it said "[No match]". So pretty much, I know not what I'm doing and hope I don't break my system, and so would like your help in getting matlab mode working in Emacs. Thanks! Matt -- But the father said to his servants, "Quick! Bring the best robe and put it on him. Put a ring on his finger and sandals on his feet. Bring the fattened calf and kill it. Let's have a feast and celebrate. For this son of mine was dead and is alive again; he was lost and is found." So they began to celebrate. |
From: Simon .... <sn...@gm...> - 2010-02-14 10:39:03
|
Hi With the mentioned commands you've downloaded the files. Now you need to follow the instructions in the "INSTALL" file. Simon 2010/2/14 Matt M <jun...@gm...> > Greetings. I do not know what I'm doing! I'm just down with Emacs and > have to use Matlab (FreeMat actually) so I would like to be able to edit > ".m" files in Emacs with > > - Syntax highlighting > - Smart Indentation engine > - Smart auto-fill for comments and code > > I am running Ubuntu. I installed CVS, then sequentially executed the > following two commands in terminal: > > "cvs -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > login" > > I amusing just the enter key when prompted for the password, then > > "cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > co -P matlab-emacs" > > A bunch of stuff happened in the terminal, i.e. text went scrolling by, so > I guessed it worked but I do not see any difference in Emacs when editing a > ".m" file. I even tried M-x matlab-mode in Emacs, but it said "[No match]". > > So pretty much, I know not what I'm doing and hope I don't break my system, > and so would like your help in getting matlab mode working in Emacs. > > Thanks! > > > > Matt > > -- > But the father said to his servants, "Quick! Bring the best robe and put it > on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > > > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > |
From: Matt M <jun...@gm...> - 2010-02-14 14:06:39
|
Okay thanks but .... "I do not know what I'm doing," means that I cannot follow the instructions in the "INSTALL" file. Here is my attempt to do so: 1. In terminal --- make "LOADPATH=/usr/share/emacs/site-lisp/cedet-common/ /usr/share/emacs/site-lisp/eieio/ /usr/share/emacs/site-lisp/semantic/bovine/ /usr/share/emacs/site-lisp/semantic/" 2a. In terminal --- sudo gedit /home/matt/.emacs 2b. Add the following two lines to ".emacs" (add-to-list 'load-path "~/path/to/matlab_el") (require 'matlab-load) So that is what reading the "INSTALL" file got me to do. I apparently did not interpret it correctly, because ".m" files still look the same in Emacs, i.e. no syntax highlighting etc. Thanks for the response! Matt On Sun, Feb 14, 2010 at 5:38 AM, Simon .... <sn...@gm...> wrote: > Hi > > With the mentioned commands you've downloaded the files. Now you need to > follow the instructions in the "INSTALL" file. > > Simon > > 2010/2/14 Matt M <jun...@gm...> > >> Greetings. I do not know what I'm doing! I'm just down with Emacs and >> have to use Matlab (FreeMat actually) so I would like to be able to edit >> ".m" files in Emacs with >> >> - Syntax highlighting >> - Smart Indentation engine >> - Smart auto-fill for comments and code >> >> I am running Ubuntu. I installed CVS, then sequentially executed the >> following two commands in terminal: >> >> "cvs -d:pserver:ano...@ma...:/cvsroot/matlab-emacs >> login" >> >> I amusing just the enter key when prompted for the password, then >> >> "cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs >> co -P matlab-emacs" >> >> A bunch of stuff happened in the terminal, i.e. text went scrolling by, so >> I guessed it worked but I do not see any difference in Emacs when editing a >> ".m" file. I even tried M-x matlab-mode in Emacs, but it said "[No match]". >> >> So pretty much, I know not what I'm doing and hope I don't break my >> system, and so would like your help in getting matlab mode working in Emacs. >> >> Thanks! >> >> >> >> Matt >> >> -- >> But the father said to his servants, "Quick! Bring the best robe and put >> it on him. Put a ring on his finger and sandals on his feet. Bring the >> fattened calf and kill it. Let's have a feast and celebrate. For this son >> of mine was dead and is alive again; he was lost and is found." So they >> began to celebrate. >> >> >> ------------------------------------------------------------------------------ >> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, >> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW >> http://p.sf.net/sfu/solaris-dev2dev >> _______________________________________________ >> Matlab-emacs-discuss mailing list >> Mat...@li... >> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >> >> > -- But the father said to his servants, "Quick! Bring the best robe and put it on him. Put a ring on his finger and sandals on his feet. Bring the fattened calf and kill it. Let's have a feast and celebrate. For this son of mine was dead and is alive again; he was lost and is found." So they began to celebrate. |
From: Matt M <jun...@gm...> - 2010-02-14 14:09:14
|
Edit: I should have added the following message from Emacs, it's what I get when I start Emacs now. Warning (initialization): An error occurred while loading `/home/matt/.emacs': File error: Cannot open load file, matlab-load Thanks, Matt On Sun, Feb 14, 2010 at 9:06 AM, Matt M <jun...@gm...>wrote: > Okay thanks but .... "I do not know what I'm doing," means that I cannot > follow the instructions in the "INSTALL" file. > > Here is my attempt to do so: > > 1. In terminal --- make "LOADPATH=/usr/share/emacs/site-lisp/cedet-common/ > /usr/share/emacs/site-lisp/eieio/ > /usr/share/emacs/site-lisp/semantic/bovine/ > /usr/share/emacs/site-lisp/semantic/" > > 2a. In terminal --- sudo gedit /home/matt/.emacs > > 2b. Add the following two lines to ".emacs" > > (add-to-list 'load-path "~/path/to/matlab_el") > (require 'matlab-load) > > So that is what reading the "INSTALL" file got me to do. I apparently did > not interpret it correctly, because ".m" files still look the same in Emacs, > i.e. no syntax highlighting etc. > > Thanks for the response! > > > > Matt > > > On Sun, Feb 14, 2010 at 5:38 AM, Simon .... <sn...@gm...> wrote: > >> Hi >> >> With the mentioned commands you've downloaded the files. Now you need to >> follow the instructions in the "INSTALL" file. >> >> Simon >> >> 2010/2/14 Matt M <jun...@gm...> >> >>> Greetings. I do not know what I'm doing! I'm just down with Emacs and >>> have to use Matlab (FreeMat actually) so I would like to be able to edit >>> ".m" files in Emacs with >>> >>> - Syntax highlighting >>> - Smart Indentation engine >>> - Smart auto-fill for comments and code >>> >>> I am running Ubuntu. I installed CVS, then sequentially executed the >>> following two commands in terminal: >>> >>> "cvs -d:pserver:ano...@ma...:/cvsroot/matlab-emacs >>> login" >>> >>> I amusing just the enter key when prompted for the password, then >>> >>> "cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs >>> co -P matlab-emacs" >>> >>> A bunch of stuff happened in the terminal, i.e. text went scrolling by, >>> so I guessed it worked but I do not see any difference in Emacs when editing >>> a ".m" file. I even tried M-x matlab-mode in Emacs, but it said "[No >>> match]". >>> >>> So pretty much, I know not what I'm doing and hope I don't break my >>> system, and so would like your help in getting matlab mode working in Emacs. >>> >>> Thanks! >>> >>> >>> >>> Matt >>> >>> -- >>> But the father said to his servants, "Quick! Bring the best robe and put >>> it on him. Put a ring on his finger and sandals on his feet. Bring the >>> fattened calf and kill it. Let's have a feast and celebrate. For this son >>> of mine was dead and is alive again; he was lost and is found." So they >>> began to celebrate. >>> >>> >>> ------------------------------------------------------------------------------ >>> SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, >>> Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW >>> http://p.sf.net/sfu/solaris-dev2dev >>> _______________________________________________ >>> Matlab-emacs-discuss mailing list >>> Mat...@li... >>> https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss >>> >>> >> > > > -- > But the father said to his servants, "Quick! Bring the best robe and put it > on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > -- But the father said to his servants, "Quick! Bring the best robe and put it on him. Put a ring on his finger and sandals on his feet. Bring the fattened calf and kill it. Let's have a feast and celebrate. For this son of mine was dead and is alive again; he was lost and is found." So they began to celebrate. |
From: <sn...@gm...> - 2010-02-14 15:48:12
|
Are you sure that you specified the path in step 2b. correctly? I get the same error when I remove the path to matlab_el. On Feb 14, 2010 3:08pm, Matt M <jun...@gm...> wrote: > Edit: I should have added the following message from Emacs, it's what I > get when I start Emacs now. > Warning (initialization): An error occurred while loading > `/home/matt/.emacs': > File error: Cannot open load file, matlab-load > Thanks, > Matt > On Sun, Feb 14, 2010 at 9:06 AM, Matt M jun...@gm...> > wrote: > Okay thanks but .... "I do not know what I'm doing," means that I cannot > follow the instructions in the "INSTALL" file. > Here is my attempt to do so: > 1. In terminal --- > make "LOADPATH=/usr/share/emacs/site-lisp/cedet-common/ > /usr/share/emacs/site-lisp/eieio/ > /usr/share/emacs/site-lisp/semantic/bovine/ > /usr/share/emacs/site-lisp/semantic/" > 2a. In terminal --- sudo gedit /home/matt/.emacs > 2b. Add the following two lines to ".emacs" > (add-to-list 'load-path "~/path/to/matlab_el") > (require 'matlab-load) > So that is what reading the "INSTALL" file got me to do. I apparently did > not interpret it correctly, because ".m" files still look the same in > Emacs, ie no syntax highlighting etc. > Thanks for the response! > Matt > On Sun, Feb 14, 2010 at 5:38 AM, Simon .... sn...@gm...> wrote: > Hi > With the mentioned commands you've downloaded the files. Now you need to > follow the instructions in the "INSTALL" file. > Simon > 2010/2/14 Matt M jun...@gm...> > Greetings. I do not know what I'm doing! I'm just down with Emacs and > have to use Matlab (FreeMat actually) so I would like to be able to > edit ".m" files in Emacs with > Syntax highlighting > Smart Indentation engine > Smart auto-fill for comments and code > I am running Ubuntu. I installed CVS, then sequentially executed the > following two commands in terminal: > "cvs > -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > login" > I amusing just the enter key when prompted for the password, then > "cvs -z3 > -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > co -P matlab-emacs" > A bunch of stuff happened in the terminal, ie text went scrolling by, so > I guessed it worked but I do not see any difference in Emacs when editing > a ".m" file. I even tried Mx matlab-mode in Emacs, but it said "[No > match]". > So pretty much, I know not what I'm doing and hope I don't break my > system, and so would like your help in getting matlab mode working in > Emacs. > Thanks! > Matt > -- > But the father said to his servants, "Quick! Bring the best robe and put > it on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > ------------------------------------------------------------------------------ > SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > http://p.sf.net/sfu/solaris-dev2dev > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > -- > But the father said to his servants, "Quick! Bring the best robe and put > it on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > -- > But the father said to his servants, "Quick! Bring the best robe and put > it on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. |
From: <sn...@gm...> - 2010-02-14 15:53:00
|
Sorry, I forgot something. The path/to/matlab_el should be something like this "~/.emacs.d/matlab-emacs", it is the path to the *directory* where your matlab.el is located. Simon On Feb 14, 2010 4:48pm, sn...@gm... wrote: > Are you sure that you specified the path in step 2b. correctly? I get the > same error when I remove the path to matlab_el. > On Feb 14, 2010 3:08pm, Matt M jun...@gm...> wrote: > > Edit: I should have added the following message from Emacs, it's what I > get when I start Emacs now. > > > > Warning (initialization): An error occurred while loading > `/home/matt/.emacs': > > > > File error: Cannot open load file, matlab-load > > > > > > Thanks, > > > > > > > > Matt > > > > On Sun, Feb 14, 2010 at 9:06 AM, Matt M jun...@gm...> > wrote: > > > > Okay thanks but .... "I do not know what I'm doing," means that I > cannot follow the instructions in the "INSTALL" file. > > > > > > Here is my attempt to do so: > > > > 1. In terminal --- > make "LOADPATH=/usr/share/emacs/site-lisp/cedet-common/ > /usr/share/emacs/site-lisp/eieio/ > /usr/share/emacs/site-lisp/semantic/bovine/ > /usr/share/emacs/site-lisp/semantic/" > > > > > > > > 2a. In terminal --- sudo gedit /home/matt/.emacs > > > > 2b. Add the following two lines to ".emacs" > > > > (add-to-list 'load-path "~/path/to/matlab_el") > > (require 'matlab-load) > > > > So that is what reading the "INSTALL" file got me to do. I apparently > did not interpret it correctly, because ".m" files still look the same in > Emacs, ie no syntax highlighting etc. > > > > > > > > Thanks for the response! > > > > > > > > Matt > > > > > > On Sun, Feb 14, 2010 at 5:38 AM, Simon .... sn...@gm...> wrote: > > > > > > Hi > > > > With the mentioned commands you've downloaded the files. Now you need > to follow the instructions in the "INSTALL" file. > > > > > > > > Simon > > > > 2010/2/14 Matt M jun...@gm...> > > > > > > > > Greetings. I do not know what I'm doing! I'm just down with Emacs and > have to use Matlab (FreeMat actually) so I would like to be able to > edit ".m" files in Emacs with > > > > > > > > Syntax highlighting > > Smart Indentation engine > > Smart auto-fill for comments and code > > I am running Ubuntu. I installed CVS, then sequentially executed the > following two commands in terminal: > > > > "cvs > -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > login" > > > > > > > > > > > > > > I amusing just the enter key when prompted for the password, then > > > > "cvs -z3 > -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > co -P matlab-emacs" > > > > > > > > > > > > > > A bunch of stuff happened in the terminal, ie text went scrolling by, > so I guessed it worked but I do not see any difference in Emacs when > editing a ".m" file. I even tried Mx matlab-mode in Emacs, but it > said "[No match]". > > > > > > > > > > > > > > So pretty much, I know not what I'm doing and hope I don't break my > system, and so would like your help in getting matlab mode working in > Emacs. > > > > Thanks! > > > > > > > > Matt > > > > > > > > > > > > -- > > But the father said to his servants, "Quick! Bring the best robe and > put it on him. Put a ring on his finger and sandals on his feet. Bring > the fattened calf and kill it. Let's have a feast and celebrate. For this > son of mine was dead and is alive again; he was lost and is found." So > they began to celebrate. > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > SOLARIS 10 is the OS for Data Centers - provides features such as > DTrace, > > > > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > > > > http://p.sf.net/sfu/solaris-dev2dev > > _______________________________________________ > > > > Matlab-emacs-discuss mailing list > > > > Mat...@li... > > > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > > > > > > > > > > > > > > > > -- > > But the father said to his servants, "Quick! Bring the best robe and > put it on him. Put a ring on his finger and sandals on his feet. Bring > the fattened calf and kill it. Let's have a feast and celebrate. For this > son of mine was dead and is alive again; he was lost and is found." So > they began to celebrate. > > > > > > > > > > > > > > > > > > -- > > But the father said to his servants, "Quick! Bring the best robe and > put it on him. Put a ring on his finger and sandals on his feet. Bring > the fattened calf and kill it. Let's have a feast and celebrate. For this > son of mine was dead and is alive again; he was lost and is found." So > they began to celebrate. > > |
From: Matt M <jun...@gm...> - 2010-02-14 20:27:44
|
Yay, that did it! I did not read carefully enough the lines to add to .emacs. I just had to change the added line to (add-to-list 'load-path "/home/matt/matlab-emacs/") Thanks to all. Matt On Sun, Feb 14, 2010 at 10:52 AM, <sn...@gm...> wrote: > Sorry, I forgot something. The path/to/matlab_el should be something like > this "~/.emacs.d/matlab-emacs", it is the path to the *directory* where your > matlab.el is located. > > Simon > > > On Feb 14, 2010 4:48pm, sn...@gm... wrote: > > Are you sure that you specified the path in step 2b. correctly? I get the > same error when I remove the path to matlab_el. > > > > > > > > On Feb 14, 2010 3:08pm, Matt M jun...@gm...> wrote: > > > Edit: I should have added the following message from Emacs, it's what I > get when I start Emacs now. > > > > > > Warning (initialization): An error occurred while loading > `/home/matt/.emacs': > > > > > > File error: Cannot open load file, matlab-load > > > > > > > > > Thanks, > > > > > > > > > > > > Matt > > > > > > On Sun, Feb 14, 2010 at 9:06 AM, Matt M jun...@gm...> > wrote: > > > > > > Okay thanks but .... "I do not know what I'm doing," means that I > cannot follow the instructions in the "INSTALL" file. > > > > > > > > > Here is my attempt to do so: > > > > > > 1. In terminal --- make > "LOADPATH=/usr/share/emacs/site-lisp/cedet-common/ > /usr/share/emacs/site-lisp/eieio/ > /usr/share/emacs/site-lisp/semantic/bovine/ > /usr/share/emacs/site-lisp/semantic/" > > > > > > > > > > > > 2a. In terminal --- sudo gedit /home/matt/.emacs > > > > > > 2b. Add the following two lines to ".emacs" > > > > > > (add-to-list 'load-path "~/path/to/matlab_el") > > > (require 'matlab-load) > > > > > > So that is what reading the "INSTALL" file got me to do. I apparently > did not interpret it correctly, because ".m" files still look the same in > Emacs, i.e. no syntax highlighting etc. > > > > > > > > > > > > Thanks for the response! > > > > > > > > > > > > Matt > > > > > > > > > On Sun, Feb 14, 2010 at 5:38 AM, Simon .... sn...@gm...> wrote: > > > > > > > > > Hi > > > > > > With the mentioned commands you've downloaded the files. Now you need > to follow the instructions in the "INSTALL" file. > > > > > > > > > > > > Simon > > > > > > 2010/2/14 Matt M jun...@gm...> > > > > > > > > > > > > Greetings. I do not know what I'm doing! I'm just down with Emacs and > have to use Matlab (FreeMat actually) so I would like to be able to edit > ".m" files in Emacs with > > > > > > > > > > > > Syntax highlighting > > > Smart Indentation engine > > > Smart auto-fill for comments and code > > > I am running Ubuntu. I installed CVS, then sequentially executed the > following two commands in terminal: > > > > > > "cvs -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > login" > > > > > > > > > > > > > > > > > > > > > I amusing just the enter key when prompted for the password, then > > > > > > "cvs -z3 -d:pserver:ano...@ma...:/cvsroot/matlab-emacs > co -P matlab-emacs" > > > > > > > > > > > > > > > > > > > > > A bunch of stuff happened in the terminal, i.e. text went scrolling by, > so I guessed it worked but I do not see any difference in Emacs when editing > a ".m" file. I even tried M-x matlab-mode in Emacs, but it said "[No > match]". > > > > > > > > > > > > > > > > > > > > > So pretty much, I know not what I'm doing and hope I don't break my > system, and so would like your help in getting matlab mode working in Emacs. > > > > > > Thanks! > > > > > > > > > > > > Matt > > > > > > > > > > > > > > > > > > -- > > > But the father said to his servants, "Quick! Bring the best robe and > put it on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > SOLARIS 10 is the OS for Data Centers - provides features such as > DTrace, > > > > > > Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW > > > > > > http://p.sf.net/sfu/solaris-dev2dev > > > _______________________________________________ > > > > > > Matlab-emacs-discuss mailing list > > > > > > Mat...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > But the father said to his servants, "Quick! Bring the best robe and > put it on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > But the father said to his servants, "Quick! Bring the best robe and > put it on him. Put a ring on his finger and sandals on his feet. Bring the > fattened calf and kill it. Let's have a feast and celebrate. For this son > of mine was dead and is alive again; he was lost and is found." So they > began to celebrate. > > > > -- But the father said to his servants, "Quick! Bring the best robe and put it on him. Put a ring on his finger and sandals on his feet. Bring the fattened calf and kill it. Let's have a feast and celebrate. For this son of mine was dead and is alive again; he was lost and is found." So they began to celebrate. |