From: Eric L. <Eri...@ma...> - 2012-02-13 13:52:16
|
Yes, the $$$ are normal. They are still there from the previous author before I adopted the project. I think they are there to distinguish a sort of temporary comment from real comments, making them easy to remove. You can experiment with the value of matlab-comment-region-s to make it whatever you want. Eric From: Yakir Gagnon [mailto:12....@gm...] Sent: Sunday, February 12, 2012 12:42 PM To: Eric Ludlam Cc: mat...@li... Subject: Re: [Matlab-emacs-discuss] commenting 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...<mailto: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...<mailto:12....@gm...>] Sent: Sunday, February 05, 2012 1:34 PM To: mat...@li...<mailto: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<tel:%2B1%20919%20886%203877> office +1 919 684 7188<tel:%2B1%20919%20684%207188> 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 |