| git.druid.rocks | index | druid520 | radium | radium-lang-forth.el |
radium-lang-forth.el
;;; radium-lang-forth.el, .fth/.fs editing -*- lexical-binding: t; -*-
;;
;; forth-mode ships its own complete repl in a companion file,
;; forth-interaction-mode.el, but my actual forth ("forthc",
;; from git://git.druid.rocks/druid520/forthc.git) is a one-shot
;; source-to-elf compiler with no interactive mode at all - it doesn't
;; even read stdin by default, so there's nothing to point
;; forth-interaction-mode at. this file only wires up file editing.
;; if a real interactive forth (gforth, pforth, ...) ever ends up on
;; PATH, `(setq forth-executable "...")` plus `(require
;; 'forth-interaction-mode)` in a `with-eval-after-load 'forth-mode'`
;; block would make its repl work normally.
(use-package forth-mode
:mode (("\\.fth\\'" . forth-mode)
("\\.fs\\'" . forth-mode)))
(provide 'radium-lang-forth)