Emacs for Mac OS Wiki
Install emacs-plus which has some extra options enabled:
brew cask install emacsDoom recommends emacs mac but it doesn’t run on latest Mac OS releases. It is kind of outdated and doesn’t work with newer libraries from brew.
brew tap railwaycat/emacsmacport
brew install emacs-mac --with-modules
osascript -e 'tell application "Finder" to make alias file to posix file "/opt/homebrew/opt/emacs-mac/Emacs.app" at POSIX file "/Applications" with properties {name:"Emacs.app"}'See README-mac and NEWS-mac in /opt/homebrew/opt/emacs-mac for the port details
To link the application to default App location and CLI scripts, please checkout: https://github.com/railwaycat/homebrew-emacsmacport/blob/master/docs/emacs-start-helpers.md
For an Emacs.app CLI starter, see: https://gist.github.com/4043945
brew tap d12frosted/emacs-plusInstall pre-build binaries. It installs to Applications so doesn’t require further linking of app package there.
brew install --cask emacs-plus-appBuild from source - supports options for customization.
brew install emacs-plus
brew linkapps emacs-plusCreate alias to application folder (does’t work)
osascript -e "tell application \"Finder\" to make alias file to (POSIX file \"/usr/local/Cellar/emacs-plus/25.3/Emacs.app\") at POSIX file \"$HOME/Applications\""TODO: Try to modify following for Emacs
osascript <<END
set macvim to POSIX file "/usr/local/Cellar/macvim/7.3-61/MacVim.app"
set applications_folder to POSIX file "/Applications"
tell application "Finder"
make alias file to macvim at applications_folder
end tell
ENDosascript -e 'tell application "Finder" to make alias file to posix file "/usr/local/opt/emacs-plus@30/Emacs.app" at POSIX file "/Applications" with properties {name:"Emacs.app"}'Install Suorce Code Pro font:
brew tap caskroom/fonts
brew cask install font-source-code-proBut the problem is that it is installed into user’s library
$HOME/Library/Fonts and not system wide. So other users
doesn’t see this font and also can’t install it because brew
says they are already installed.
Emacs.app actually launches using a ruby script. As a result, MacOS Catalina uses the permissions set for ruby, not the permissions for Emacs.app. Open General Settings -> Security & Privacy -> Privacy, select Full Disk Access in the left pane, then click + and add /usr/bin/ruby to resolve your issue.
/usr is hidden by default on MacOS but you can toggle visibility in Finder by using Shift+Command+Period
Emacs for init.el in
$XDG_CONFIG_HOME/emacs.
It seems that Solarized Emacs from melpa doest’t behave correctly in terminal. It is mentioned in this discussion: Reddit It seems there is heavy workaround for that: Reddit
So install it manually - clone following repo:
https://github.com/sellout/emacs-color-theme-solarized
to ~/.emacs.d and configure as described on home
page.
M-x package-install <RET> "package-name" <RET>
(tool-bar-mode -1)
(linum-on)
or M-x linum-mode
(setq custom-file (expand-file-name "custom.el" user-emacs-directory))
;; or (load custom-file :noerror)
(while (file-exists-p custom-file)
load custom-file)
;; Backup & Auto save files
(setq backup-directory-alist '(("." . "~/.emacs.d/saves")))
;; (setq auto-save-default nil)