Remove unnecessary config

- smartparens-terra doesn't exist
- terra-indent-level has a sensible initial value, so it doesn't need to be reset
This commit is contained in:
Henrik Lissner 2019-04-05 02:15:23 -04:00 committed by GitHub
parent b3594e55f7
commit 3ba364a0a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,24 +1,12 @@
;;; 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