help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Commenting out lines


From: Jonathan Stickel
Subject: Re: Commenting out lines
Date: Tue, 03 Aug 2004 12:54:42 -0700
User-agent: Mozilla Thunderbird 0.7.1 (X11/20040626)

Geraint Paul Bevan wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Stickel wrote:

| Is there something I can add to ~/.emacs to have "comment-region" and
| "uncomment-region" in my menu bar?  For c++-mode, these are in the c++
| pull down menu.  I'd like them in the octave pull-down menu when I am in
| octave-mode.
|
| Thanks,
| Jonathan
|


I think that you just need to add a couple of lines to octave-mod.el:

*** /usr/share/emacs/21.3/lisp/progmodes/octave-mod.el    Tue Sep  9
22:42:15 2003
- --- /tmp/newoctave-mode.el    Tue Aug  3 19:24:06 2004
***************
*** 240,245 ****
- --- 240,248 ----

~  (defvar octave-mode-menu
~    (list "Octave"
+     (list "Comments"
+           ["Comment out region"    octave-comment-region t]
+           ["Uncomment Region"    octave-uncomment-region t])
~      (list "Lines"
~            ["Previous Code Line"    octave-previous-code-line t]
~            ["Next Code Line"        octave-next-code-line t]



Awesome, thank you! I had a little trouble, though, because I have two octave-mod.el files:

/usr/share/emacs/21.3/lisp/progmodes/octave-mod.el  (provided by Emacs)
/usr/share/emacs/site-lisp/octave-mod.el  (provided by Octave)

Seems like the later takes precedence, so I edited that one.

Jonathan



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

[Prev in Thread] Current Thread [Next in Thread]