mirror of
https://gitlab.com/dwt1/dotfiles.git
synced 2026-04-23 19:40:24 +10:00
Moving to Doom Emacs!
This commit is contained in:
8
.emacs.d/modules/lang/terra/autoload.el
Normal file
8
.emacs.d/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))
|
||||
11
.emacs.d/modules/lang/terra/config.el
Normal file
11
.emacs.d/modules/lang/terra/config.el
Normal file
@@ -0,0 +1,11 @@
|
||||
;;; lang/lua/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;
|
||||
;;; Major modes
|
||||
|
||||
(after! terra-mode
|
||||
(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)))
|
||||
9
.emacs.d/modules/lang/terra/packages.el
Normal file
9
.emacs.d/modules/lang/terra/packages.el
Normal file
@@ -0,0 +1,9 @@
|
||||
;; -*- no-byte-compile: t; -*-
|
||||
;;; lang/lua/packages.el
|
||||
|
||||
(package! terra-mode
|
||||
:recipe (:host github :repo "StanfordLegion/terra-mode"))
|
||||
|
||||
(when (featurep! :completion company)
|
||||
(package! company-lua))
|
||||
|
||||
Reference in New Issue
Block a user