Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
169 views

Left/right option keys reversed under Mojave on PC keyboard with switched option/command

I have Emacs 26.1 from emacsformacosx.com set up to use left option as meta, and to ignore right option, so as to leave it available for accented characters etc. It works fine on my MacBook Pro's ...
2
votes
1answer
52 views

Open homebrew version of emacs instead of Apple version

I installed emacs 26.1 via brew install emacs, but when I try to start emacs via command line, only the outdated Apple-supplied version (22.1.1) opens. However, emacs is apparently correctly linked: ...
1
vote
1answer
61 views

Key binding in iTerm2

I am trying to bind a shortcut to perform cut command in iTerm2. Obviously, cut is bound to Cmd + x, but I would also like it to be bound to Ctrl + w. I did this easily for paste by going to iTerm2 → ...
1
vote
0answers
26 views

Unable to make all .md files open in Emacs

I installed Emacs with brew brew install emacs --with-cocoa ln -s /usr/local/Cellar/emacs/25.3/Emacs.app /usr/local/bin/ ln -s /usr/local/Cellar/emacs/25.3/Emacs.app /Applications/ and added ...
0
votes
1answer
25 views

How can I configure Aquamacs auto-save?

Every so many typestrokes Aquamacs tries to auto-save. Unfortunately where it autp-saves is a folder that doesn't exist. The result is that it freezes for several seconds. How can I configure it - ...
1
vote
0answers
21 views

AppleScript that invokes Terminal tab already running Emacs

I have bound mailto: links to the following AppleScript, which simply lets you copy the To: address to the clipboard: on open location mailtostr try set rtnstr to display dialog "Approve ...
1
vote
0answers
15 views

Set default screen position for Emacs GUI app [duplicate]

I'm using the GUI version of Emacs installed using Homebrew-Cask. I launch it by searching into Spotlight, which as I understand is equivalent to opening it from the Applications directory. App ...
0
votes
1answer
31 views

Difference between using ⌘ - space vs 'open -a' in terminal?

I noticed a difference when compiling a latex document within emacs, but I think this is really a mac question. When I open emacs via ⌘ - space and then type C-c C-c, instead of compiling with ...
2
votes
1answer
22 views

Why do certain command key combinations not make it to remote screen sharing server?

Using MacOS 10.10.5 on a recent Macbook Air, I'm trying to use X-windows emacs on a remote Linux server via vnc. I have the Mac command key configured as the emacs 'Meta' key, and it works fine for ...
1
vote
1answer
442 views

How to disable lock-screen hotkey (Command-ctr-Q) in High Sierra?

I use the command-ctrl-Q key in emacs, but find that it is locking my screen on Mac OS X High Sierra. Checking the System Preferences in the Keyboard Shortcuts finds nothing to turn off. I'd rather ...
2
votes
0answers
21 views

GUI Emacs does not show up in Open With menu

Emacs is installed with brew cask install emacs-mac, which also moves it to Applications folder. Works fine. However it is not listed in Open With menu. If I choose Other... from Open With dialog, ...
3
votes
1answer
354 views

eMac G4 Recovery Mode with Windows Keyboard

I recently acquired an eMac G4, but I did not get an Apple keyboard with it. I need to restore it to factory settings, but cannot access recovery mode with my Windows keyboard. I've tried Alt+R, Ctrl+...
1
vote
1answer
428 views

Emacs GUI won't start when launched from the Terminal

When I type brew install emacs at the Terminal, the following message displays: Warning: emacs 25.3 is already installed However, when I type emacs & the only thing that happens is that the ...
1
vote
2answers
359 views

How do I make `Cmd` as `Meta` instead of `Option/Alt` key on `emacs` runs on terminal(with `-nw` option)

A lot of questions and articles about this but I can't find a one that works on my system. Modifying emacs configuration looks working on other people's but it doesn't work for me. like this (...
1
vote
2answers
76 views

How to optimise my script, a script for opening new a new emacs instance only if no instance is present

I use emacs and I have written a script which is half in bash and half in AppleScript in order to do the following (first I write the code and then the pseudocode). We assume that a emacs daemon is ...
1
vote
0answers
57 views

Make Aquamacs' windows zoom like ordinary Mac apps?

When I double-click on a window in Aquamacs, it keeps the same width but maximises its height. A second double-click maximises the width as well. A third double-click returns it to its original size ...
0
votes
2answers
2k views

ERROR: AUCTeX cannot find a working TeX distribution (macOS Sierra)

I have installed MacTex and GNU Emacs on my iMac. I have created a simple tex file (the one suggested here) and tried to run LaTeX on it by hitting C-c C-c, but the following message appeared: ...
2
votes
0answers
97 views

How do international users use readline shortcuts in the Terminal?

Readline is a library that enables Emacs-style shortcuts in the terminal (and other programs), such as Ctrl-A to jump to the start of the line, Meta-W to jump a word, Meta-B to jump a word back, etc. ...
3
votes
1answer
989 views

DefaultKeyBinding.dict: moveWordBackward: is not overridden on macOS Sierra

I've recently started using a new computer (actually a Hackintosh) with macOS Sierra. My previous development machine is still on El Capitan. In the process of setting up the new machine I've added ~/...
1
vote
1answer
251 views

How to use Emacs shortcut key in Mac OS?

I know Mac OS supports to some Emacs short-cut key to move cursor in text editor, e.g. Command + f/b/p/n to move cursor left/right/up/down, Command + v to page-down. In Emacs Meta + v is page-up, ...
0
votes
0answers
85 views

How can I repeatedly invoke Firefox for a URL from the Emacs *scratch* buffer?

In the Emacs shell buffer I can do: open -a Firefox.app http://www.google.com repeatedly and Firefox will open each time, showing the Google screen (I quit Firefox each time). If I have the ...
2
votes
0answers
406 views

How do you install Emacs on OS X from the console?

I'm new to OS X and need to install Emacs 24.5 and 25.1 using the console to test a package using Travis continuous integration (http://travis-ci.org). My .travis.yml file looks like this (also ...
0
votes
0answers
223 views

AppleScript GUI scripting, why does window index not exist?

I am hoping to learn how to do some GUI scripting in AppleScript because I want to control Emacs, an application that is not scriptable (as far as I know). So this works. It types "foo" into the ...
6
votes
2answers
3k views

Set PATH variable so that it is detected in all applications, even outside terminal. (El Captain)

My ~/etc/path looks as follows: /usr/local/bin /usr/bin /bin /usr/sbin /sbin The Problem: When I type echo $PATH into terminal, I get back: /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin And this ...
3
votes
1answer
75 views

El Capitan get current desktop name from bash

I am trying to write a bash script that needs some identifier of the current active desktop (I want my emacs-clients to connect to different servers depending on the active desktop). I have searched ...
11
votes
3answers
12k views

Update emacs that comes with OS X

Is there a way to update the emacs terminal editor that comes with OS X? I could remove the binaries and install Emacs using a dmg package, but the idea was to upgrade to a newer version with some ...
3
votes
3answers
1k views

How do I change the icon of Emacs installed via Homebrew?

I am aware of the "Get Info" process of changing icons, but when I change the icon of Emacs, nothing happens I installed Emacs with this command: brew install emacs --HEAD --with-cocoa When I run ...
1
vote
0answers
785 views

Text selection in terminal without mouse - moving cursor using arrow keys

I recently moved from a well-configured Ubuntu to Mac. I used Emacs for many years but I am too lazy to re-install it (and re-configure it). One of the useful features in Emacs shell is that you can ...
0
votes
1answer
203 views

F11 not presenting code of Macaulay 2 to the Emacs buffer in OSX

I am setting up Emac Version 24.4 (9.0) for Macaulay 2. This results to the following error: pressing F11 should present the input of the buffer above, instead it prints "-- end of buffer *M2-demo-...
1
vote
1answer
130 views

emacs on console "can not load file, package

In my .emacs file, I try to install el-get with this code: (unless (require 'el-get nil 'noerror) (require 'package) (add-to-list 'package-archives '("melpa" . "http://melpa.org/...
0
votes
1answer
714 views

How to get iTerm to properly send the CTRL-. sequence?

Emacs uses a lot of C-. and similar keyboard sequences. iTerm doesn't send the key sequence C-. itself, but I've found that I can map C-. into an escape sequence or hex code or text in iTerm's ...
2
votes
1answer
140 views

moveWordForward: on ⌥-f in El Capitan doesn't repeat

I've used Jacob Rus' cocoa text system bindings for many years to give me more emacs like bindings in cocoa text fields (apple doc here. Since El Capitan I find that option-f which does ...
0
votes
1answer
54 views

Do not let the viewer go to the first page systematically

I edit tex files with Emacs under Mac OS X 10.10.1, compile tex pdf and view it with Preview. The problem is that each time the code is modified and re-compiled, the viewer systematically goes to the ...
1
vote
1answer
172 views

Setting locale via launch daemon - downside to this approach?

I have the same problem as in this post here that R started in ESS / Emacs can not set the locales: R version 3.2.2 (2015-08-14) -- "Fire Safety" Copyright (C) 2015 The R Foundation for Statistical ...
1
vote
2answers
118 views

Shortcut to move point to beginning / end of current line

I use the Apple Wireless Keyboard - French The shortcut Fn+Left arrow (resp. Fn+Right arrow) goes to the beginning (resp. end) of the buffer. The shortcuts cmd+Left arrow or cmd+Right arrow do not ...
9
votes
1answer
2k views

Disable Shift Cmd Q for logout

I would like to disable Shift+Command+Q keyboard shortcut for Log Out. I am using Karabiner at the moment, but I only managed to disable it completely using the following xml: <?xml version="1....
16
votes
1answer
3k views

New Terminal behavior after upgrading to OS X 10.11

I've noticed square brackets in the "gutters" of a Terminal window when editing files in emacs. The brackets are on either side of the screen and go away if I force a window update by either resizing ...
1
vote
0answers
230 views

Using ipad with keyboard – viable as ssh terminal for development?

Currently I'm using a macbook pro as my development machine. My workflow basically consists of logging in to an ec2 instance via ssh and there working on the shell using emacs. I wonder if the same ...
0
votes
3answers
559 views

Alt-keys (option-keys) in emacs emulation (jetBrains PyCharm)

I suspect this is a general issue with the Mac as opposed to anything specific to the app I'm struggling with now, which happens to be PyCharm from jetBrains. The reason I suspect this is a general ...
1
vote
1answer
66 views

Homebrew Formula for emacs' VM (View Mail)

Can anyone help with a homebrew formula to install emacs' VM ("View Mail"), located: http://www.nongnu.org/viewmail/ https://code.launchpad.net/vm I can get as far as a script, that should look like ...
2
votes
1answer
674 views

Symbolic link to Emacs 24 not working

I like to create a bin directory in my home directory and make it the first item in my $PATH. I then create symbolic links to override the default MacOS installed version of certain apps. I have done ...
0
votes
1answer
37 views

Can I make iconify-window binding work when minimize using window manager

I can bind a function to run when Emacs iconifies a frame (defun my-handle-iconify-frame() ;; I actually do something more useful than this... (message "my-handle-iconify-frame") ) (define-key ...
1
vote
2answers
198 views

Use keyboard for accessing Emacs Menu

I am using the brew install emacs version of gui-based emacs. After using the mac shortcut to access the Menu bar, I am able to use the mnemonic to access the individual top level menu items: e.g. ...
0
votes
2answers
715 views

GUI based emacs

I picked up emacs for first time in decades last night on ubuntu. It was sweet: opened up in a GUI and I was able to set up CUA mode - but still able to access the CTL-C and CTL-X actions via META-X. ...
3
votes
1answer
808 views

How to open different emacs version from the shell?

I have two versions of emacs on my machine. One came preinstalled and I have just installed a newer version with homebrew. If I type emacs in the terminal, the old version runs. If I type emacs-24.4 ...
1
vote
1answer
60 views

How to programmatically construct the name of application used to open directories?

This Emacs LISP script reveal-in-finder.el allows one to quickly open a directory in Finder from an Emacs buffer which has the directory opened in it in dired mode. But on my computer, I uses Path ...
5
votes
1answer
5k views

running emacs on a terminal: problem with meta-key

I am on Mavericks and I am running emacs 24.4.1, but I have the same problem also with 22.1.1. When I open mac on a terminal on the remote host, it does not recognise option key (alt) like the meta ...
1
vote
1answer
199 views

Why don't I see a path to etags in PATH when running Emacs from http://emacsformacosx.com/ from the OS X dock?

This is a follow-up question to the one at "Is /usr/bin/etags severely out of date in Yosemite?" The Emacs in question is from http://emacsformacosx.com/ (GNU Emacs 24.4.1 (x86_64-apple-darwin13.4.0, ...
0
votes
1answer
62 views

Global keyboard shortcut to switch to an application (to use with Emacs/Aquamacs)

Like in iTerm, I'd like to be able to set a keyboard shortcut to switch to an application, which in this case would be Aquamacs. This would be really useful to know in general. Would an Applescript or ...
0
votes
1answer
333 views

Copy-Paste from Mac to Emacs of ubuntu

I use version 10.9.2 of OS X and a virtual machine 6.0.5 VMware Fusion. Ubuntu 14.04 LTS has been installed on the virtual machine. In ubuntu I use Emacs 24.3.1 as editor. Once emacs of ubuntu is ...