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 ...
I found it. Apparently dired can't access icloud directories. My Desktop and Documents folders are sync'ed with icloud.
If anyone comes here curious as to how they can access Desktop, Documents, or Downloads, the answer is in the link above, for reference, but I'...
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)
M-| runs shell-command-on-region, which as the name implies pipes the current region to a shell command. C-u M-| does the same thing, but replaces the current region with the ...
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 pointing towards the OS level. Saved many hours of messing around with all my packages.
For completeness I run it as a GUI app (so will need to go and ...
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 adding an entry to the variable org-file-apps:
(add-to-list 'org-file-apps '(directory . emacs))
which tells org-mode to use dired for all directory links. ...
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 Cask for a better-supported Cocoa version".
I tried --with-cocoa myself in February 2019 and is not supported any more.
linkapps also doesn't work any more.
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 out the day Emacs 24.4 was released (and it incorporated all of Emacs 24.4 features and a subset of its bugs). Aquamacs has >10k regular users, is actively ...
You can conffigure elpy-rpc-python-command. If you want Python3 you can set it like this.
(setq elpy-rpc-python-command "python3")
Create python3 virtualenv using virtualenvwrapper from terminal
$ mkvirtualenv test -p /usr/bin/python3
and then install required packages
$ pip install rope jedi importmagic autopep8 flake8
Now go to 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 (it defaults to $HOME/.virtualenvs used by virtualenvwrapper).
(setenv "WORKON_HOME" "/Users/Pablo/anaconda/envs")
After that choose the ...
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 in the top of the dialog.
In the Profiles section, make sure there is a check in the checkbox called "Use Option as Meta key."
Have a look at brew emacs recipe options with brew info emacs. It has this option:
Install development version 26.0.90
To replace your current emacs, run:
brew unlink emacs
brew uninstall emacs
brew install emacs --devel --with-modules --with-cocoa --with-gnutls \
--with-librsvg --with-mailutils --with-imagemagick@6
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 of behavior from the old Carbon Emacs. To disable it, use this:
(setq mac-pass-command-to-system nil)
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 originates in Emacs for the NextSTEP operating system and has been the official Emacs GUI on macOS since Emacs 23.
Mitsuharu Yamamoto-san maintains the "Mac port" of ...
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 .emacs, and restart emacs.
(add-to-list 'default-frame-alist '(ns-transparent-titlebar . t))
(add-to-list 'default-frame-alist '(ns-appearance . dark)) ;; ...
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 install pdf-tools --HEAD' and then install the
;;; pdf-tools elisp via the use-package below. To upgrade the epdfinfo
;;; server, just do 'brew upgrade pdf-tools'...
@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 but 'access-file' worked" on ~/Downloads (and Documents, Desktop, and some others). I tried adding Emacs to System Preferences > Security & Privacy > Full ...
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, with Yamamoto Mitsuharu's fork, as mantained by railway's github page. It is up-to-date with respect to the official GNU version. Simply download the .dmg image ...
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 or Menlo to name a few ones your OS X system should come with) to display tables in an aligned fashion.
There are multiple options how you can solve it. If ...
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.
I don't do this very often, so I find it faster to type the above incantation than to write a function and map it somewhere. M-x open-in-finder would take ...
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/bin to the top of the /etc/paths file and it then worked fine.
Going into shell and calling echo $PATH in Emacs shows now: /Users/g/Library/Haskell/bin:/usr/...
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 Inconsolata-dz for Powerline.otf in your current working directory:
# Convert the font to ttx format (an xml-like font format)
ttx "Inconsolata-dz for Powerline.otf"
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 /Applications and setup links. You can launch Emacs via Spotlight or from terminal as expected.
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 disk access, but Ruby does not.
One way to get around this is to get the Ruby script out of the way, and replace it with a symlink to the correct binary for ...