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
38 views

Why can't I open a file in browser from Emacs on macOS?

I have emacs installed with homebrew. I'm trying to open a file with: (condition-case ex (browse-url-default-browser (concat "file://" (buffer-file-name))) (error (message "Error:...
caisah's user avatar
  • 4,086
0 votes
1 answer
22 views

Problems Installing pdf-tools on MacOs - ARM64

I have problems getting pdf-tools to run on Emacs (from railwaycat) on MacOs - ARM64 i.e. on Apple Silicon. GNU Emacs 29.1 (build 1, aarch64-apple-darwin21.6.0, Carbon Version 165 AppKit 2113.6) of ...
Oliver Oppitz's user avatar
0 votes
0 answers
14 views

Reliable global-auto-revert-mode on OSX?

On Mac OSX, I have global-auto-revert-mode enabled. Sometimes I see buffers revert after a change on disk. However, that doesn't always happen, and I have to revert-buffer to see changes (for ...
Croad Langshan's user avatar
0 votes
0 answers
29 views

cannot use package-list-packages on macos

Problem: cannot install packages in Emacs what i have tried: I have a macbook pro m2 and installed Emacs using brew cask install and then installed Doom Emacs. Before that tried just using normal ...
nsg_2024's user avatar
2 votes
2 answers
72 views

Nordic characters rendered incorrectly in non-file buffers

I am having trouble with nordic characters (å, ä and ö) not rendering correctly in Emacs. In text files, they render correctly, but in dired and other non-file buffers (like counsel-find-file) they ...
najjt's user avatar
  • 33
2 votes
1 answer
88 views

Is desktop restore expected to override --no-window-system?

When I run emacs -nw (--no-window-system) emacs (v29.1 on macOS v13.6.1) initially begins running in the terminal window, with the terminal clearing and the modeline appearing at the bottom. Quite ...
cpcallen's user avatar
  • 213
0 votes
0 answers
17 views

emacsformacosx and ImageMagick

I am attempting to use ImageMagick with emacsformacosx 28.2. I have just installed ImageMagick with brew. Evaluating (image-type-available-p 'imagemagick) returns nil. Much of the advice I have seen ...
sgmoye's user avatar
  • 179
1 vote
0 answers
66 views

ispell breaks my org-mode headings folding/unfolding

As the title says, when I run M-x ispell when it reaches a word that is under an org mode heading it won't unfold the heading, so my cursor is on the actual heading and not the incorrect word and then ...
Kai Jenkins's user avatar
1 vote
0 answers
63 views

Why can't I ignore the right Meta key in Emacs 29.1 on MacOS?

I'm using GNU Emacs for MacOSX 29.1 under macOS Ventura, & I need to enter accented letters (é, à, &c.). Following the manual, wiki, & several articles, I used (setq ns-alternate-modifier '...
CoffeedAlice's user avatar
0 votes
1 answer
47 views

Remove gray horizontal line between titlebar with material theme on Mac OS X

I show in the image below a screenshot using Emacs 29.1 on Mac OS X with the material theme and the https://github.com/d12frosted/homebrew-emacs-plus port. You can see that there's a gray line drawn ...
cdd's user avatar
  • 207
0 votes
0 answers
32 views

How to run emacs (or aquamacs, if possible :-) ) in a window that plays nice with tiling window manager yabai?

I've just installed the tiling window manager yabai, but soon found that emacs/aquamacs windows don't tile like terminal or windows for most apps. Time was, emacs ran in a terminal window. Awkward, I ...
nspies's user avatar
  • 1
0 votes
1 answer
399 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
45 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
  • 775
0 votes
1 answer
94 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
21 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
865 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
29 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
80 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
182 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
  • 775
0 votes
0 answers
25 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
103 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
106 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
95 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
286 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
99 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
  • 203
2 votes
0 answers
440 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
  • 163
0 votes
1 answer
62 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
  • 163
0 votes
0 answers
123 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
583 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
93 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
252 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
36 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
55 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
51 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
3k 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
  • 375
0 votes
2 answers
114 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
45 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
  • 775
20 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
  • 301
0 votes
2 answers
900 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
165 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
28 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
177 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,227
0 votes
1 answer
92 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
647 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
772 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
  • 293
1 vote
5 answers
1k 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
81 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

1
2 3 4 5
10