Skip to content

Mg v4.7

Latest

Choose a tag to compare

@github-actions github-actions released this 11 Nov 17:52
· 1 commit to master since this release
v4.7
66123f3

Changes

  • New go-mode: Go highlighting and indent, C-c C-f runs gofmt, C-c C-b, C-c C-v, C-c C-t and C-c C-r build, vet, test and run
  • next-error finds indented file:line: locations, like those of go test
  • conf-mode for *.cf files, and for files no pattern names that start with a [section] or key = value, like ~/.irssi/config
  • q closes the *compile*, *grep* and *gid* windows, and next-error goes on from the list
  • Colors in *compile* and *grep*: file and line of each location, errors, warnings, and how the command ended
  • compile and grep run in the background, the output shown as it comes, like auto-revert-tail-mode
  • C-c C-b runs compile in c-mode, like build in go-mode
  • Project commands on C-c p: C-c p c compiles from the project root, a git checkout or Go module, C-c p f finds a file in it, C-c p g greps it, C-c p b switches between its buffers and C-c p k kills them, C-c p D and C-c p ! run dired and a shell command at its root
  • C-x C-b selects the list, on the current buffer; picking a buffer or q closes it
  • C-x TAB, indent-rigidly: shift the region with the arrow keys, or by tab stops with TAB and Shift-arrows
  • mg -h shows a help text: the options, the environment, and the keys to start with
  • mg -q starts without reading ~/.mg, and mg -v shows the version
  • mg -t /dev/pts/N uses another terminal, for debugging mg in gdb

Fixes

  • Single-file mode, -s: make-directory could make one anywhere, make-backup-files turn backups back on, written past the checks, and without -S, dired on a directory named on the command line could copy, rename and delete other files