Homebrew Emacs



Installing previous versions of formulae

  1. Homebrew Emacs Big Sur
  2. Homebrew Emacs Cocoa

The supported method of installing specific versions ofsome formulae is to see if there is a versioned formula (e.g. gcc@7) available. If the version you’re looking for isn’t available, consider using brew extract.

$ brew install emacs-mac. If you using cask. Brew install -cask emacs-mac or brew install -cask emacs-mac-spacemacs-icon. To disable this tap, please. $ EMACS=$(which emacs) brew install `mu` -with-emacs -HEAD The only problem is which emacs finds the emacs in /usr/bin which is too old. So, I moved the old Emacs to /usr/bin/emacs-backup and symlinked in the newer Emacs that is actually the newer version. 🍻🐧 Core formulae for the Homebrew package manager on Linux - Homebrew/linuxbrew-core.

Quickly remove something from /usr/local

This can be useful if a package can’t build against the version of something you have linked into /usr/local.

And of course, you can simply brew link <formula> again afterwards!

Install into Homebrew without formulae

Pre-downloading a file for a formula

Sometimes it’s faster to download a file via means other than thosestrategies that are available as part of Homebrew. For example,Erlang provides a torrent that’ll let you download at 4–5× the normalHTTP method.

Download the file and drop it in ~/Library/Caches/Homebrew, butwatch the file name. Homebrew downloads files as <formula>-<version>.In the case of Erlang, this requires renaming the file from otp_src_R13B03 toerlang-R13B03.

brew --cache -s erlang will print the correct name of the cacheddownload. This means instead of manually renaming a formula, you canrun mv the_tarball $(brew --cache -s <formula>).

You can also pre-cache the download by using the command brew fetch <formula> which also displays the SHA-256 hash. This can be useful for updating formulae to new versions.

Installing stuff without the Xcode CLT

This imports the brew environment into your existing shell; gem will pick up the environment variables and be able to build. As a bonus brew’s automatically determined optimization flags are set.

Install only a formula’s dependencies (not the formula)

Interactive Homebrew Shell

Hiding the beer mug emoji when finishing a build

This sets the HOMEBREW_NO_EMOJI environment variable, causing Homebrewto hide all emoji.

The beer emoji can also be replaced with other character(s):

Editor plugins

Sublime Text

In Sublime Text 2/3, you can use Package Control to installHomebrew-formula-syntax,which adds highlighting for inline patches.

Vim

brew.vim adds highlighting toinline patches in Vim.

Emacs

Emacs

homebrew-mode provides syntaxhighlighting for inline patches as well as a number of helper functionsfor editing formula files.

pcmpl-homebrew provides completionfor emacs shell-mode and eshell-mode.

Homebrew Emacs Big Sur

Atom

Homebrew Emacs Cocoa

language-homebrew-formulaadds highlighting and diff support (with thelanguage-diff plugin).