Skip to main content

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
0 answers
17 views

Emacs blanks whilst resizing on MacOS

Even when running with emacs -Q, the entire Emacs window turns white, with even the modeline disappearing, whilst the frame (macOS window) is being resized. Is there a workaround for this?
Samuel Martineau's user avatar
0 votes
0 answers
20 views

Emacs window starts below all other open windows

On MacOS, when I start emacs, the window appears below all the other open windows on my screen, eg terminal, notes, etc. I want it to open on top of all the other windows, not below them.
Sarah Duncan's user avatar
1 vote
1 answer
113 views

"brew install emacs" vs. "brew --cask install emacs"?

Since owning a MacBook Pro, I have used the homebrew cask of GNU Emacs (i.e., "Emacs for MacOS X"), which according to their web site, is plain GNU Emacs without any particular changes. ...
AnoE's user avatar
  • 450
0 votes
2 answers
46 views

How do I write a function to copy a region to the MacOS clipboard?

I'd like to be able to mark a region in a text buffer, hit an F-key, and have the contents of the region copied into the MacOS clipboard. From the shell you can do this by piping the text into the ...
Chap's user avatar
  • 187
1 vote
1 answer
64 views

Setting default font to Inconsolata doesn’t work in Emacs 29/macOS

Using macOS Sonoma on M1 Mac Mini and M1 Air. Emacs from https://emacsformacosx.com. I have Inconsolata installed in ~/Library/Fonts/, validated by Font Book. My .emacs calls up .emacs-custom.el, at ...
Simon Wright's user avatar
1 vote
0 answers
31 views

Frame freezes, but can still type & open new frame

I am running Emacs 29.3, installed via brew, on MacOS 14.4. Often (and this may have happened with earlier versions of both Emacs and MacOS; not sure), the current frame freezes. If this happens, ...
AnoE's user avatar
  • 450
0 votes
1 answer
36 views

Emacs PS printing problem

I'm running Emacs 29.2 on Mac OS 14.4 on an M1 Mini. I have a Brother HL-L8260CDW series printer. Normal print commands (print-buffer, print-region) work fine. What doesn't work are the ps-print... ...
PhilC's user avatar
  • 1
0 votes
1 answer
39 views

Weird characters when using emacs on a Mac

I've been recently using a Mac more (usually I use Linux). I've noticed that some special characters look different in emacs when using a Mac and in emacs when using Linux. Here is what it looks like ...
oneself's user avatar
  • 341
0 votes
1 answer
50 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,096
0 votes
1 answer
105 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
18 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
36 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
82 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
94 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
29 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
78 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
70 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
51 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
  • 217
0 votes
0 answers
40 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
655 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
59 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
127 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
23 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
2k 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
122 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
1 answer
268 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
30 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
120 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
1 vote
0 answers
137 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
  • 115
1 vote
1 answer
114 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
6 answers
370 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
118 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
27 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
  • 213
2 votes
0 answers
502 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
69 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
132 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
691 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
111 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
303 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
40 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
61 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
56 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
135 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
1k 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
198 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

1
2 3 4 5
10