Add `fennel' and `lua'

This commit is contained in:
Case Duckworth 2021-04-03 09:47:19 -05:00
parent 52bac1f364
commit bc962d91b3
1 changed files with 11 additions and 0 deletions

11
init.el
View File

@ -846,6 +846,17 @@ if ripgrep is installed, otherwise `consult-grep'."
(:hook-into emacs-lisp-mode))
;;;;; Shell scripts
;;;;; Fennel
(when (executable-find "fennel")
(setup (:straight fennel-mode)
(autoload 'fennel-mode "fennel-mode" nil t)
(:option (append auto-mode-alist) '("\\.fnl\\'" . fennel-mode))
(:bind "C-c C-c" )))
;;;; Lua
(setup (:straight lua-mode)
(:option (append auto-mode-alist) '("\\.lua\\'" . lua-mode)))
(setup sh-mode
(:option sh-basic-offset tab-width
sh-indent-after-case 0