spacemacs/layers/+lang/octave/README.org

43 lines
1.6 KiB
Org Mode
Raw Normal View History

#+TITLE: Octave layer
2015-10-24 01:59:49 +00:00
[[file:img/octave.png]]
2016-03-31 02:59:55 +00:00
* Table of Contents :TOC_4_gh:noexport:
2017-05-22 14:16:12 +00:00
- [[#description][Description]]
- [[#install][Install]]
- [[#key-bindings][Key bindings]]
- [[#inferior-repl-process][Inferior REPL process]]
- [[#helpers][Helpers]]
2015-10-24 01:59:49 +00:00
* Description
This layer activates [[https://www.gnu.org/software/emacs/manual/html_mono/octave-mode.html][octave-mode]] for files with =.m=
2016-01-04 07:00:18 +00:00
extensions and configures spacemacs-style key bindings.
2015-10-24 01:59:49 +00:00
* Install
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
corresponding section in the FAQ (=SPC h SPC $PATH RET=).
2015-10-24 01:59:49 +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 |
|-------------+---------------------------------------|
| ~SPC m s b~ | send buffer |
| ~SPC m s f~ | send function |
| ~SPC m s i~ | start/switch to REPL inferior process |
| ~SPC m s l~ | send line |
| ~SPC m s r~ | send region |
** Helpers
| Key Binding | Description |
|-------------+------------------------------------------|
| ~SPC m h h~ | view documentation for function at point |
| ~SPC m h i~ | read octave info documentation |