Skip to content

grph-lang/grph-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

grph-mode emacs major mode

This simple emacs plugin adds support for GRPH via LSP.

Install

To run, it first needs the GRPH LSP server installed. Clone the compiler from here, and build it using swift build --product LSP (Swift needs to be installed).

Clone this repo, then, add the following to your .emacs:

(setq load-path
    (cons (expand-file-name "[INSERT grph-mode REPO HERE]") load-path))
(require 'grph-mode)
(setq lsp-grph-executable
      "[INSERT grph REPO HERE]/.build/debug/LSP")

Make sure to replace [INSERT grph-mode REPO HERE] with the path of the directory where grph-mode.el can be found, and replace [INSERT grph REPO HERE] with the path of the directory where the compiler has been cloned.

The plugin depends on lsp-mode, make sure to have it installed too.

If you want lsp to automatically be enabled when opening a GRPH file, you can add the following to your .emacs :

(add-hook 'grph-mode-hook #'lsp)

Releases

No releases published