Linked Questions

22 votes
3 answers
30k views

emacs on terminal does not recognise option as alt-key on mac

I am on a mac 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 key. I ...
simona's user avatar
  • 403
20 votes
2 answers
3k views

How to bind C-i as different from TAB?

I want to make Control-i perform indent-region (basically since Xcode has built that muscle memory already). I realise that Control-i and tab are indistinguishable in the Ascii sense, but they are in ...
Mark's user avatar
  • 1,449
18 votes
1 answer
16k views

How to use a Mac's Command key as a Control key?

I'm new to Emacs, and am using a Mac. I want the Mac command key to act as a control key for Emacs. How do I do that? I tried (setq mac-command-modifier 'control). Besides, how do I find key ...
LoranceChen's user avatar
15 votes
3 answers
7k views

Shift+Up isn't recognized by Emacs in a terminal

Very often I use Shift+Up/Down to select a region in Emacs. It works fine in GUI mode, but when emacs is invoked with -nw option I can select lines only with Shift+Down. The Shift+Up doesn't work, I ...
WeSenseASoulInSearchOfAnswers's user avatar
8 votes
1 answer
7k views

What does S mean in emacs keybinding notation (org-mode) [duplicate]

Looking at the keybindings here http://orgmode.org/guide/Structure-editing.html#Structure-editing, it asks us to use M-S-<RET> to add a TODO at the same level. What does the S here mean? I ...
Andrew's user avatar
  • 561
7 votes
4 answers
4k views

Use the command key in Terminal on OSX?

Is there a way to use the Apple command key in Emacs in the terminal? It would be nice to expand the set of easy to get at key bindings I can use.
Jake Pearson's user avatar
7 votes
1 answer
329 views

binding M-[ causes mouse focus to insert characters

I have bound M-[ to backward-paragraph. This causes a problem in terminal mode, whereby every time the mouse enters or leaves the frame (i.e., Emacs gains or loses focus), the characters I and O are ...
Tyler's user avatar
  • 22.4k
6 votes
3 answers
1k views

Keycode for `Shift + Return` on OS X iterm2

I'm currently trying to learn org-mode in OS X. And I found there's a keymap M-S-RET. But S-RET is not recognized in the iTerm2. It seems like terminal interpret S-RET and RET as same. iTerm2 can ...
EmbeddedWorker's user avatar
5 votes
1 answer
3k views

Emacs inside Tmux problem

This might have an obvious answer but I've been trying to fix this issue with no luck. (I'm new to Emacs) Whenever I start Emacs within a Tmux pane, it ignores some of my .emacs settings. These are ...
Rtsne42's user avatar
  • 489
4 votes
5 answers
1k views

What linux terminal app is compatible with emacs keybindings?

I am using terminal Emacs (emacs -nw). Gnome terminal doesn't behave well with it (key bindings break), and KDE's Konsole is even worse. Surprisingly, when I ssh from a windows machine the behavior is ...
Yuval Atzmon's user avatar
4 votes
3 answers
1k views

Custom C-M-; key binding

I have a custom comment-dwim-line command that I want to bind to the key combination C-M-; (in other words, control, meta and ; buttons pressed simultaneously). The built-in comment-dwim command is ...
schatten's user avatar
  • 261
4 votes
3 answers
2k views

OS X Terminal.app C-M-commands

So, in Mac OSX, I'm trying to switch to using Emacs in Terminal.app, but things like C-M-SPC and C-M-% don't work. After a bit of googling I came across this (mostly) unanswered question https://...
joao's user avatar
  • 245
4 votes
1 answer
2k views

Why doesn't "C-;" "C-,", or "C-." work in a terminal emulator? (OS X Terminal, Iterm2) [duplicate]

I have bound "C-;" to 'other-window in my config like so. (global-set-key (kbd "C-;") 'other-window) When I run emacs outside of a terminal, this keybinding works as I would expect. Inside Iterm2 ...
Greg Nisbet's user avatar
3 votes
2 answers
649 views

how to map <C-M-left>, <C-M-right> etc to the correct hex codes in iterm2

I'm looking to configure iterm2 to output the correct hexcodes that correspond to in emacs. There's a whole bunch of mappings predefined but it's very cryptic. I'm a little bit lost as to how these ...
zcaudate's user avatar
  • 657
3 votes
2 answers
1k views

How to make emacs recognise C + SHIFT combinations in terminal mode?

Emacs cannot currently pick up C-SHIFT sequences in terminal mode. For example, C-) and C-( are instead just read as 0 and 9 respectively. I'm aware that using GUI mode is one way around this, but I ...
achalk's user avatar
  • 589

15 30 50 per page