adding a terra module.
This commit is contained in:
parent
a37e1922da
commit
115228bfc7
4 changed files with 41 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))
|
24
modules/lang/terra/config.el
Normal file
24
modules/lang/terra/config.el
Normal 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
|
||||
|
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