From: Yakir G. <12....@gm...> - 2012-02-12 17:41:51
|
Yes! That worked, but I get 3 $ signs after the % symbol. is that normal? % $$$ somecode Thanks ! Yakir Gagnon cell +1 919 886 3877 office +1 919 684 7188 Johnsen Lab Biology Department Box 90338 Duke University Durham, NC 27708 BioSci Building Room 307 http://fds.duke.edu/db/aas/Biology/postdoc/yg32 http://www.biology.duke.edu/johnsenlab/people/yakir.html On Sun, Feb 12, 2012 at 12:24 PM, Eric Ludlam <Eri...@ma...>wrote: > Hi Yakir,**** > > ** ** > > For me, M-; is supposed to add comments to the end of a line, as it does > with other languages. M-: is “eval” in Emacs, and not related to comments. > **** > > ** ** > > In matlab-mode, C-c ; and C-c : will comment and uncomment a region, and > I tried them, and they still work for me. Is that what you were expecting? > **** > > ** ** > > Eric**** > > ** ** > > *From:* Yakir Gagnon [mailto:12....@gm...] > *Sent:* Sunday, February 05, 2012 1:34 PM > *To:* mat...@li... > *Subject:* [Matlab-emacs-discuss] commenting**** > > ** ** > > Hi all,**** > > I'm new to emacs and matlab-mode. **** > > My problem is that I can't seem to comment and unncomment lines or regions > in an m file while in MATLAB Fill (which I assume is the matlab mode) using > emacs (GNU Emacs 23.3.1) on ubuntu (11.10) by pressing M-;. all that > happens is that a % sign shows up at the ens of the line. If the line was > already commented, pressing M-: doesn't do anything (neither selecting the > uncomment option from the menu). **** > > My .emacs file has only these 2 lines:**** > > (add-to-list 'load-path "~/.emacs.d/matlab-emacs/") **** > > (require 'matlab-load) **** > > I hope this is silly and basic, thanks in advance for any help!!! **** > > ** ** > > Yakir Gagnon > cell +1 919 886 3877 > office +1 919 684 7188 > Johnsen Lab > Biology Department > Box 90338 > Duke University > Durham, NC 27708 > BioSci Building > Room 307 > http://fds.duke.edu/db/aas/Biology/postdoc/yg32 > http://www.biology.duke.edu/johnsenlab/people/yakir.html**** > |