help-octave
[Top][All Lists]
Advanced

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

Re: Commenting out lines


From: Geraint Paul Bevan
Subject: Re: Commenting out lines
Date: Tue, 03 Aug 2004 19:25:47 +0100
User-agent: Mozilla Thunderbird 0.5 (X11/20040306)

-----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]


- --
Geraint Bevan
http://homepage.ntlworld.com/geraint.bevan

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iEYEARECAAYFAkEP2KsACgkQcXV3N50QmNOLEwCcDV3Wmd9Uxdds3QZL9bpoM9cP
N8gAn0oHbhNhJpqNYrpjJ7txb+sHmTyU
=Czk2
-----END PGP SIGNATURE-----



-------------------------------------------------------------
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]