From a187752c824b47052d33d3bc12749b5a7d2e8191 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 1 Jun 2023 19:35:59 -0700 Subject: 🤡 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I06b104d79deac199f9cd9cdae705e333d23cc852 --- emacs/custom/my-conf.el | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 emacs/custom/my-conf.el (limited to 'emacs/custom/my-conf.el') diff --git a/emacs/custom/my-conf.el b/emacs/custom/my-conf.el deleted file mode 100644 index 7b1dd13..0000000 --- a/emacs/custom/my-conf.el +++ /dev/null @@ -1,32 +0,0 @@ -;;; my-conf.el --- Configure modes related to configuration files -*- lexical-binding: t -*- - -;;; Commentary: -;; Provides configuration for modes that are related to configuration -;; files. - -;;; Code: - -(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)) -(add-to-list 'auto-mode-alist '("_SWARP10_METADATA\\'" . yaml-mode)) ;; roblox related -(add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode)) -(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode)) -(add-to-list 'auto-mode-alist '("\\.tf\\'" . terraform-mode)) - -(customize-set-variable 'dockerfile-use-sudo t) -(customize-set-variable 'dockerfile-use-buildkit t) - -(customize-set-variable 'json-reformat:indent-width 2) -(customize-set-variable 'js-indent-level 2) -(customize-set-variable 'css-indent-offset 2) - -(add-hook 'terraform-mode-hook 'terraform-format-on-save-mode) - -(defun my/js-mode-hook () - "Hooks for `js-mode'." - ;; format the buffer with `jq' - (local-set-key (kbd "C-c C-f") 'jq-format-json-buffer)) - -(add-hook 'js-mode-hook 'my/js-mode-hook) - -(provide 'my-conf) -;;; my-conf.el ends here -- cgit 1.4.1