Same procedure as always, one would think. But somehow, it manages to be different every single time.
This is what I want:
alex@Megabombus:~$ brew install railwaycat/emacsmacport/emacs-mac --with-gnutls --with-imagemagick --with-official-icon --with-xml2 ==> Installing emacs-mac from railwaycat/emacsmacport ...
Homebrew also wanted me to do some other stuff, oh well.
alex@Megabombus:~$ sudo chown root:wheel /usr/local alex@Megabombus:~$ sudo mv /opt/homebrew-cask/Caskroom /usr/local
#Emacs #OSX #Homebrew
(Please contact me if you want to remove your comment.)
⁂
Today...
alex@Megabombus:~$ brew update Checking out v1.0.6 in /usr/local/Homebrew... To checkout master in /usr/local/Homebrew run: 'cd /usr/local/Homebrew && git checkout master Checking out v1.0.6 in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask... To checkout master in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask run: 'cd /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask && git checkout master fatal: Cannot update paths and switch to branch 'v1.0.6' at the same time. ...
And many repeats. WTF!
Google found an answer on Stack Exchange that seemed similar enough for me to try it:
alex@Megabombus:~$ cd $(brew --repo); git fetch; git reset --hard origin/master; brew update HEAD is now at faebc64 Merge pull request #1216 from reitermarkus/fix-language-audit Updated 11 taps (caskroom/cask, homebrew/boneyard, homebrew/core, homebrew/dupes, homebrew/fuse, homebrew/games, homebrew/science, homebrew/services, homebrew/tex, homebrew/versions, homebrew/x11). ...
Looks good!
Also, I learned that now `--enable-mac-app` is required...
And so:
alex@Megabombus:~$ brew install railwaycat/emacsmacport/emacs-mac --with-gnutls --with-imagemagick --with-official-icon --with-xml2 --enable-mac-app Warning: railwaycat/emacsmacport/emacs-mac-emacs-25.1-z-mac-6.0 already installed alex@Megabombus:~$ brew remove railwaycat/emacsmacport/emacs-mac Uninstalling /usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0... (4,066 files, 109.9M) emacs-mac emacs-24.5-z-mac-5.17, emacs-24.5-z-mac-5.18 are still installed. Remove all versions with `brew uninstall --force emacs-mac`. alex@Megabombus:~$ brew uninstall --force emacs-mac Uninstalling emacs-mac... (7,874 files, 225.7M) alex@Megabombus:~$ brew install railwaycat/emacsmacport/emacs-mac --with-gnutls --with-imagemagick --with-official-icon --with-xml2 --enable-mac-app ==> Installing emacs-mac from railwaycat/emacsmacport ==> Installing dependencies for railwaycat/emacsmacport/emacs-mac: nettle, imagemagick ==> Installing railwaycat/emacsmacport/emacs-mac dependency: nettle ... ==> Caveats This is YAMAMOTO Mitsuharu's "Mac port" addition to GNU Emacs 25. This provides a native GUI support for Mac OS X 10.6 - 10.12. After installing, see README-mac and NEWS-mac in /usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0 for the port details. Emacs.app was installed to: /usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0 To link the application to default Homebrew App location: brew linkapps or: ln -s /usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0/Emacs.app /Applications Other ways please refer: https://github.com/railwaycat/homebrew-emacsmacport/wiki/Alternative-way-of-place-Emacs.app-to-Applications-directory For an Emacs.app CLI starter, see: https://gist.github.com/4043945 .app bundles were installed. Run `brew linkapps emacs-mac` to symlink these to /Applications. ==> Summary 🍺 /usr/local/Cellar/emacs-mac/emacs-25.1-z-mac-6.0: 4,067 files, 109.8M, built in 15 minutes 56 seconds alex@Megabombus:~$ brew linkapps emacs-mac Linking: /usr/local/opt/emacs-mac/Emacs.app Linked 1 app to /Applications
– Alex Schroeder 2016-10-06 19:47 UTC