198
votes
Accepted
How to Restore File System Access in macOS Catalina
Emacs.app actually launches using a ruby script. As a result, MacOS Catalina (or later, up to at least Ventura) uses the permissions set for ruby, not the permissions for Emacs.app. Open General ...
43
votes
Accepted
set-mark-command (C-SPC) not recognised/broken
System Preferences > Keyboard > Shortcuts > Input Sources > Select the previous input source and uncheck
saltycraig's tip on C-h k C-SPC did nothing when I typed it. So, thanks to Kaushal Modi for ...
38
votes
Copy text from Emacs to OS X clipboard
Copy from Emacs to OS X clipboard:
select region then M-| pbcopy RET
Paste from OS X clipboard to Emacs:
C-u M-| pbpaste RET (replaces current region if it exists)
Explanation:
M-| runs shell-...
32
votes
How to start Emacs from the Terminal window as a GUI application (macOS)
According to Emacswiki "Homebrew has Emacs 26.1 as of January 2019" and "Homebrew now recommends to use the cask version".
The message that Homebrew gives is "Please try the ...
27
votes
How to set up elpy to use python3?
You can conffigure elpy-rpc-python-command. If you want Python3 you can set it like this.
(setq elpy-rpc-python-command "python3")
Update
Create python3 virtualenv using virtualenvwrapper from ...
26
votes
Accepted
Using conda environments in emacs
I'd suggest using pyvenv library, it provides a neat interface to selecting a virtual env among several alternatives updating interpreter and library paths. You will need to alter WORKON_HOME variable ...
20
votes
Failed to download 'gnu' archive
Add the following before package-initialize:
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
This is apparently a bug in Emacs 26.2 for MacOS. I found this solution in this
reddit thread.
17
votes
Accepted
how to disable command-h hide in Emacs Mac Port (railwaycat)?
I found the answer.
In Emacs Mac Port, ⌘h bypasses any Emacs keybindings and instead sends a "pass command to system" message to Mac OSX, which then hides the entire application.
This is a vestige ...
17
votes
Accepted
how install emacs 26 (or whatever latest ver) on mac
Have a look at brew emacs recipe options with brew info emacs. It has this option:
--devel
Install development version 26.0.90
To replace your current emacs, run:
brew unlink emacs
brew ...
16
votes
OS X emacs: difference between X11 vs NS vs Cocoa?
There are a number of Emacs versions for macOS, including:
The official Emacs on macOS is build using the "NS" port, also known as the "cocoa" port. As the name suggests, this port of Emacs ...
15
votes
emacs on terminal does not recognise option as alt-key on mac
I solve the problem with answer of ohruunuruus.
Maybe post a snapshot will be more easy to understand.
15
votes
How to remove the icon in the titlebar?
In emacs 26 you can set ns-use-proxy-icon
(setq ns-use-proxy-icon nil)
I was able to get a completely "clean" transparent title bar:
Download emacs 26 for mac, add the following config to your ....
14
votes
Install Pdf-Tools on Emacs MacOSX
For me, as of April 13, 2017, a reliable way to install pdf-tools on OS X (Mavericks/Sierra) is to use the following pdf-tools config and directions (in the comments):
;;; Install epdfinfo via 'brew ...
14
votes
Emacs 28.2 error in macOS Ventura: `image-type: Invalid image type ‘svg’`
This is an issue with the way Emacs initializes its image support on macOS Ventura. It's fixed on the current master branch, and will be in Emacs 29 when that is released.
See https://debbugs.gnu.org/...
13
votes
Why can't I list the contents of Desktop on macos using dired?
If you find the problem persists after granting Emacs full disk access:
from here on the problem remains because Emacs on MacOS gets launched indirectly, from a Ruby script. Your Emacs binary has full ...
12
votes
How to Restore File System Access in macOS Catalina
@Chris's answer also resolves a different problem for me (which had the same root cause): I'm recording it here to make this answer more findable.
I was getting the error "Listing directory failed ...
12
votes
Finder of MacOS Catalina cannot open a file with Emacs
If your Emacs is downloaded from https://emacsformacosx.com/, Emacs.app launches a binary Emacs.app/Contents/MacOS/Emacs-x86_64-10_14 via a ruby script Emacs.app/Contents/MacOS/Emacs.
Modify Emacs.app ...
11
votes
Emacs 28.2 error in macOS Ventura: `image-type: Invalid image type ‘svg’`
I tried a little workaround to see if it works - overriding image-type-available-p like this:
;; overriding image.el function image-type-available-p
(defun image-type-available-p (type)
"Return ...
10
votes
Accepted
Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)
Emacs doesn't allow fonts that have hyphens in them. I would rename the font to something that doesn't contain hyphens.
You can do this using ttx. For example, assuming you have a font named ...
10
votes
Accepted
For MacOS: how to bind left and right option keys separately?
You're almost there.
By default, the ns-XXXXX-modifier variables affect both the
left and right versions of the key. However, you can change the
right one with ns-right-XXXXX-modifier.
So: to set ...

Dan♦
- 32.6k
10
votes
how install emacs 26 (or whatever latest ver) on mac
A current (at time of this comment) way to install the GUI version of Emacs (26.2 at this time) on macOS Mojave is with
brew cask install emacs
This will install Emacs.app package in to /...
9
votes
Accepted
Delete files to Trash on OS X
The following is required:
(setq delete-by-moving-to-trash t)
(setq trash-directory "~/.Trash")
The function move-file-to-trash has three tests: (1) whether trash-directory is defined; (2) whether (...
9
votes
Accepted
How do I use Mac/OSX key bindings with Spacemacs?
Spacemacs has a "layer" called "osx" that should do everything you want.
https://github.com/syl20bnr/spacemacs/tree/master/layers/%2Bos/osx
Just put osx in the dotspacemacs-configuration-layers ...
8
votes
How to set up elpy to use python3?
You can solve this by modifying the python shell configuration from python to python3 in elpy-config
M-x elpy-config to enter the configuration page of elpy
if you scroll down you will see groups ...
8
votes
How can I retrieve an HTTPS URL on Mac OS X without warnings about an untrusted authority?
Add /private/etc/ssl/cert.pem to gnutls-trustfiles:
M-x customize-variable
Customize variable: gnutls-trustfiles
Select the last [INS]
Bundle filename: /private/etc/ssl/cert.pem
Select [ Apply and ...
8
votes
Using conda environments in emacs
I have recently incorporated Anaconda into my python development and was having similar problems setting up Emacs + flycheck + linters. This answer got me up and running, but I've modified it, since ...
8
votes
Emacs does not contain package "package"
OS-X comes with emacs 22, which is several years out of date. One easy way to get a current emacs is by downloading from http://emacsformacosx.com/. This will give you package.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
osx × 455key-bindings × 64
spacemacs × 28
terminal-emacs × 27
org-mode × 24
init-file × 19
frames × 15
emacsclient × 13
python × 12
fonts × 12
gui-emacs × 12
shell × 10
debugging × 9
term × 9
copy-paste × 9
environment × 9
tramp × 8
install × 8
build × 8
aquamacs × 8
latex × 7
dired × 7
keymap × 7
linux × 7
path × 7