Next: Build Emacs from Source on OSX, Up: Emacs on Mac OS [Index]
gnutls
(except on Mac OS 10.6 — Homebrew doesn’t work on 10.6 and I
don’t want to spend a lot of time compiling gnutls
on a platform that
is barely used). You can now use https urls in the package
configuration. Yay!
gnutls
on 10.8 and lower. Unfortunately the method of
downloading gnutls
(Homebrew) stopped working because the servers
stopped supporting old SSL versions and 10.8’s SSL libs aren’t new
enough. The Emacs 26.0.91-1 pretest is the last version that has
gnutls
on Mac OS 10.8.
Emacs.app
on Mac OS X. These are based on my personal experience of
using Emacs.app
for the past 10 years or so; there may be better ways,
but these work for me.
Emacs.app
from the command line with emacs
Call this script emacs
and put it somewhere in your
PATH
(~/bin
or
/usr/local/bin
):
#!/bin/sh /Applications/Emacs.app/Contents/MacOS/Emacs "$@"
emacsclient
emacsclient
binary is in your path:
ln -s /Applications/Emacs.app/Contents/MacOS/bin/emacsclient /usr/local/bin # or ~/bin if you prefer
ec
and put it somewhere in your PATH
(~/bin
or /usr/local/bin
):
#!/bin/sh which osascript > /dev/null 2>&1 && osascript -e 'tell application "Emacs" to activate' emacsclient -c "$@"
alias emacs=ec
or alias
emacsclient=ec
to your .bashrc
. Or just use
ec
directly.
mergetool
for git
.gitconfig
:
[merge] tool = ediff [mergetool "ediff"] cmd = emacs --eval \"(ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\")\"
emacsclient
, add this snippet
instead:
[merge] tool = ediff [mergetool "ediff"] cmd = emacsclient -c -a \"\" --eval \"(ediff-merge-files-with-ancestor \\\"$LOCAL\\\" \\\"$REMOTE\\\" \\\"$BASE\\\" nil \\\"$MERGED\\\")\"
The easiest way is to use the Customize interface: M-x customize-group RET ns RET
.
If you don’t like Customize and want to do it manually, the following variables control the modifier keys:
Each variable can be set to 'control
, 'meta
, 'alt
, 'super
, or 'hyper
.
In addition ns-alternative-modifier
(and ns-option-modifier
) can be set to
'none
, which lets it get interpreted by the OS so it can be used to input
special characters.
The ns-right-*
variables are set to 'left
by default which makes them the
same as their left
counterpart.
This site serves the binaries via SSL and while the binaries are not GPG signed, the application is code signed. You can verify the signature like this:
codesign -dvv /Applications/Emacs.app
Or, if you haven’t installed emacs yet, but have mounted the disk image:
codesign -dvv /Volumes/Emacs/Emacs.app
Look for the following in the output:
Authority=Developer ID Application: Galvanix Authority=Developer ID Certification Authority Authority=Apple Root CA
Galvanix
is my consulting partnership and is what I registered my Apple
developer account under. If you see that, the binary is intact.
Next: Build Emacs from Source on OSX, Up: Emacs on Mac OS [Index]