Move elisp into a folder and switch to emacs-wayland on linux.

This commit is contained in:
Tom Alexander
2023-09-08 11:26:46 -04:00
parent c9617dd3cc
commit ed25cd6d31
22 changed files with 7 additions and 23 deletions

View File

@@ -0,0 +1,21 @@
(defun lua-format-buffer ()
"Run stylua."
(interactive)
(run-command-on-buffer "stylua" "--search-parent-directories" "--stdin-filepath" buffer-file-name "-")
)
(use-package lua-mode
:mode
(("\\.lua\\'" . lua-mode)
("\\.rockspec\\'" . lua-mode))
:commands lua-mode
:hook (
(lua-mode . (lambda ()
(add-hook 'before-save-hook 'lua-format-buffer nil 'local)
))
)
:custom
(lua-indent-level 4)
)
(provide 'lang-lua)