Action-paced Windows Batch-file editing, powered by GNU Emacs!
Batch Mode eXtras, or bmx for short is an Emacs-package which aims to
extend Emacs' built in bat-mode, to improve editing of Windows
Batch-files.
The following features are currently provided:
- Code-completion for labels and environment-variables based on company-mode (
C-.). - Seamless code-navigation using established Emacs-conventions (
M-,andM-.). - Looking up references to any symbol (
Shift-f12). - Renaming of code-symbols (
C-c C-r). - Fixup file to use consistent casing and syntax for all variables and labels (
C-c C-f).
bmx-mode is packaged and available from MELPA. Install it the usual way:
M-x package-install<RET>bmx-mode<RET>
Install it and plug it into your .emacs and you should be done:
(require 'bmx-mode)
(bmx-mode-setup-defaults)or use use-package:
(use-package bmx-mode
:config (bmx-mode-setup-defaults))No further configuration should be needed to work properly.
That said the following aspects can be customized using standard Emacs-customization (M-x customize-group<RET>bmx-mode).
- Toggle completion of system-variables (default
off)
While fully usable, this mode is currently under development and there may be bugs.
If so feel free to report them, or even better: Provide PRs!
