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
0 votes
1 answer
54 views

Why is Doom Emacs GUI not accepting keyboard input?

Noob question. I downloaded Doom Emacs following the installation instructions in the documentation. Now when I run the emacs command, it opens up the Doom Emacs window. Unfortunately, as I try ...
Parker Spitzer's user avatar
0 votes
1 answer
24 views

Is there a cross platform way of accessing the GUI clipboard from emacs lisp?

I run emacs with a common configuration on osx and linux. I have some custom functions that need to get access to the GUI clipboard. I find interacting with the clipboard a bit of pain - so I've ...
Att Righ's user avatar
  • 725
0 votes
1 answer
38 views

Use MacOS semantics for copy-paste

I use Emacs on MacOS, installed by homebrew: % ls -l /opt/homebrew/bin/emacs lrwxr-xr-x 1 kwilliams admin 44 Jan 31 2023 /opt/homebrew/bin/emacs@ -> /Applications/Emacs.app/Contents/MacOS/Emacs ...
Ken Williams's user avatar
1 vote
0 answers
15 views

Initialization not liking whitespace mode after upgrading to 29.1?

I have the following configuration for whitespace mode in my .emacs file: (require 'whitespace) (setq whitespace-style '(trailing lines indentation space-before-tab space-after-tab) whitespace-...
Meng Lu's user avatar
  • 163
0 votes
1 answer
151 views

Why is getenv not working to read an environment variable in my macOS machine?

I am using macOS and vanilla Emacs. In my .zshrc file I have the following: export OPENAI_API_KEY=my-key The setting of the environment variable works as expected on the terminal (iTerm2): ➜ echo $...
Pedro Delfino's user avatar
1 vote
1 answer
26 views

How to recover a runaway emacs?

Sometimes I'll open a large structured files (say, JSON) using json-mode, but the contents are malformed in some way (or something) and my Emacs session will suddenly spike my CPU to 100% and become ...
Colin Fraizer's user avatar
1 vote
2 answers
45 views

Why did C-SPC and C-M-SPC suddenly stopped working while M-h still works?

I have been comfortably using Emacs in MacOS 13.4.1 (M1 architecture) for a while. However, a few days ago, using the default keybinding of C-SPC for set-mark-command simply stopped working. Same for ...
Pedro Delfino's user avatar
0 votes
0 answers
19 views

macos, terminal emacs overwrite ui emacs' buffer history (and probably other things)

I am a macos & spacemacs user and installed my emacs through https://emacsformacosx.com/. For UI based emacs I just click on the emacs icon. For terminal I run this command: alias emacs='$(/...
spacegoing's user avatar
0 votes
1 answer
75 views

Emacs is not running processes as arm process on m1 mac, rather it seems to x86 emulation? Can I make everything native?

My emacs seems to be spawning processes using x86 emuation, which then breaks certain python packages since binary modules that I install outside of emacs are for x86. A workaround I found was to ...
Att Righ's user avatar
  • 725
0 votes
0 answers
22 views

ispell on macOS shows limited spelling options

I use Emacs both on Linux Mint and macOS. I use iSpell on both. On Linux, when I check the region, I have around 20 options for a misspelled word; on macOS, the same word will only display 2 or 3 ...
Emax2020's user avatar
0 votes
1 answer
87 views

How can I use additional modifiers with terminal Emacs on MacOS?

I currently have (setq ns-function-modifier 'hyper) and it works perfectly fine on my GUI Emacs on MacOS, but it becomes a problem in terminal emacs, where it doesn't recognize the key. I was ...
user129393192's user avatar
0 votes
0 answers
77 views

Problems enabling pdf-tools continuous-scroll with quelpa

My goal is to use org-pdftools as described in this blogpost. I started by trying to make pdf-tools work with continuous scrolling, but I'm running into various problems. It is getting way complicated ...
vpk's user avatar
  • 105
1 vote
1 answer
56 views

Emacs Mac port - double-click title bar to maximize

When running the GNU Emacs on Mac OS (either from Emacs for OS X or from emacs-app on MacPorts) when I double-click the title bar, first the window maximizes vertically. When I double-click it again, ...
massysett's user avatar
  • 111
3 votes
5 answers
154 views

__PYTHON_EL_eval_file prints in interpreter when sending python file from buffer using C-x C-l

Whenever I send the a Python buffer to the interpreter via C-x C-l it prints the file eval call as shown below. While it does print the correct output, it's a bit annoying to see it every time and I'd ...
Ricardo's user avatar
  • 131
1 vote
1 answer
68 views

lowercase `s` as prefix in `describe-bindings`

[MacOS, running 28.2 from emacsformacos.com] When I do describe-bindings I see that the "Global Bindings" includes a bunch of bindings with the prefix s - not S for "Shift". What ...
davidbak's user avatar
  • 113
0 votes
1 answer
43 views

Mac restart loses buffer state silently

I installed 28.2 on Monterey via Homebrew (as a cask). I have desktop-save-mode set; auto-save-* options are all default. Recently, I restarted the computer for updates; apparently I had somehow not ...
Nathan Tuggy's user avatar
0 votes
0 answers
26 views

When running `term` in standalone emacs on OSX, how can I copy output?

This question maybe sounds a bit strange, but I can't for the life of me work out how to copy output from term when it is running in the standalone version ("standalone" as in when emacs ...
Fergie's user avatar
  • 193
2 votes
0 answers
331 views

tell lsp-mode not to look for pyright

I'm trying to add type checking and code completion for python. I'm using Emacs 28.2. I installed pyright using brew (brew install pyright) and when I open a python file, I see: Unable to find server ...
David J.'s user avatar
  • 153
0 votes
1 answer
52 views

can't run shell on emacs for osx

When I run M-x shell, I see the following warning (and no shell): Process shell exited abnormally with code 127 I freshly installed emacs v. 28.2 for osx. I put my stuff in my .emacs file, but I ...
David J.'s user avatar
  • 153
0 votes
0 answers
110 views

Emacs 28.2 does not open from finder/dock on OS X Monterey

I downloaded Emacs 28.2 (released 2022-09-12) for OS X from here. When I try to open it from Spotlight search or the dock, it sometimes bounces, sometimes hangs, but never opens. I can open it from ...
dfrankow's user avatar
  • 111
0 votes
1 answer
386 views

How to prevent Emacs from native-compiling certain packages?

I am trying to prevent emacs-jupyter package from native compilation. There is a known bug that breaks the package when native compiled. [1] I can manually delete the eln files in eln-cache dir and ...
Hamza Yerlikaya's user avatar
0 votes
0 answers
69 views

What will be the practical implications of trying EXWM in my macOS machine concerning the native macOS applications?

I have been using a Macbook Air M1 for professional reasons and would like to amplify Emacs in my life. I have been searching for the introduction of EXWM in my workflow. Unfortunately, as I started ...
Pedro Delfino's user avatar
0 votes
0 answers
166 views

Why can't EXWM manage native macOS applications?

I have been using a Macbook Air M1 for professional reasons and I would like to amplify Emacs in my life. One thing I have been searching for is the introduction of EXWM in my workflow. Unfortunately, ...
Pedro Delfino's user avatar
0 votes
0 answers
32 views

Visit New File doesn't create new directories

Maybe I am completely misremembering but I am sure that Emacs used to create missing directories when using Visit New File command. Let say that ~/Documents exists. And I want to create a new file in ...
mislyde_alfabetisk's user avatar
0 votes
0 answers
47 views

emacs unable to open PDF files in Preview: "permission denied"

This is not an emacs problem so far as I'm aware, and only occurred after I upgraded from macOS Catalina 10.15.? to 10.15.7. Any help resolving this issue is greatly appreciated. I'm using helm-bibtex ...
bashfuloctopus's user avatar
1 vote
0 answers
41 views

Does webrender in emacs.ng not work on MacOS

I am trying out emacs.ng and I am specifically looking to render graphics (webpage) images in emacs. So, I wanted to try webrender. However, after ./config --with-webrender I get errors due to ...
intel_chris's user avatar
1 vote
1 answer
2k views

Building emacs 29 from repository on M1 macOS with native compilation

I did brew install libgccjit and then I did make configure="--with-native-compilation" and it died with: checking for libgccjit.h... yes configure: error: The installed libgccjit failed to ...
pedz's user avatar
  • 365
0 votes
2 answers
85 views

Orgmode: opening linked file with dedicated application (on mac)

In my org file I've got a link to my file.docx file defined like that: [[file:///Users/aaa/file.docx][file.docx]] When I click on the link file.docx instead word opening, in the Messages buffer I'm ...
user1146081's user avatar
0 votes
0 answers
43 views

Can I display svg in emacs on mac / osx? [duplicate]

I briefly tried to display svg images in emacs on mac. Supposedly emacs has svg support which requires on librsvg2. But I get Cannot display image: (Invalid image type ‘svg’) when I run M-x image-...
Att Righ's user avatar
  • 725
19 votes
4 answers
7k views

Emacs 28.2 error in macOS Ventura: `image-type: Invalid image type ‘svg’`

since upgrading to macOS Ventura, my Emacs 28.2 installation throws the error message image-type: Invalid image type ‘svg’ at the startup of Emacs. M-: (image-type-available-p 'svg) RET returns t. ...
pahohu's user avatar
  • 191
0 votes
2 answers
500 views

Using Emacs.app when building from source (Mac OS)

I've built Emacs from source on MacOS (12.4, M1) and it works when I execute the binary from /usr/local/bin/emacs, but I can't open Emacs from Emacs.app. For example: mv ~/emacs/nextstep/Emacs.app /...
treeblah's user avatar
  • 123
0 votes
1 answer
131 views

Why can't I use flyspell-mode? Error: (Searching for program No such file or directory ispell)

I am using Emacs on a macOS Monterey 12.5 with M1 hardware. This is my init file. I used to use in a Linux (NixOS) machine this init file (or something very similar) without ever having a single ...
Pedro Delfino's user avatar
0 votes
1 answer
23 views

How to fix the installation of package clj-refactor?

I am using Emacs on a macOS Monterey 12.5 (M1 hardware). This is my config file. I am trying to install a package called clj-refactor for Clojure development. Following the instructions on the ...
Pedro Delfino's user avatar
2 votes
2 answers
161 views

How to give Emacs-started-by-icon-click the same environment as Emacs-started-from-Unix-shell?

On my Mac laptop, I can start Emacs in several ways, including (1) clicking on an icon on the dock, or (2) running % emacs from the Terminal app. These two ways of launching Emacs produce instances ...
kjo's user avatar
  • 3,155
0 votes
1 answer
69 views

How to get `Command + Control + *` like key bindings translate to `C-M-*` in terminal Emacs in Kitty on macOS?

The accepted answer of this question provides a way in terminal Emacs to get command(super) key bindings worked as M-*. The solution should work for every terminal. How to get Command + Control + */...
Saddle Point's user avatar
0 votes
2 answers
466 views

How to swap `super` and `meta` in terminal Emacs on macOS?

The accepted answer of this question provides a way in terminal Emacs to get command(super) key bindings worked as M-*. The solution should work for every terminal. How to swap the command (super) and ...
Saddle Point's user avatar
1 vote
1 answer
386 views

Cannot find emacs.app on M1 Mac with homebrew

I recently installed emacs on a M1 Mac. I have done this before on my previous M1 mac with brew: brew install emacs Usually, I would find the emacs.app file in the /opt/homebrew/Celler/emacs folder. ...
Vinn's user avatar
  • 283
1 vote
5 answers
966 views

How to swap `super` and `meta` in terminal Emacs in Kitty on macOS?

For example, when I press command + d, I want to run the default M-d command kill-word. But instead it runs S-d. How can I do that in terminal Emacs in Kitty terminal on macOS (I don't want to ...
Saddle Point's user avatar
0 votes
1 answer
65 views

Emacs on MacOS 12.5+: Commands failed with 127

I recently started working at a company that mandates we all use MacOS. I have installed emacs and would like to use my config, which leverages visual-regexp-steroids.el, but I am receiving an OS ...
clo_jur's user avatar
  • 101
0 votes
0 answers
59 views

Get cursor to jump briefly to open paren when I type close paren

Emacs on my computer at work behaves in the following way: When I type a close paren, the cursor briefly jumps to the matching open paren. I like this behavior, but I can't get Emacs on my Mac at home ...
Rodney Price's user avatar
0 votes
3 answers
351 views

Why can't I type things such as "?" and "/" in Emacs with my macOS running Brazilian Portuguese input but they do work outside of Emacs?

I have been using Emacs on a NixOS (Linux) machine running GNOME as a Desktop Environment. The hardware interface of this system is an American keyboard. Since I am Brazilian, it was necessary for me ...
Pedro Delfino's user avatar
1 vote
1 answer
255 views

How to use fonts for normal text for org-mode tables?

Since the Emacs version upgrade to version 28 org-mode tables have become very small in size. Their font size has been reduced. Is there a way to tell Emacs to use the default font for the tables? ...
Eminent's user avatar
  • 67
1 vote
1 answer
127 views

Why are Emacs Eshell and macOS default terminal showing different results for the same query on a program (SDKMAN) version?

I am using Emacs (config file) on macOS Monterey (12.5). There is something that I do not understand. After being queried on a specific version of the program called sdkman sdk, eshell and macOS ...
Pedro Delfino's user avatar
0 votes
3 answers
60 views

After package installation, why Emacs kept retrieving an error message on "Creating directory: Operation not supported" subsequent to normal behavior?

I was using this init file on a NixOS machine. It is important to note that parts of the file were written with use-package and other parts were a legacy from the classic imperative installation of ...
Pedro Delfino's user avatar
0 votes
0 answers
193 views

Mu fails to install and Mu4e fails to start: /usr/local/opt/emacs not present or broken

I upgraded mu and emacs and now mu4e stopped working. I removed Emacs with: brew uninstall --force emacs brew uninstall --force homebrew/cask/emacs and mu with: brew uninstall mu Then I installed ...
miguelmorin's user avatar
  • 1,761
1 vote
0 answers
60 views

How to start tide server in Emacs For Mac OS X?

In the .spacemacs file, typescript configuration layer is dotspacemacs-configuration-layers '( ┆(typescript :variables ┆ ┆ ┆ ┆javascript-backend 'tide ┆ ┆ ┆ ┆typescript-fmt-tool '...
Alpin Cleopatra's user avatar
0 votes
1 answer
465 views

"zsh:1: command not found: git" Emacs App on MacOS

My Emacs App used to work fine until today, it starts to complain that zsh:1: command not found: git git is installed on my computer at /usr/bin/git Other info: MacOS: Monterey Emacs: 27.2
xiaohan2012's user avatar
2 votes
0 answers
221 views

Org mode babel hangs with python C-c C-c

When I C-c C-c in a Python code block in Org mode: #+BEGIN_SRC python :results value :session a = 4 a + 13 #+END_SRC It hangs with a message: Warning (python): Your ‘python-shell-interpreter’ ...
Jay Lee's user avatar
  • 131
0 votes
1 answer
142 views

TRAMP and `projectile-ag`, `projectile-ripgrep` cause kernel panic and complete crash of Mac OS

I am using Emacs and TRAMP on a Mac to access a remote Git repo on a Linux machine. TRAMP is using the SSH protocol. projectile-find-file and routine editing works great. Projectile finds the .git ...
Peter Becich's user avatar
0 votes
1 answer
98 views

Emacs Daemon Multiple user on Mac best practices

I'm new to Emacs, so apologies if this is covered elsewhere. I'm running latest macOS 12.4; and downloaded emacs.app from emacsformacosx.com so I'm on Emacs 28.1-4 . I have an admin user, which I ...
NickR's user avatar
  • 101

1
2 3 4 5
10