mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
feat(lang): Add support for TOML files via toml-mode package
This commit is contained in:
@@ -158,6 +158,7 @@
|
||||
(require 'siren-sql)
|
||||
(require 'siren-text-mode)
|
||||
(require 'siren-thrift)
|
||||
(require 'siren-toml)
|
||||
(require 'siren-typescript)
|
||||
(require 'siren-web-mode)
|
||||
(require 'siren-xml)
|
||||
|
||||
24
modules/languages/siren-toml.el
Normal file
24
modules/languages/siren-toml.el
Normal file
@@ -0,0 +1,24 @@
|
||||
;;; siren-toml.el --- jimeh's Emacs Siren: toml-mode configuration.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Basic configuration for toml-mode.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(require 'siren-prettier-js)
|
||||
(require 'siren-prog-mode)
|
||||
|
||||
(use-package toml-mode
|
||||
:ensure nil ;; loaded from emacs built-ins
|
||||
:mode "\\.toml\\'"
|
||||
:hook (toml-mode . siren-toml-mode-setup)
|
||||
|
||||
:init
|
||||
(defun siren-toml-mode-setup ()
|
||||
(run-hooks 'prog-mode-hook)
|
||||
(setq tab-width 2)
|
||||
(prettier-js-mode)))
|
||||
|
||||
(provide 'siren-toml)
|
||||
;;; siren-toml.el ends here
|
||||
Reference in New Issue
Block a user