json,yaml,markdown modes, and fix dired async

This commit is contained in:
BirDt_ 2025-12-14 17:46:34 +08:00
parent e921242374
commit de68cdc05e
4 changed files with 86 additions and 1 deletions

View file

@ -25,7 +25,6 @@
(require 'dired)
(require 'dired-x)
(require 'dired-async)
(require 'dired-aux)
(setq dired-recursive-deletes t)

27
workflows/json-custom.el Normal file
View file

@ -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 <https://www.gnu.org/licenses/>.
;;; Commentary:
;;; Code:
(use-package json-mode)
(provide 'json-custom)
;;; json-custom.el ends here

View file

@ -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 <https://www.gnu.org/licenses/>.
;;; Commentary:
;;; Code:
(use-package markdown-mode
:config
(keymap-unset markdown-mode-map "C-c <left>")
(keymap-unset markdown-mode-map "C-c <right>")
(keymap-unset markdown-mode-map "C-c <up>")
(keymap-unset markdown-mode-map "C-c <down>"))
(provide 'markdown-custom)
;;; markdown-custom.el ends here

28
workflows/yaml-custom.el Normal file
View file

@ -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 <https://www.gnu.org/licenses/>.
;;; Commentary:
;;; Code:
(use-package yaml-mode
:config
(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode)))
(provide 'yaml-custom)
;;; yaml-custom.el ends here