187
votes
Accepted
How to Restore File System Access in macOS Catalina
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 -> ...
40
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 ...
37
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-...
29
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 ...
28
votes
Accepted
Copy text from Emacs to OS X clipboard
The following just works, copied from here
(defun copy-from-osx ()
(shell-command-to-string "pbpaste"))
(defun paste-to-osx (text &optional push)
(let ((process-connection-type nil))
(...
27
votes
Accepted
Org Mode link to open directory in Dired
There are (at least) two ways. First, typing C-u C-c C-o on a link should force it to be opened in emacs, rather than in an external app. Second, you can permanently override the default behavior by ...
27
votes
Org Mode link to open directory in Dired
You can modify the link description as follows :
[[file+emacs:~/projects][Projects]]
It will open the link in Emacs with typing C-c C-o.
26
votes
Emacs and command line $PATH disagreements on OSX
You can also install exec-path-from-shell package and add this to your init file:
(exec-path-from-shell-initialize)
25
votes
What is the difference between Aquamacs and other Mac versions of Emacs?
A few factual corrections about Aquamacs. While it maintains its own source tree, it is very regularly merged with Emacs, and pretty much immediately so with every Emacs release. Aquamacs 3.1 came ...
23
votes
Accepted
emacs on terminal does not recognise option as alt-key on mac
This is a setting in Terminal.
In Terminal 2.5.1 the option is set differently than in the above comments:
In the main Terminal menu, choose "Preferences" to open a dialog. Click the "Profiles" icon ...
23
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 ...
23
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 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
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 ...
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
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
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 ....
13
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 ...
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 ...
12
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 ...
11
votes
What is the difference between Aquamacs and other Mac versions of Emacs?
I have tried all of the above options (even the tap recommended by Reiner in a comment above) by none have worked well for me (trackpad scrolling problems, hangings, etc.). I am quite happy, however, ...
10
votes
Accepted
org-table alignment issues in osx
While org-mode is a very flexible tool, it has some very hardcoded limitations in its core functionality. The one you're encountering is the reliance on a monospaced font (such as Andale Mono, Monaco ...
10
votes
Accepted
What's the fast way to navigate to MAC OSX "Finder"?
My way wasn't shown in the other thread: M-! open . RET.
open is a general OS X command which will cause the system to open a file or directory in the default application. . is the current directory....
10
votes
Accepted
Emacs and command line $PATH disagreements on OSX
This is an OSX annoying environment issue, the $PATH appearing in Emacs is coming from /etc/paths file, which then gets appended with whatever I've set in the shell. I added /Users/g/Library/Haskell/...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
osx × 412key-bindings × 57
spacemacs × 27
org-mode × 22
terminal-emacs × 22
init-file × 18
frames × 14
emacsclient × 13
gui-emacs × 12
python × 11
fonts × 11
debugging × 9
shell × 9
tramp × 8
term × 8
aquamacs × 8
latex × 7
keymap × 7
copy-paste × 7
environment × 7
path × 7
keyboard-layout × 7
build × 7
emacs-mac-port × 7
buffers × 6