Merge pull request #1283 from aiverson/develop

Add Module for terralang
This commit is contained in:
Henrik Lissner 2019-04-05 02:19:24 -04:00 committed by GitHub
commit 038e0196c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,8 @@
;;; lang/terra/autoload.el -*- lexical-binding: t; -*-
;;;###autoload
(defun +terra/open-repl ()
"Open Terra REPL."
(interactive)
(terra-start-process "terra" "terra")
(pop-to-buffer terra-process-buffer))

View file

@ -0,0 +1,12 @@
;;; lang/lua/config.el -*- lexical-binding: t; -*-
;;
;; Major modes
(def-package! terra-mode
:defer t
:config
(set-lookup-handlers! 'terra-mode :documentation 'terra-search-documentation)
(set-electric! 'terra-mode :words '("else" "end"))
(set-repl-handler! 'terra-mode #'+terra/open-repl)
(set-company-backend! 'terra-mode '(company-lua company-yasnippet)))

View file

@ -0,0 +1,8 @@
;; -*- no-byte-compile: t; -*-
;;; lang/lua/packages.el
(package! terra-mode :recipe (:fetcher github :repo "StanfordLegion/terra-mode"))
(when (featurep! :completion company)
(package! company-lua))