Moving to Doom Emacs!

This commit is contained in:
Derek Taylor
2019-12-16 20:21:19 -06:00
parent d9f2f456f1
commit d4b4c33550
683 changed files with 51877 additions and 100 deletions

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

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