C-c+ M-C-d Move forward down one begin-end block level of Octave code ( octave-down-block). With numeric prefix argument N, move backward across N such blocks (forward if N is negative). C-c+ M-C-p Move back across one balanced begin-end block of Octave code ( octave-backward-block). With numeric prefix argument N, move forward across n such blocks (backward if N is negative). C-c+ M-C-n Move forward across one balanced begin-end block of Octave code ( octave-forward-block). Otherwise, simply go to the end of the current line. or \ or is inside an open parenthesis list. If point is in a code line, move forward to the end of the first Octave code line which does not end in. or \, or is inside an open parenthesis list.Ĭ-c+ C-e Move to the `real' end of the current line ( octave-end-of-line). If point is in an empty or comment line, simply go to its beginning otherwise, move backwards to the beginning of the first code line which is not inside a continuation statement, i.e., which does not follow a code line ending in. C-c+ C-a Move to the `real' beginning of the current line With numeric prefix argument N, move that many code lines forward (backward if N is negative). C-c+ C-n Move one line of Octave code forward, skipping empty and comment lines ( octave-next-code-line). With numeric prefix argument N, move that many code lines backward (forward if N is negative). C-c+ C-p Move one line of Octave code backward, skipping empty and comment lines ( octave-previous-code-line). C-c+ : Uncomments every line in the region ( octave-uncomment-region). A numeric prefix argument N means use N comment characters. With just C-u prefix argument, uncomment each line in the region. C-c+ Puts the comment character # (more precisely, the string value of octave-comment-start) at the beginning of every line in the region ( octave-comment-region). Point is left after the start of the comment which is properly aligned. M- If there is no comment already on this line, create a code-level comment (started by two comment characters) if the line is empty, or an in-line comment (started by one comment character) otherwise ( octave-indent-for-comment). M-C-q Properly indents the Octave function which contains point ( octave-indent-defun). M-C-h Puts point at beginning and mark at the end of the current Octave function, i.e., the one containing point or following point ( octave-mark-defun). With prefix argument N, do it that many times if N is positive otherwise, move back to the N-th preceding end of a function. M-C-e Move forward to the end of a function ( octave-end-of-defun). Tab ↹ Indents current Octave line based on its contents and on previous lines (-th following beginning of a function. An abbrev before point is expanded if abbrev-mode is non- nil. LFD Reindent the current Octave line, insert a newline and indent the new line ( octave-reindent-then-newline-and-indent). In Octave mode, the following special Emacs commands can be used inĬ-h+ m Describe the features of Octave mode. See the Emacs manual for more information about how to customize Finally, to turn on the abbrevs, auto-fill and font-lock features automatically, also add the following lines to one of the Emacs startup files:.m files you visit, add the following lines to a file loaded by Emacs at startup time, typically your ~/.emacs file: Octave code file as characterized by its extension. That Emacs automatically goes into Octave mode whenever you visit an If you are lucky, your sysadmins have already arranged everything so The Octave distribution to a place where Emacs can find them (thisĭepends on how your Emacs was installed). Otherwise, copy the three files from the emacs subdirectory of You are all set up, because EOS is respectively will be part of GNU If you have GNU Emacs with a version number at least as high as 19.35, Or better yet their byte-compiled versions, should be somewhere in your Emacs The Emacs package EOS consists of the three files octave-mod.el, Useful in particular for debugging Octave code.įinally, you can convince Octave to use the Emacs info reader forĪll functionality is provided by the Emacs Lisp package EOS (EmacsĪny questions or suggestions on using EOS. It is also possible to run Octave from within Emacs, either by directlyĮntering commands at the prompt in a buffer in Inferior Octave mode, orīy interacting with Octave from within a file with Octave code. in different faces (with Font-lock mode on devices that support it). highlight keywords, comments, strings, etc.do some of the typing (with Abbrev mode).With Octave mode, a major mode for editing Octave files which can, for The development of Octave code can greatly be facilitated using Emacs 1.4 Using the Emacs Info Reader for Octave.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |