dotfiles/.config/emacs/modules/lang/earnemod-config.el

40 lines
794 B
EmacsLisp

;;; earnemod-config.el --- -*- lexical-binding: t; -*-
;; Copyright (C) 2020-2021 earnest ma
;; SPDX-License-Identifier: MIT
;; Author: earnest ma <me@earne.link>
;;; Code:
;; TOML
(use-package toml-mode)
;; JSON
(use-package json-mode)
;; YAML
(use-package yaml-mode
:mode (("\\.yml\\'" . yaml-mode)
("\\.yaml\\'" . yaml-mode))
:config
(add-hook 'yaml-mode-hook
'(lambda ()
(define-key yaml-mode-map "\C-m" 'newline-and-indent))))
;; SSH config files
(use-package ssh-config-mode)
;; Nginx
(use-package nginx-mode
:config
(setq nginx-indent-tabs-mode t))
(use-package company-nginx
:config
(add-hook 'nginx-mode-hook
(lambda ()
(add-to-list 'company-backends #'company-nginx))))
(provide 'earnemod-config)
;;; earnemod-config.el ends here