From: Eric L. <Eri...@ma...> - 2013-05-08 15:40:07
|
Hi Troy, I'm not entirely sure what happens to the MATLAB string when it gets set as the Editor preference. I didn't think you needed to use "" in that string. I think you should try it as: emacsinit('<path to emacs>\emacsclient -n --server-file=<path to emacs server file>'); and then use the: >> desktop command, which will disconnect from Emacs, but then you can open up preferences for the editor, and look for the external editor option, and see what it got set to. If you use the preferences to get files to open in your Emacs, then you can use the string you discover there in your emacsinit command for nexttime you start MATLAB in Emacs. All other doc srcs are on the matlab-emacs.sf.net web page. There isn't much there. Eric From: Daniels, Troy (US SSA) [mailto:tro...@ba...] Sent: Tuesday, April 30, 2013 3:31 PM To: mat...@li... Subject: [Matlab-emacs-discuss] Matlab and emacsclient Hello, I found this discussion of using emacs with matlab, some of which is several years old. http://blogs.mathworks.com/community/2009/09/14/matlab-emacs-integration-is-back/ I am trying to get this to work on windows with R2011b. I tried editing edit.m as suggested there to work on Windows, but it appears that my edits are ignored. Is there something special about the files in the matlab toolbox? Since I could not get rid of the quotes on the system command, I added extra ones to my emacsinit call: emacsinit('"<path to emacs>\emacsclient -n --server-file=<path to emacs server file>"'); This works, but edit opens a command prompt. Is there a way to get rid of that window? Are there other pages with more advice about integrating emacs and matlab on windows? Troy |