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

@ -129,6 +129,7 @@
(sh +fish) ; she sells (ba|z|fi)sh shells on the C xor
;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
;;web ; the tubes
;;vala ; GObjective-C

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))