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
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 ...
30
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 ...
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/...
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-...
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 ...
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 ...
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 ...
13
votes
4answers
948 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 ...
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 ...
4
votes
3answers
1k views

How to type Org Mode's `M-` bindings in Emacs for Mac?

I'm having a hell of a time with getting Org Mode's key bindings to work. I thought that maybe the difficulties I was having had to do with what this page describes, since I was using Emacs text-mode ...
1
vote
1answer
435 views

Startup script for term-mode

In the documentation for shell-mode: Emacs sends the new shell the contents of the file ~/.emacs_shellname as input, if it exists, where shellname is the name of the file that the shell was ...
3
votes
3answers
3k views

Accessing square bracket in Emacs with German Keyboard on Macbook with OS X

With the Germany keyboard layout you need to press ALT aka M to reach certain character one needs for programming C,C++, Java, JS, etc. For instance to reach square brackets [, ] you need to press M-5 ...
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 ...
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 ...
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 ...
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 ...
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 ...
5
votes
1answer
5k views

Conditional True color (24 bit color) support for iTerm2 and Terminal.app in OSX with Fish shell

I'd like to try and get to a similar setup that I have with N/Vim in OSX, whereby Truecolor support is enabled in iTerm2 (which supports 24bit colors) but disabled in the native Terminal app (which ...
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 ...
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://...
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 *...
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, ...
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="...
4
votes
1answer
1k views

A build of GUI Emacs for OS X that can display emoji?

Is there a build of GUI Emacs for Mac that can display emoji? I tried this and AquaEmacs but neither of them could display it.
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 ...
2
votes
1answer
1k views

Set 24-bit colors terminal (Truecolor) for Solarized theme on Mac

I am trying to get Solarized theme color correct in terminal by enabling truecolor on my Mac, following the instruction from Spacemaces: https://github.com/syl20bnr/spacemacs/wiki/Terminal. But I ...
7
votes
0answers
402 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 ...
5
votes
2answers
133 views

local keymap in mode-line doesn't work in terminal

I'm having trouble with getting local keymap:s to work in the mode-line, but only in terminals (with xterm-mouse-mode enabled). This applies to both the standard mode-line entries (like mode-line-...
4
votes
2answers
819 views

org-table alignment issues in osx

I am used to my tables aligning nicely when I hit C-c C-c in Linux. In Emacs for OS X (emacsforosx.com) this does not behave on my system. It works in Aquamacs.
4
votes
1answer
903 views

How can I use C-<left> C-<right> for backward/forard-word under MacOsX?

I tried the following to assign Ctrl-left/right for moving one word forward/backward, but none of them works: (global-set-key (kbd "<C-left>") 'backward-word) (global-set-key (kbd "<C-right&...
3
votes
2answers
1k views

How to disable copy on selection with evil-mode (Mac/24.4)?

This only occurs when I turn evil-mode on! Whenever I make a selection, either through evil or the mouse, the selection gets automatically copied into the clipboard. I have set (setq select-active-...
2
votes
1answer
944 views

Making command act as super in iTerm2

I've bound cmd-P in emacs to some function. It is working in emacs when I start the cocoa version but I can't make it work in console mode when running in iterm. I made iTerm2 ignore the keystroke ...
2
votes
1answer
461 views

How to insert special characters not on a US/UK keyboard?

At work I use a MacMini connected to an italian layout keyboard (please, look at the image) I've discovered that Emacs doesn't insert the characters @ and # when I use AltGr+ò and AltGr+à, ...
1
vote
1answer
180 views

Copy or paste between terminal emacs 26 and Mac apps

I am using terminal emacs a lot, and the method from Copy text from Emacs to OS X clipboard works for a long time. But after upgrading to Emacs 26, if I kill a string like "你好" from emacs, and paste ...
1
vote
1answer
146 views

In macOS, how to fix `command+option+key` changing `key` to a special character?

In macOS 10.13.5 running Emacs 26.1, key presses involving command+option are not producing the key sequences I expect. How can macOS and/or Emacs be configured to fix this? Examples: command+option+...
1
vote
1answer
293 views

How to set the dimensions of additional frames in Emacs / Aquamacs (OS X)

I'm using Aquamacs on OS X and have multiple monitors in my setup. I'd like for all my Aquamacs frames to open with a certain position and size. In fact, my problem is rather similar to this one on ...
1
vote
1answer
449 views

Windmove-mode: S-up and S-down becomes text selection instead of switching windows

I enabled windmove by running m-x windmove-default-keybindings. S-left and S-right work as expected when two windows are side by side. However when a frame is splitted vertically, I cannot use S-...
1
vote
1answer
51 views

How can select text in a single window in a multi-window configuration? [duplicate]

When I have two buffers open side by side in as terminal (as shown in the screenshot), I cannot simply select text in a single buffer for copy and paste purpose. The selection will span across them, ...
0
votes
0answers
121 views

Can emacs on Mac using native window system connect to an emacs server on a Linux system

At this point I believe I am using the emacs version on my Mac that is built by Homebrew and the "stock" emacs on Ubuntu 18.04. I set up emacs server on the Ubuntu host as it is described in Starting ...
0
votes
2answers
49 views

How to delete mu4e attachment on macOS

I want to delete a large attachment from a mu4e message. This thread is similar, except that the required altermime tool does not seem available on macOS (not on Homebrew and no results from an online ...
0
votes
0answers
97 views

Configure x-export-frames to take svg screenshots (Mac/OSX)

Using this reddit post as inspiration, I am trying to create a screenshot-svg command using the following config: (defun screenshot-svg () "Save a screenshot of the current frame as an SVG ...
0
votes
0answers
61 views

mac-mwheel-scroll screws centered-positon-mode when using mouse pad on a macbook laptop

I am able to scroll using navigation buttons and external mouse on a Mac with this code that keeps the cursor at a specific line at all times. I am using this code since it is much faster than ...
0
votes
2answers
743 views

Trouble setting up Emacs SLIME on PowerPC Mac

I've downloaded and installed Emacs 24.1 on my PowerPC Mac and it works perfectly. And I've just added the Clozure CL to it and that works perfectly too using this tutorial. Now, I want to use SLIME. ...
0
votes
1answer
354 views

Working Around the OS X Catalina Conflict with Emacs 26.3

I'm struggling to workaround the problem discussed in this post. I'm working through the accepted solution (which also references this post, and getting what I think is close, but not quite there. The ...