on the page:
https://www.gnu.org/software/emacs/download.html

brew cask install emacs

should be replaced with:

brew install --cask emacs

as the cask subcommand has been removed from homebrew, in favor of a --cask flag.

relevant commit removing the cask subcommand from the usage instructions on the official homebrew github:
https://github.com/Homebrew/homebrew-cask/commit/1fb821a4a50f75c92afe1ded44ccc6709314461b#diff-58a825c70bccfbe691d7ddbddb133275f4f657de6aeb4a502fa9fce279f8bf8d

tyler@iheartapis.com
2E69 E7FB 5F0E 1C0F 1D62  5C36 BA76 979F AA8D 36E6