From de68cdc05e0b0fb320ddb06b23d461bed55848fa Mon Sep 17 00:00:00 2001 From: BirDt_ Date: Sun, 14 Dec 2025 17:46:34 +0800 Subject: [PATCH] json,yaml,markdown modes, and fix dired async --- userland/dired-custom.el | 1 - workflows/json-custom.el | 27 +++++++++++++++++++++++++++ workflows/markdown-custom.el | 31 +++++++++++++++++++++++++++++++ workflows/yaml-custom.el | 28 ++++++++++++++++++++++++++++ 4 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 workflows/json-custom.el create mode 100644 workflows/markdown-custom.el create mode 100644 workflows/yaml-custom.el diff --git a/userland/dired-custom.el b/userland/dired-custom.el index 49da64f..7d971da 100644 --- a/userland/dired-custom.el +++ b/userland/dired-custom.el @@ -25,7 +25,6 @@ (require 'dired) (require 'dired-x) -(require 'dired-async) (require 'dired-aux) (setq dired-recursive-deletes t) diff --git a/workflows/json-custom.el b/workflows/json-custom.el new file mode 100644 index 0000000..48b230e --- /dev/null +++ b/workflows/json-custom.el @@ -0,0 +1,27 @@ +;;; json-custom.el --- Customisations for reading JSON files -*- lexical-binding: t -*- + +;; This file is not part of GNU Emacs + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + + +;;; Commentary: + +;;; Code: + +(use-package json-mode) + +(provide 'json-custom) + +;;; json-custom.el ends here diff --git a/workflows/markdown-custom.el b/workflows/markdown-custom.el new file mode 100644 index 0000000..700d24d --- /dev/null +++ b/workflows/markdown-custom.el @@ -0,0 +1,31 @@ +;;; markdown-custom.el --- Customisations for markdown file editing -*- lexical-binding: t -*- + +;; This file is not part of GNU Emacs + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;;; Code: + +(use-package markdown-mode + :config + (keymap-unset markdown-mode-map "C-c ") + (keymap-unset markdown-mode-map "C-c ") + (keymap-unset markdown-mode-map "C-c ") + (keymap-unset markdown-mode-map "C-c ")) + +(provide 'markdown-custom) + +;;; markdown-custom.el ends here diff --git a/workflows/yaml-custom.el b/workflows/yaml-custom.el new file mode 100644 index 0000000..fb374ab --- /dev/null +++ b/workflows/yaml-custom.el @@ -0,0 +1,28 @@ +;;; yaml-custom.el --- Customisations for editing YAML files -*- lexical-binding: t -*- + +;; This file is not part of GNU Emacs + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;;; Code: + +(use-package yaml-mode + :config + (add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))) + +(provide 'yaml-custom) + +;;; yaml-custom.el ends here