From: Guangran K. Z. <gua...@ma...> - 2011-01-01 21:38:50
|
Thank you for the pointer. Using emacsclient does not support the debugging and code evaluation, which I have relied on heavily. changing ~/X11/app-defaults/Matlab *externalEditorCommand: $EDITOR $FILE & does not provide the debugging and evaluation support as well. Thus, using emacs-shell, to the best of my knowledge, is my only option. I followed the documentation http://blogs.mathworks.com/desktop/2009/09/14/matlab-emacs-integration-is-back/ Currently, I am missing on the configuration of linking the matlab invoked in the buffer back to the current emacs session. In the meantime, I experimented with the matlab-shell. In comparison with invoking the following on a command line, $ matlab -nodesktop -nosplash I found matlab-shell is nice to use, as I could edit the command in the buffer. One improvement that I observe, is that if you type the first letter of some previous command, alt-p will bring the immediate previous command, but will not bring the previous command that starts with the same letter. On 11-01-01 03:54 PM, Daniel wrote: > Please ignore my proposal about editing the emacsinit.m. This is > nonsense, sorry. > >> emascsinit('emacs') > > Is equivalent to setting the Editor/Debugger in your matlab > Preferences. You can place this in your startup.m file, but it won't > help since it will always open a new process. > > I think the best way is to install an emacs version that comes with > emacsclient (are you sure that your emacs on ubuntu has no > emacsclient?). > > There is also an other advantage to use emacsclient. for e.g. in your .bashrc >> alias "edit=emacsclient -n -a emacs" > With this you can type 'edit somefile.txt' in a console and it will > open the file in your existing emacs process, if there is one, > otherwise it will start one. > Don't forget to add (server-start) in your emacs config file. > > ------------------------------------------------------------------------------ > Learn how Oracle Real Application Clusters (RAC) One Node allows customers > to consolidate database storage, standardize their database environment, and, > should the need arise, upgrade to a full multi-node Oracle RAC database > without downtime or disruption > http://p.sf.net/sfu/oracle-sfdevnl > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss -- Sincerely yours, Guangran Kevin Zhu (PhD Candidate) Computational Electromagnetics Lab McGill University Montreal, Canada Tel: 1-514-398-1533 |