adding a terra module.

This commit is contained in:
Alex Iverson 2019-03-25 14:50:41 -06:00
parent a37e1922da
commit 115228bfc7
4 changed files with 41 additions and 0 deletions

View file

@ -129,6 +129,7 @@
(sh +fish) ; she sells (ba|z|fi)sh shells on the C xor (sh +fish) ; she sells (ba|z|fi)sh shells on the C xor
;;solidity ; do you need a blockchain? No. ;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables? ;;swift ; who asked for emoji variables?
;;terra ; Earth and Moon in alignment for performance.
;;web ; the tubes ;;web ; the tubes
;;vala ; GObjective-C ;;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,24 @@
;;; lang/lua/config.el -*- lexical-binding: t; -*-
;; sp's default rules are obnoxious, so disable them
(provide 'smartparens-terra)
;;
;; Major modes
(def-package! terra-mode
:defer t
:init
;; lua-indent-level defaults to 3 otherwise. Madness.
(setq terra-indent-level tab-width)
: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)))
;;
;; Frameworks

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