This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/faust
Eivind Fonn 928983da47 Refactor jump to definition
This commit defines:

- spacemacs-default-jump-handlers: a list of functions that can jump to
  definition in ALL modes.

- spacemacs-jump-handlers-MODE: a list of functions that can jump to
  definition in MODE.

- spacemacs-jump-handlers: a buffer-local list of functions that can
  jump to definition. This is made up of the values of the two previous
  variables whenever a given major mode is activated.

- spacemacs/jump-to-definition: a function that tries each function in
  spacemacs-jump-handlers in order, and stops when one of them takes us
  somewhere new.

- spacemacs|define-jump-handlers: a macro that
  * defines spacemacs-jump-handlers-MODE, possibly filled with initial
    functions
  * defines a function that is added to the hook of the given MODE
  * binds “SPC m g g” of that MODE to spacemacs/jump-to-definition

This is an attempt to harmonize all the different approaches to jumping.
Specifically,

- Existing intelligent jump packages that work for only a single mode
  should go to the beginning of spacemacs-jump-handlers-MODE. E.g.
  anaconda for python, ensime for scala, etc.

- Packages like gtags that work for several modes (but potentially not
  all) and which is dumber than the intelligent jumpers should go the
  the END of spacemacs-jump-handlers-MODE.

- Packages like dumb-jump that work for all modes should go to
  spacemacs-default-jump-handlers.

In all cases the order of the jump handlers in each list should be from
most to least intelligent.

Fixes #6619
2016-08-22 15:08:25 +02:00
..
img
config.el
funcs.el faust: refactor layer 2016-03-21 20:33:35 -04:00
packages.el Refactor jump to definition 2016-08-22 15:08:25 +02:00
README.org Convert org doc files with doc-fmt 2016-03-30 22:59:55 -04:00

faust layer

/TakeV/spacemacs/media/commit/734c87fb2410550fd4bae1f22dad322ae4475191/layers/+lang/faust/img/faust.png

Description

This simple layer adds support for the faust language. It adds faust-mode as well as integrating it with auto-completion layer.

Install

To use this configuration layer, add it to your ~/.spacemacs. You will need to add faust to the existing dotspacemacs-configuration-layers list in this file.

Key bindings

Key Binding Description
SPC m c f Compile to SVG and open in Firefox
SPC m c g Compile a jack-gtk program and run it
SPC m c q Compile a jack-qt program and run it
SPC m g b Jump back to previous location
SPC m g g Jump to definition around point