mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
Add yaml-mode
This commit is contained in:
30
modules/siren-yaml.el
Normal file
30
modules/siren-yaml.el
Normal file
@@ -0,0 +1,30 @@
|
||||
;;; siren-yaml.el --- jimeh's Emacs Siren: yaml-mode configuration.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; Basic configuration for yaml-mode.
|
||||
|
||||
;;; Code:
|
||||
|
||||
(siren-require-package 'yaml-mode)
|
||||
|
||||
(require 'siren-programming)
|
||||
|
||||
(defun siren-yaml-mode-defaults ()
|
||||
(siren-prog-mode-defaults)
|
||||
|
||||
(subword-mode +1)
|
||||
(setq tab-width 2)
|
||||
(highlight-indentation-set-offset 2)
|
||||
(highlight-indentation-mode)
|
||||
(highlight-indentation-current-column-mode)
|
||||
(setq whitespace-action (quote (auto-cleanup)))
|
||||
(define-key yaml-mode-map (kbd "RET") 'newline-and-indent))
|
||||
|
||||
(setq siren-yaml-mode-hook 'siren-yaml-mode-defaults)
|
||||
|
||||
(add-hook 'yaml-mode-hook (lambda ()
|
||||
(run-hooks 'siren-yaml-mode-hook)))
|
||||
|
||||
(provide 'siren-yaml)
|
||||
;;; siren-yaml.el ends here
|
||||
@@ -60,6 +60,7 @@
|
||||
(require 'siren-scss)
|
||||
(require 'siren-sh)
|
||||
(require 'siren-thrift)
|
||||
(require 'siren-yaml)
|
||||
|
||||
(provide 'siren-modules)
|
||||
;;; siren-modules.el ends here
|
||||
|
||||
Reference in New Issue
Block a user