Function: bat-mode
bat-mode is an autoloaded, interactive and byte-compiled function
defined in bat-mode.el.gz.
Signature
(bat-mode)
Documentation
Major mode for editing DOS/Windows batch files.
Start a new script from bat-template. Read help pages for DOS commands
with bat-cmd-help. Navigate between sections using imenu.
Run script using bat-run and bat-run-args.
C-c C-/ bat-cmd-help
C-c C-a bat-run-args
C-c C-c bat-run
C-c C-t bat-template
C-c C-v bat-run
In addition to any hooks its parent mode prog-mode might have run,
this mode runs the hook bat-mode-hook, as the final or penultimate
step during initialization.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/bat-mode.el.gz
;; 5 Main function
;;;###autoload
(define-derived-mode bat-mode prog-mode "Bat"
"Major mode for editing DOS/Windows batch files.
Start a new script from `bat-template'. Read help pages for DOS commands
with `bat-cmd-help'. Navigate between sections using `imenu'.
Run script using `bat-run' and `bat-run-args'.\n
\\{bat-mode-map}"
(setq-local comment-start "rem ")
(setq-local comment-start-skip "rem[ \t]+")
(setq-local syntax-propertize-function bat--syntax-propertize)
(setq-local font-lock-defaults
'(bat-font-lock-keywords nil t)) ; case-insensitive keywords
(setq-local imenu-generic-expression '((nil "^:[^:].*" 0)))
(setq-local outline-regexp ":[^:]"))