Getting emacs working on OSX Monterey
security and permissions
- tags
- emacs
- osx
- homebrew
Contents
I recently got a new MacBook Pro. I still love my old Pixelbook, but I'm running too many docker containers on it and its slowing down my development time. In addition to the beautiful screen, zippy processor and charge it whenever you feel like it battery life, the speakers on the new MacBooks are mind blowing. But, of course we need emacs.
Also, ports and function keys. Finally.
Install homebrew
|
|
Then run the “next steps part”
Install emacs
|
|
The cmd-space emacs
to start the application.
Security settings
- Go to
System Preferences
Security
, then unlock to make changes- Enable the binary
- Then go to
Privacy
- Enable
Full Disk Access
for emacs
Fix Emacs.app
to get access prompts
There's a launcher script to figure out what version of the emacs binary to start up depending upon the architecture, which confuses OSX. We'll need to get rid of this in order to help OSX figure out what's happening.
In a shell:
|
|
Change caps lock and remove Mission Control hijacking
- Go to
System Preferences
- Select
Modifier Keys
- Change
Caps Lock
to beControl
- Go to
Mission Control
- Unset the
C-up
andC-down
so that emacs gets it.
Emacs specific settings
It's also useful to remap the Command
key into Meta
in the emacs
world, which you can do in your init.el
with:
|
|
Fonts
Another handy thing to do is to add fonts from homebrew
. This isn't
really necessary, but here for reference:
|
|
Conclusion
This is a nice machine.
Previously
Next