interactive-lang-tools/backends/phel
Mariano Montone 31d76cc765 Work on Python backend 2023-04-06 16:57:29 -03:00
..
README.md Screenshot 2022-09-28 12:26:30 -03:00
ilt-phel.el Work on Python backend 2023-04-06 16:57:29 -03:00
ilt.phel Quit after serving request 2022-09-29 10:32:40 -03:00
phel-mode.el Update archive 2022-09-27 14:40:25 -03:00

README.md

Phel ILT backend

Install and setup

  • Install ILT packages: ilt, ilt-phel, phel-mode

  • In your .emacs:

    (require 'phel-mode)
    (require 'ilt-phel)
    
    (add-to-list 'auto-mode-alist '("\\.phel\\'" . phel-mode))
    
    (add-hook 'phel-mode-hook 'ilt-mode)
    
  • Run the Phel ILT server

    I would like to make this step better, but I don't know how. (IF YOU HAVE IDEAS ON HOW TO IMPROVE THIS STEP, PLEASE LET ME KNOW!)

    Copy ilt.phel to your project and start it: ~/src/phel-scaffolding $ php -S localhost:8080 -t ./src/web

  • Open your Phel files and connect.

    When asked about the connection url, enter the url with /ilt handler. For example: http://localhost:8080/ilt.

Usage

Syntax highlighting, indentation, completion, eldoc, are supported, with limitations.

Commands:

  • C-x C-e (or M-x ilt-eval-last-expr) to evaluate Phel code interactively from your buffer.
  • M-x phel-repl to start a REPL.

Screenshots

phel1 phel2 phel-docs