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
syl20bnr 0051aa73c4 Update conventions for help/doc key bindings
`m d` goes under help commands so it is now `m h d`
2014-12-21 22:52:57 -05:00

28 lines
836 B
EmacsLisp

;; 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)))