From 93ed2ac9758e4ef10718d90be1f163fddf376aaa Mon Sep 17 00:00:00 2001 From: finga Date: Wed, 15 Nov 2023 11:29:27 +0100 Subject: [PATCH] dev, yaml: Extract yaml config into separate file Move configuration regarding yaml into its own file. --- .emacs.d/config/dev.el | 4 ---- .emacs.d/config/yaml.el | 2 ++ .emacs.d/init.el | 2 +- .gitignore.d/emacs | 1 + 4 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 .emacs.d/config/yaml.el diff --git a/.emacs.d/config/dev.el b/.emacs.d/config/dev.el index aaa8f0a..14fcee8 100644 --- a/.emacs.d/config/dev.el +++ b/.emacs.d/config/dev.el @@ -22,10 +22,6 @@ :ensure t :bind ("M-s d" . deadgrep)) -;; yaml -(use-package yaml-mode :ensure t) -(use-package flycheck-yamllint :ensure t) - ;; paredit (use-package paredit :ensure t) (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code." t) diff --git a/.emacs.d/config/yaml.el b/.emacs.d/config/yaml.el new file mode 100644 index 0000000..45cdb62 --- /dev/null +++ b/.emacs.d/config/yaml.el @@ -0,0 +1,2 @@ +(use-package yaml-mode :ensure t) +(use-package flycheck-yamllint :ensure t) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 0a935e8..1d7e835 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -57,7 +57,7 @@ symbols, which are converted to strings, and suffixed with \".el\"." :group 'config-snippets :type '(repeat directory)) -(setq config-snippets '(base backups c calendar dev functions gpg matrix org pass rust wl)) +(setq config-snippets '(base backups c calendar dev functions gpg matrix org pass rust wl yaml)) (message "Loading\nconfig-snippets: %s\nconfig-snippets-path: %s" config-snippets config-snippet-path) (dolist (snippet config-snippets) diff --git a/.gitignore.d/emacs b/.gitignore.d/emacs index 15f82b4..d8d62c3 100644 --- a/.gitignore.d/emacs +++ b/.gitignore.d/emacs @@ -11,6 +11,7 @@ !/.emacs.d/config/pass.el !/.emacs.d/config/rust.el !/.emacs.d/config/tramp.el +!/.emacs.d/config/yaml.el !/.emacs.d/init.el !/.gitignore.d/emacs !/.local/bin/em