Questions tagged [emacs]
GNU Emacs is an extensible, customizable, self-documenting real-time display editor. At the core of Emacs lies an Emacs Lisp interpreter, the language in which the majority of Emacs' built-in functionality and extensions are implemented. Also consider asking your question at emacs.stackexchange.com.
173 questions
0
votes
0
answers
33
views
Emacs on Mac file opening buffer switching behaviour
I am a very happy user of Emacs on Linux, and a far less happy one on Mac.
I can't seem to get one thing right: switching buffers - I can't fathom the behaviour of Emacs on Mac with Ctrl-x b. Looks ...
0
votes
0
answers
26
views
Emacs on Mac file opening behaviour
I am a very happy user of Emacs on Linux, and a far less happy one on Mac.
I can't seem to get one thing right: opening files from the command line, which I do with
open -a Emacs /some/file/path.txt
...
1
vote
1
answer
32
views
how to prevent alt+arrows from moving cursor to end/begin of a word
In emacs I mapped alt+<arrows> to switch windows but on macOS terminal it instead moves cursor to begin/end of a word. How to prevent this?
0
votes
0
answers
13
views
Maintain document state in Preview not working when PDF changed
I am using Emacs and AUCTeX on macOS Sonoma to modify PDFs that are open in Preview 11.0 when they are recompiled. However, I need to view parameters (page and view height/width) to remain the same ...
1
vote
1
answer
65
views
Hidden MacOS shortcuts: Control+v -> scrollDown; Control+y -> types 'd'
I just became aware of what I feel are 2 hidden macOS Monterey keyboard shortcuts when messing around in the Mac Notes app.
Control+v scrolls down a nondeterministic number of lines.
Control+y pastes ...
0
votes
1
answer
166
views
How to install Macaulay2 for Mac?
I'm trying to install Macaulay2 in Mac, Im trying to do what the manual says, but I'm stuck in step 4.
I write what the manual says but the terminal says function> and I don't know what to write ...
2
votes
1
answer
413
views
Emacs starts up without window focus in macOS Sonoma
I've been using Emacs For Mac OS X on macOS for quite a few years, and it's been working really well until I upgraded to macOS Sonoma (v14.1.1).
When starting Emacs now from the command line (from the ...
1
vote
0
answers
119
views
Karabiner Elements: How to bind "right_command + e" to open Emacs?
I've been trying to use Karabiner Elements to bind the "right_command + e" combination to open Emacs on my macOS. Here's the configuration snippet I originally used to bind the "...
2
votes
1
answer
218
views
How can I specify the window size for Emacs on a Mac?
I used to be able to launch Emacs version 28.1 on macOS from the command line in XQuartz terminal window like so:
/Applications/Emacs.app/Contents/MacOS/Emacs --geometry 109x65 &
After upgrading ...
6
votes
1
answer
4k
views
Emacs on Sonoma: "WARNING: Secure coding is not enabled for restorable state! Enable secure coding by implementing NSApplicationDelegate..."
When starting Emacs on the command line like so:
/Applications/Emacs.app/Contents/MacOS/Emacs ...
it prints this warning:
WARNING: Secure coding is not enabled for restorable state! Enable secure ...
0
votes
0
answers
193
views
Make EMACS control sequences work in Microsoft Outlook?
One of the reasons I like Apple's software is that I can use emacs control sequences (e.g. ^a to go to the start of the line) in practically any text object.
However, this does not work in Microsoft ...
0
votes
1
answer
133
views
DocView mode doesn't show pdf
I read in the manual "Document Viewing" page that DocView mode shows pdf files (since version 23, I found on the Internet), but my version 26 does not. It opens pdf documents always in ...
0
votes
0
answers
271
views
What would be the practical implications of trying EXWM (Emacs Window Manager) 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 ...
2
votes
1
answer
694
views
State of Native Support for Scheme and Common Lisp on Apple Silicon?
I tinker on and off with Scheme (usually R6RS rather than Racket), and with Common Lisp. Essentially all of this is from the command line and through Emacs with Geiser and SLIME.
Native support for ...
0
votes
0
answers
64
views
Why are the Emacs bindings to move around words (such as M-f (option-f) and M-b (option-b)) not working on bash terminal?
I am using macOS Monterey 12.5 on M1 hardware. In case this can be relevant, I am using an American keyboard with Brazilian Portuguese (ABNT2) as input.
Also, I am using a cool software Karabiner ...
2
votes
0
answers
427
views
Is there a way to define a hotkey via karabiner-elements for Emacs Anywhere instead of using the shortcut from Apple's System Preferences?
I really like a software program called Emacs Anywhere and I’m looking to understand how it works as a service in the keyboard shortcuts preference pane on macOS Monterey.
Currently, I am following ...
2
votes
2
answers
1k
views
How to have Emacs keybindings everywhere in Macbook Air M1 Monterey 12.5? Is tweaking ~/Library/KeyBindings/ the best approach?
I am new to macOS and a big fan of Emacs. I am trying to achieve Emacs keybindings everywhere.
Despite the fact that I have read multiple times on the web people stating that macOS was friendly and ...
0
votes
0
answers
18
views
How to create a hotkey that opens Emacs in MacOS? [duplicate]
I have just bought a MacBook Air for professional reasons and I am new to MacOS. Before that, I have been using Linux (Ubuntu and NixOS) for a long time.
I would like to define a hotkey to open my ...
0
votes
1
answer
227
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 ...
1
vote
0
answers
321
views
How to keep transparency on fullscreen windows?
I'm trying to put Emacs in transparency mode. It works, but only when its window is not on fullscreen mode:
But as soon as I fullscreen the window, it breaks it :
The reason I'm posting this here ...
1
vote
1
answer
132
views
Hot to call emacs within terminal.app from applescript when passing a file reference?
I have been trying to make the below script work in mac Catalina with emacs installed via homebrew.
on open location this_URL
set EC to "/usr/local/bin/emacsclient --no-wait "
set ...
1
vote
0
answers
73
views
GNU Emacs on Big Sur acting as if Control, Option keys sticky
I'm a longtime GNU Emacs and macOS (and GNU Emacs on macOS) user, on a US Gov't owned MacBook Pro (16-inch, 2019) running macOS 11.6.3 (Big Sur).
For the last few weeks, GUI versions of Emacs are ...
2
votes
2
answers
612
views
macOS core files: how can I enable them and can I enable them for specific applications?
I have found discussions on these sites about macOS core files but the ones I found are old and do not address a core file created by an application that is launched from Finder.
I would like to help ...
2
votes
1
answer
683
views
Disable Fn + C OSX Monterey using Karabiner elements
I'm an emacs user. I personalized my .emacs' file to uses Fn+C + C (C-c C-c)to evaluate buffers (more confortable for me); however, OSX Monterrey uses Fn+C to open Control Center, so I cannot run my ...
3
votes
2
answers
754
views
How to completely and mercilessly remove Emacs keybindings?
Not your average keybinding question...
Is there any way to completely and without mercy remove or unset the Emacs keybindings on the Mac?
After much research I come to you with a problem and what I ...
1
vote
1
answer
580
views
Disable all system fn+letter keyboard shortcuts
I have the fn key set up as the Meta key for Emacs. But recently Mac OS (both 12.0.1 and 12.1) has started gobbling one or two combinations of fn plus a letter key: most notably, fn+N opens ...
1
vote
0
answers
458
views
Emacs can't find latexmk
I've been using org-mode in Emacs for a while now; specifically, I've installed emacs-mac with brew install --cask emacs-mac and then installed Doom Emacs.
A problem I've consistently had with my ...
0
votes
1
answer
43
views
How to send `<menu>` key to iTerm?
I know that there is a setting, iTerm > Preferences > Profiles > Keys > Key Mappings.
But where can I find hexcode for Menu/App key that is present in Windows keyboards, so that I can use ...
2
votes
1
answer
522
views
No file descriptor left in emacs
I am using emacs on my mac book pro with Big Sur 11.2.3
And I frequently run into the issue of file descriptors
File watching not possible, no file descriptor left: 975
After several hours of ...
2
votes
1
answer
4k
views
Homebrew says I got the latest version of Emacs installed, but the emacs command indicates it's still the old version
I updated my emacs version using Homebrew. If I now execute
brew upgrade emacs
the following message appears:
emacs 27.2 already installed
However, when I execute
emacs --version
the following message ...
0
votes
0
answers
143
views
Certain apps on Mac OS Big Sur crash after upgrading from Catalina
After upgrading from Mac OS 10.15.x (Catalina), certain apps and audio plugins suddenly started crashing with memory allocation errors. Reinstalling the OS did nothing and my searches on the Internet ...
2
votes
0
answers
204
views
Switch Option Key behavior globally to match terminal "Meta" key functionality
I use/love emacs and I also love using emacs like navigation text in MacOS, e.g. "Meta-b" moves the cursor to the beginning of the last word. Most emacs navigation works by default including ...
3
votes
1
answer
376
views
How do I get text key binding "yankAndSelect" to work?
macOS's text input system has long supported custom keyboard shortcuts via ~/Library/KeyBindings/DefaultKeyBinding.dict. I have used this successfully for years to make text editing more Emacs-like, ...
1
vote
1
answer
2k
views
Mouse right click intermittently stops working on macOS
I am using macOS 10.15.4 "Catalina", and intermittently my mouse right click starts behaving like a mouse left click; i.e. no matter how I configure my mouse, I cannot get the right click (...
0
votes
0
answers
32
views
Keyboard shortcut to a Service is not respected when Emacs is open (Emacs takes precedence)
I defined the keyboard shortcut Cmd-Ctrl-5 to a Service via System Preferences -> Keyboard -> Shortcuts -> Services. It should work globally and indeed works well except for when Emacs is ...
1
vote
1
answer
452
views
Option-N and Option-P (What are they doing and how do I disable or rebind them?)
On Catalina 10.15.6 (and even on High Sierra), typing either Option-N or Option-P pops up a series of "quick looks" at all my current "application windows." But I am unable to find ...
14
votes
3
answers
2k
views
How to set default directory for Emacs 27.1 app?
I just upgraded Emacs to 27.1 using brew cask. One noticeable change is that when I launch the app and c-x c-f the directory is / instead of ~/.
This really bothers me, is there a way to change it ...
1
vote
0
answers
72
views
Emacs-like navigation to beginning/end of sentence in text
I think it is a really big advantage of macOS over other operating systems that it supports a lot of Emacs navigating keyboard shortcuts out of the box. (^ ControlP, ^ ControlN, ^ ControlK, ^ ControlY,...
1
vote
0
answers
38
views
How can I get emacs to see ZSH's environment variables when I open it from /Applications [duplicate]
When I launch emacs from ZSH, it works as desired. Specifically, it sees that my HOME directory is /Users/myname/Dropbox, so it looks for .emacs.d there.
Unfortunately, when double-click the emacs ...
3
votes
1
answer
132
views
"open" command starts separate Emacs.app processes, or none at all
I recently moved to a MacBook Pro with Catalina from a different MBP running Mojave. I use Emacs.app from https://emacsformacosx.com/. For all previous Mac OS versions, the command
open -a /...
0
votes
1
answer
62
views
trying to run FSF emacs in character based mode ( -nw ) on Catalina
After installing Catalina on my laptop emacs vanished so I installed the latest version from FSF. Running it in a window (gui mode) works fine but I can't get it to reliably work in character mode in ...
11
votes
3
answers
1k
views
Why emacs commands work everywhere on macOS?
I can use emacs commands everywhere on macOS, which is good.
But why?
For example, in forms in Safari, I can use ctl-a, ctl-k, etc...
I can use them in Note.app, too.
My guess is they are actually ...
0
votes
1
answer
659
views
Brew cask install emacs takes control of the emacs command line command
I'm currently using Homebrew to install both the command line version of Emacs and the GUI version of emacs, with the following commands:
brew install emacs
brew cask install emacs
When I first ...
5
votes
2
answers
8k
views
macOS emacs in the terminal (no GUI)
Since the update to macOS Catalina, I installed Emacs separately using brew cask install emacs. Now when I type emacs in Terminal, Emacs is opened in a separate window with a GUI (the Emacs.app?). How ...
1
vote
0
answers
280
views
Method to change macOS input source keyboard bindings?
Does anyone know how to change macOS keybindings quickly? I'm hoping to redefine the following keys:
iMac KB Key -> Keycode on macOS
CAPS LOCK -> Meta
Fn -> Ctrl
LeftCtrl ...
29
votes
4
answers
13k
views
Restore Access to File System for Emacs on MacOS Catalina
I upgraded to macOS Catalina and see that applications now need to be permitted to access the file system, even the shell running inside Terminal.
I work extensively in Emacs which seems to have ...
1
vote
1
answer
211
views
Mess with multiples Emacs distros (Homebrew)?
I have recently got a new copy of Emacs on a brand new macOS setup as follows, using the Homebrew package manager:
brew cask install emacs
I also wanted to try Emacs Mac Port, so I fired up my ...
0
votes
1
answer
148
views
`emacs` and `Emacs` start the same application?
I am trying to understand how the shell is interpreting emacs and Emacs, and where it finds the application.
I can launch emacs by running
bash
emacs &
or
Emacs &
in the terminal, and ...
5
votes
1
answer
1k
views
Command + Space no longer catchable
I can no longer use Command + Space inside iTerm2.
I have been using iTerm2 for years, and configured it so that the Command keys acts as the Alt key. I recently applied the security patch for macOS ...
1
vote
0
answers
105
views
Latest fink unable to install xemacs on High Sierra
I did a fresh install of fink 0.43.1 on a High Sierra system, then installed texlive and all of its prerequisites. That all works fine.
Then I try to add xemacs:
fink install xemacs
and I am met ...