Browse Source

emacs: add lua to smart-tabs

master
Alison Watson 1 year ago
parent
commit
00822c5302
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      emacs/init.el

+ 6
- 3
emacs/init.el View File

@@ -229,7 +229,7 @@
;; adjustments
(use-package smart-tabs-mode
:ensure t
:after (fish-mode glsl-mode rust-mode)
:after (fish-mode glsl-mode rust-mode lua-mode)
:config
(smart-tabs-add-language-support powershell powershell-mode-hook
((powershell-indent-line . powershell-indent)))
@@ -240,12 +240,15 @@
(smart-tabs-add-language-support glsl glsl-mode-hook
((c-indent-line . c-basic-offset)
(c-indent-region . c-basic-offset)))
(smart-tabs-add-language-support lua lua-mode-hook
((lua-indent-line . lua-indent-level)))
(smart-tabs-insinuate
'c
'fish
'glsl
'javascript
'rust
'glsl))
'lua
'rust))

(use-package ialign
:ensure t


Loading…
Cancel
Save