Merge pull request #1283 from aiverson/develop
Add Module for terralang
This commit is contained in:
commit
038e0196c7
4 changed files with 29 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
8
modules/lang/terra/autoload.el
Normal file
8
modules/lang/terra/autoload.el
Normal 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))
|
12
modules/lang/terra/config.el
Normal file
12
modules/lang/terra/config.el
Normal 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)))
|
8
modules/lang/terra/packages.el
Normal file
8
modules/lang/terra/packages.el
Normal 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))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue