2015-12-09 06:30:01 +00:00
|
|
|
#+TITLE: Octave layer
|
2015-10-24 01:59:49 +00:00
|
|
|
|
2019-05-07 08:21:07 +00:00
|
|
|
#+TAGS: dsl|layer|programming
|
2019-05-05 17:26:40 +00:00
|
|
|
|
2015-10-24 01:59:49 +00:00
|
|
|
[[file:img/octave.png]]
|
|
|
|
|
2019-05-07 20:05:06 +00:00
|
|
|
* Table of Contents :TOC_5_gh:noexport:
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#description][Description]]
|
2018-02-14 22:18:09 +00:00
|
|
|
- [[#features][Features:]]
|
2017-05-22 14:16:12 +00:00
|
|
|
- [[#install][Install]]
|
|
|
|
- [[#key-bindings][Key bindings]]
|
|
|
|
- [[#inferior-repl-process][Inferior REPL process]]
|
|
|
|
- [[#helpers][Helpers]]
|
2015-10-24 01:59:49 +00:00
|
|
|
|
|
|
|
* Description
|
2018-02-14 22:18:09 +00:00
|
|
|
This layer adds support for =GNU Octave= files to Spacemacs.
|
|
|
|
|
|
|
|
** Features:
|
|
|
|
- Syntax highlighting for =.m= files via [[https://www.gnu.org/software/emacs/manual/html_mono/octave-mode.html][octave-mode]].
|
|
|
|
- REPL support
|
2019-06-01 17:13:30 +00:00
|
|
|
- Support for directly running =Octave= scripts from Emacs.
|
2018-02-14 22:18:09 +00:00
|
|
|
- Integration with =Octaves= documentation search function.
|
2015-10-24 01:59:49 +00:00
|
|
|
|
|
|
|
* Install
|
2017-04-26 13:50:19 +00:00
|
|
|
Make sure that [[https://www.gnu.org/software/octave/][GNU Octave]] is installed and
|
2015-10-24 01:59:49 +00:00
|
|
|
in your PATH. For information about setting up $PATH, check out the
|
2015-12-21 13:50:36 +00:00
|
|
|
corresponding section in the FAQ (=SPC h SPC $PATH RET=).
|
2015-10-24 01:59:49 +00:00
|
|
|
|
2016-01-06 05:21:55 +00:00
|
|
|
To use this configuration layer, add it to your =~/.spacemacs=. You will need to
|
|
|
|
add =octave= to the existing =dotspacemacs-configuration-layers= list in this
|
|
|
|
file.
|
2015-10-24 01:59:49 +00:00
|
|
|
|
|
|
|
* Key bindings
|
|
|
|
** Inferior REPL process
|
|
|
|
Send code to inferior process with these commands:
|
|
|
|
|
|
|
|
| Key | Description |
|
|
|
|
|-------------+---------------------------------------|
|
2018-02-14 22:18:09 +00:00
|
|
|
| ~SPC m '~ | start/switch to REPL inferior process |
|
|
|
|
| ~SPC m s i~ | |
|
2015-10-24 01:59:49 +00:00
|
|
|
| ~SPC m s b~ | send buffer |
|
|
|
|
| ~SPC m s f~ | send function |
|
|
|
|
| ~SPC m s l~ | send line |
|
|
|
|
| ~SPC m s r~ | send region |
|
|
|
|
|
|
|
|
** Helpers
|
|
|
|
|
2018-12-05 03:03:03 +00:00
|
|
|
| Key binding | Description |
|
2016-04-13 03:31:38 +00:00
|
|
|
|-------------+------------------------------------------|
|
|
|
|
| ~SPC m h h~ | view documentation for function at point |
|
|
|
|
| ~SPC m h i~ | read octave info documentation |
|