Questions tagged [osx]

for questions about graphical and terminal versions of Emacs on macOS operating system. Please specify which package of Emacs for macOS you are using!

Filter by
Sorted by
Tagged with
106
votes
4answers
46k views

What is the difference between Aquamacs and other Mac versions of Emacs?

Macintosh users have several choices of pre-built Emacs. I am aware of the following versions: YAMAMOTO Mitsuharu's Emacs Mac Port David Caldwell's Emacs for Mac OS X Vincent Goulet's Emacs Modified ...
93
votes
3answers
32k views

How to Restore File System Access in macOS Catalina

I updated to macOS Catalina which requires the user through pop-ups to allow any app trying to access the file system for the first time. No such pop-up is appearing for Emacs. Running the script ...
31
votes
7answers
19k views

Copy text from Emacs to OS X clipboard

When I run Emacs in a text terminal instead of the normal GUI mode, I can copy in Emacs by activating the start of a region with C-SPC, and then select what I want, and then do M-w. Is there any way ...
31
votes
3answers
23k views

How to set up elpy to use python3?

When setting up my emacs for a new work environment, I am unable to get the elpy configuration to correctly use python 3. I have installed all of the required packages in /usr/local/bin and have ...
26
votes
2answers
4k views

Org Mode link to open directory in Dired

I'd like to have a link like [[file:~/projects][Projects]] open directly in Dired rather than Finder (I'm on a Mac), which is what it does now. Is there a way? (Of course there's a way. It's ...
25
votes
2answers
6k views

Why can't I list the contents of Desktop on macos using dired?

When I do C-x C-f on ~/Desktop/ in macos Catalina, I get the following error. Listing directory failed but 'access-file' worked I can list the directory for just ~. I'm new to Emacs and know little ...
25
votes
5answers
9k views

Emacsdaemon and Emacsclient on Mac

OS: OS X 10.9.5, Mavericks GNU Emacs 24.3.1 (x86_64-apple-darwin13.1.0, Carbon Version 1.6.0 AppKit 1265.19) of 2014-04-03 on Rainers-MacBook-Pro-3.local I installed emacs via homebrew from ...
24
votes
6answers
18k views

Emacs and command line $PATH disagreements on OSX

Having some issues with PATH settings on Emacs that are affecting my Haskell environment: I'm using ZSH, and when I go to the command line and call echo $PATH, it returns: /Users/g/Library/Haskell/...
23
votes
2answers
12k views

Using conda environments in emacs

What is the best way to use conda environmets using emacs as a Python IDE? I have got different conda environments while programming in Python: $ conda info -e # conda environments: # django ...
22
votes
2answers
6k views

set-mark-command (C-SPC) not recognised/broken

I would like to know how to start troubleshooting the following: C-SPC is not doing anything. It's not appearing in the mini-buffer when I type it but when I look at M-x set-mark-commandit's showing ...
20
votes
5answers
25k views

how install emacs 26 (or whatever latest ver) on mac

Someone (in another SE answer) mentioned a feature thats only available in 26, so I guess now I gotta upgrade. How do you install emacs 26 on macOS Sierra? What I tried: Googled how install emacs ...
17
votes
3answers
21k views

emacs on terminal does not recognise option as alt-key on mac

I am on a mac and I am running emacs 24.4.1, but I have the same problem also with 22.1.1. When I open mac on a terminal on the remote host, it does not recognise option key (alt) like the meta key. I ...
16
votes
3answers
9k views

Failed to download 'gnu' archive

I tried to install emacs and in an attempt to install MELPA, tried: (this is my init.el file) (package-initialize) (add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")) (add-to-...
13
votes
4answers
949 views

Make a new frame with only mode-line

I want to create a new frame that contains nothing but the mode-line. Especially not a file buffer. Why do I need this? I use org-mode's clocking to time my work. Org-mode displays the timer for the ...
13
votes
2answers
3k views

Compile emacs with xwidget under OSX?

How do I compile Emacs with xwidget under OSX? When I tried to run ./configure --prefix=$HOME/emacs-xwidgets --with-x-toolkit=gtk3 --with-xwidgets I get an error configure: error: xwidgets requested ...
12
votes
1answer
2k views

Emacs and OS X Menu Bar

Been looking for a solution to this for a while now. On OS X minors mode fill the menu bar with useless menu items. Here's a screenshot: If you can't tell, Emacs menu items are blocking the rest of ...
11
votes
4answers
5k views

Finder of MacOS Catalina cannot open a file with Emacs

After upgrading to macOS Catalina, Emacs (v26.3 from GNU Emacs for Mac OS X) works very strange. Without Emacs already running, Finder can open a file with Emacs as usual. But once Emacs.app is ...
11
votes
1answer
1k views

Cocoa Emacs 24.5 Font Issues (Inconsolata-dz)

I am trying to set [Inconsolata-dz][1] as my default font to Emacs. Regular Inconsolata works fine, but the dz version is not working properly. Most functions I use keep throwing this error (followed ...
11
votes
1answer
2k views

TRAMP is unbearably slow (OSX, ssh)

I have always found TRAMP to be crazy slow (5+ secs to fetch a directory listing) so I've avoided it for years. Time to figure out what is going on. I'm always connecting via ssh, using declarations ...
10
votes
2answers
24k views

How to start Emacs from the Terminal window as a GUI application (macOS)

I've installed Emacs via Homebrew. The version that got installed is 25.3.1. It was installed as the file whose full path is /usr/local/bin/emacs. When I execute emacs at a Terminal window, Emacs ...
10
votes
1answer
4k views

OS X emacs: difference between X11 vs NS vs Cocoa?

I believe, there are three ways to build emacs on osx --- x11, ns (nextstep?), and cocoa. Can anyone explain what the build options mean / the difference between these three are?
10
votes
3answers
5k views

For MacOS: how to bind left and right option keys separately?

Using Gnu Emacs in MacOS "El Capitan". Question: How do I bind the right option key to control but keep the left option key bound to option? Background: I found that even with caps_lock as ...
9
votes
4answers
985 views

Delete files to Trash on OS X

Is there a best, most future-proof method of setting emacs on OS X to delete files to the trash? I tried the instructions here: (setq delete-by-moving-to-trash t) (defun system-move-file-to-trash (...
9
votes
2answers
4k views

Why aquamacs does not read ~/.emacs.d/init.el?

I have some customisation in my ~/.emacs.d/init.el. My command line emacs can pick up the init.el as expected. However Aquamacs does not seem to read the file at all. Here is the buffer of the *...
9
votes
1answer
6k views

How can I set Emacs up for iOS development with Swift?

I'm going to be doing a bit of iOS work soon, using Swift (yay!). Unfortunately, this usually involves xcode (boo!). How can I set Emacs up to build iOS apps with Swift? Ideally, they would run on ...
8
votes
8answers
9k views

Install Pdf-Tools on Emacs MacOSX

Aim I would like to get PDF Tools installed on my GUI Emacs on MacOSX (version 25.0.50 installed via Homebrew on MacOSX 10.10.2) because the README says it's possible. Setup I installed poppler and ...
8
votes
1answer
1k views

how to disable command-h hide in Emacs Mac Port (railwaycat)?

I run Emacs on Mac OSX, I'm trying to switch from Emacs for Mac OSX to Emacs Mac Port. I'm having some trouble with my keybindings. For example, I'm trying to bind command-h to replace-string. (...
8
votes
5answers
2k views

Generate mouse-2 event from MacBook trackpad

I have Emacs.app version 24.5 (9.0) on a MacBook with Mac OS X 10.11.3 (15D21). How can I generate mouse-2 from my MacBook's trackpad? I've googled and found references to mac-emulate-three-button-...
8
votes
2answers
4k views

How can I adjust the fixed-width of a Neotree buffer?

Using emacs 24, when I try to use the Neotree package I am having issues with modifying the fixed-width of the window. I believe I have found the responsible chunk of lisp, but changing the value ...
8
votes
4answers
2k views

Copy/paste between SSH terminal Emacs and macOS

Suppose you are working in macOS, and you decide to SSH into a Linux box and fire up terminal Emacs. How do you copy and paste between macOS and your SSH terminal-Emacs? Copying and pasting between ...
8
votes
1answer
390 views

Process input seems buggy in Emacs on OS X

I have a process that I'm trying to send input to on OS X. I'm using Emacs' builtin functions for doing this: process-send-string and process-send-region. However, it seems that there are issues when ...
7
votes
3answers
3k views

How to sort directories first in dired?

I add (setq dired-listing-switches "-lXGh --group-directories-first") in my init.el But when I go into dired mode. ls does not support --dired; see ‘dired-use-ls-dired’ for more details. insert-...
7
votes
3answers
3k views

How can I retrieve an HTTPS URL on Mac OS X without warnings about an untrusted authority?

The following code should in principle return the contents of https://badssl.com (with-current-buffer (url-retrieve-synchronously "https://badssl.com") (buffer-string)) But with my GNU Emacs ...
7
votes
3answers
3k views

How to make terminal/shell spawned inside Emacs running on a Mac inherit the environment variables of the native terminal?

The terminal natively on Mac i.e. spawned through Spotlight or Launchpad, adopts the desired environment variables including the customization in ~/.bash_profile. But when I run Emacs (Emacs.app taken ...
7
votes
3answers
2k views

How can I send Super from my Mac to my Emacs instance?

I run emacs in two ways: One as a Mac OS X executable, built from source, and the other as a Linux executable using the Lucid toolkit, in daemon mode, connected to using a graphical emacscient using ...
7
votes
1answer
1k views

Emacs unable to load imagemagick?

I'm on a Mac and am having problems with Emacs and libmagick. Right now, Emacs exits and prints: Library not loaded: /usr/local/opt/imagemagick/lib/libMagickWand-6.Q16.2.dylib Referenced from: ...
7
votes
2answers
6k views

How can I run Emacs 24.x app on Mac OS X in daemon mode

I want to run the Emacs.app in daemon mode on Mac OS X. I can run emacs in daemon mode via the terminal, but instructions for running the app in a client-server pattern do not work (e.g.: http://...
7
votes
0answers
403 views

How to get Emacs to use the Mac system-level spell correction capabilities?

Mac OSX has autocorrect for spelling that: Doesn't require pressing any buttons to make a retroactive change. Doesn't require manually inputting these corrections/abbrevs. I want to get this same ...
6
votes
3answers
623 views

file-notify support on OSX

Is Notifications on File Changes supported on Mac OS X? I can't seem to find any documentation about how to do this anywhere.
6
votes
1answer
238 views

How do I keep Mac Emacs from trapping M-`?

I want to use the command key on my Mac as the meta key, so I customize ns-command-modifier. But I also want to still use ⌘-` to cycle through all the windows in Emacs - just like in all other Mac ...
6
votes
2answers
1k views

macOS tab feature breaks Emacs new frame behavior; a simple fix?

Prior to macOS Sierra I would use C-x 5 2 to create a separate frame which was created in an OS X window so that there were now two windows. This is using the latest EmacsForOSX version straight out ...
6
votes
2answers
887 views

Passing Alt+letter keybindings through to OSX?

Is there a way to tell Emacs to ignore a certain key binding and pass it to the OS unmodified? Eg. I am typing German from time to time and use Alt+u o to type ö in OS X apps. With Alt set to Meta I ...
6
votes
3answers
1k views

Why exec-path doesn't contain /usr/local/bin while /etc/paths already contains it?

Emacs 24.5.1 on OS X 10.11.1. This is the content of /etc/paths: /usr/local/bin /usr/bin /bin /usr/sbin /sbin This is the value of exec-path: ("/usr/bin" "/bin" "/usr/sbin" "/sbin" "/...
6
votes
1answer
462 views

Ragged menu in company-mode

I am using emacs-mac-port 24.4 on OSX 10.10. My company-mode drop-down menu is ugly. The unicode symbols in it are not the same width, which results in a ragged menu. The left image is with Monaco, ...
6
votes
2answers
5k views

Open an empty, brand new file in a new Emacs window, from terminal

I work on a Mac 10.9.5 and use Emacs 24.4 (installed with macports). This question is related to https://stackoverflow.com/questions/27778836/customizing-emacs-open-new-files-tabs-and-properly-...
5
votes
2answers
795 views

OSX: Switching to virtual desktop doesn't focus Emacs

I have keyboard shortcuts set up to switch to virtual desktops with Ctrl-n. When I switch to a desktop, the "front-most" app in that window becomes focused. But not for Emacs. Another, perhaps ...
5
votes
1answer
4k views

How do I use Mac/OSX key bindings with Spacemacs?

I want to use Mac CMD+C for copy and CMD+V for paste in Spacemacs but I think it redefined CMD to Meta. How do I change this mapping behavior? I found mac-key-mode but that package seems old and I ...
5
votes
3answers
2k views

locale when launching Emacs.app on OS X

I'm running OS X Yosemite and Emacs 24.3 from Homebrew. The locale setting for my user is: LANG="en_AU.UTF-8" LC_COLLATE="en_AU.UTF-8" LC_CTYPE="en_AU.UTF-8" LC_MESSAGES="en_AU.UTF-8" LC_MONETARY="...
5
votes
1answer
2k views

Emacs Mac OSX after upgrade to 26.2 launches only in `-nw` mode

I upgraded to Emacs 26.2 on my Mac OSX Sierra instance via "brew". After the upgrade, the emacs command will not open a new "GUI window", i.e. it runs as if I passed the -nw args or ran it from an ...
5
votes
1answer
978 views

OS X and Daemon Mode

I am using the railwaycat brew install version of emacs. 24.5.1 I have the following alias in my .bashrc: alias edit="emacsclient -a '' -nw" I also have $EDITOR set to the same command. If I ...

1
2 3 4 5
8