Skip to content

Commit

Permalink
Move lua config to its own init-lua.el
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Aug 26, 2023
1 parent 1a0ca90 commit ef94ad7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
5 changes: 2 additions & 3 deletions init.el
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,12 @@
(require 'init-dash)

(require 'init-ledger)
(require 'init-lua)

;; Extra packages which don't require any configuration

(require-package 'sudo-edit)
(require-package 'gnuplot)
(require-package 'lua-mode)
(reformatter-define lua-format :program "lua-format" :args '("--indent-width=2" "--no-use-tab") :lighter "LuaFmt ")
(setq-default lua-indent-level 2)
(require-package 'htmlize)
(when *is-a-mac*
(require-package 'osx-location))
Expand Down
16 changes: 16 additions & 0 deletions lisp/init-lua.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
;;; init-lua.el --- Support for Lua programming -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:

(require-package 'lua-mode)

(setq-default lua-indent-level 2)

(reformatter-define lua-format
:program "lua-format"
:args '("--indent-width=2" "--no-use-tab")
:lighter "LuaFmt ")


(provide 'init-lua)
;;; init-lua.el ends here

0 comments on commit ef94ad7

Please sign in to comment.