This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/contrib/lang/windows-scripts/extensions.el

29 lines
836 B
EmacsLisp
Raw Normal View History

;; Post extensions are loaded *after* the packages
(defvar windows-scripts-post-extensions '(dos))
;; Initialize the extensions
(defun windows-scripts/init-dos ()
(use-package dos
:commands dos-mode
:mode ("\\.bat$" . dos-mode)
:init
(progn
(defun windows-scripts/dos-outline-hook ()
(local-set-key (kbd "SPC m z") 'dos-mode)
(defun outline-mouse-select ()
"Select position and return to `dos-mode'."
(interactive)
(dos-mode)
(beginning-of-line)))
(add-hook 'outline-mode-hook 'windows-scripts/dos-outline-hook))
:config
(evil-leader/set-key-for-mode 'dos-mode
"mhD" 'dos-help-cmd
"meb" 'dos-run
"meB" 'dos-run-args
"ms" 'dos-sep
"mt" 'dos-template-mini
"mT" 'dos-template
"mz" 'dos-outline)))