mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
- Switch from highlight-indentation package to highlight-indent-guides. - Activate visual indentation in a prog-mode hook, rather than doing within each individual major mode. It was already done within all major modes based on prog-mode anyway. - Add new siren-display-indetation module and function as a central way to enable visual indetation guides. This makes switching the underlying package at some point in the future much easier.
22 lines
389 B
EmacsLisp
22 lines
389 B
EmacsLisp
;;; siren-lua.el --- jimeh's Emacs Siren: lua-mode configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for lua-mode.
|
|
|
|
;;; Code:
|
|
|
|
(use-package lua-mode
|
|
:hook
|
|
(lua-mode . siren-lua-mode-setup)
|
|
|
|
:init
|
|
(defun siren-lua-mode-setup ()
|
|
(setq lua-indent-level 2
|
|
whitespace-action '(auto-cleanup))
|
|
|
|
(subword-mode +1)))
|
|
|
|
(provide 'siren-lua)
|
|
;;; siren-lua.el ends here
|