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/forth
syl20bnr ebe4c60264 Revert "Defer packages by default using use-package-always-defer"
This reverts commit 29c78ce841 and all other fixes
that have been made afterwards.

The motivation is that use-package is seen by many as a replacement for
`require`. Is use-package always defer the loading of packages then is breaks
this use case, this does not respect POLA so even if it was making Spacemacs
loading faster (up to 3s faster on some startup on my machine) we just cannot
use it, it would be irresponsible. Spacemacs should be easy to use, loading
performance will come with time but it is not a priority.
2018-03-03 23:40:10 -05:00
..
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org

Forth layer

Description

This layer adds basic support for the Forth family of languages to spacemacs.

Features:

  • Syntax highlighting
  • Showing meaning of objects in context of the current Forth session.
  • Eval of entire files or regions in current Forth session.
  • Passing interactive commands to current Forth session.

Install

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

A local installation of Forth needs to be present as well. GNU Forth is commonly available on Unix systems via the package manager. To bypass the query when calling run-forth, the default Forth can be configured by setting the appropriate variable.

  (setq-default dotspacemacs-configuration-layers
                '((forth :variables forth-executable "gforth")))

Key bindings

Key Binding Description
SPC m d s See definition (show decompiled body)
SPC m e E Evaluate expression in minibuffer
SPC m e e Evaluate last expression
SPC m e r Evaluate region
SPC m s b Load file in interactive Forth
SPC m s i Start interactive Forth (prompts for Forth executable if not set)
SPC m s k Kill interactive Forth