Linked Questions

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 ...
0 votes
0 answers
244 views

How do I type … in the TUI?

When I call describe-key and enter … (Alt Gr + .), it says M-b runs the command backward-word […] and async-shell-command (bound to M-&) is called. I'm on Linux with Xorg, the terminal emulator is ...
2 votes
1 answer
251 views

C+X C+; not working

I work in emacs 27.1, Ubuntu 22, Terminal. I need to comment out a block. I press Ctrl+XCtrl+;. However, the ; button is not accepted properly. It only makes an underlined e appear (only on screen, ...
2 votes
2 answers
2k views

How to bind CTRL-<home> and CTRL-<end> to beginning/end-of-buffer in Emacs?

Using PuTTY to connect to Linux from Windows and running Emacs: How do I bind CTRL-<home> and CTRL-<end> to beginning-of-buffer and end-of-buffer respectively? I've been searching the web ...
0 votes
1 answer
134 views

C-M-... bindings in emacs -nw [duplicate]

I have an issue when I run emacs with -nw: all my C-M- bindings stop working, as C (control) doesn't register, and only the M- binding is executed. E.g: (global-set-key (kbd "C-M-.") '...
0 votes
0 answers
34 views

C-c C-, not working in SSH terminal but it is bound

The function org-insert-structure-template is bound to C-c C-,. I can confirm that when search that function via M-x and seeing the shortcut behind the function name. But I use Emacs (from Debian 11) ...
1 vote
2 answers
265 views

windmove doesn't recognize S-<up> and S-<down> on Macbook Terminal

GNU Emacs 27.2 in Mac OS terminal (11.4 Big Sur). Started with (windmove-default-keybindings) and found that S-<up> and S-<down> behaved just as <up> and <down>, as if the ...
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 ...
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 ...
0 votes
1 answer
206 views

Key binding in terminal emacs [duplicate]

I started to use Linux Mint. On the Terminal, I can use emacs -nw and emacs. I can't get the same key behavior about the following two configs. In particular, these settings work in emacs, but not in ...
0 votes
1 answer
149 views

What is the keycode of C-TAB?

iTerm does not send ctrl+tab itself, so I need to configure it myself. I can't figure it what key code ctrl+tab is though.
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 ...
3 votes
2 answers
660 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 ...
0 votes
0 answers
147 views

Xmodmap modifier used for meta

I would like to set my Alt_L to trigger a meta key in emacs. I've tried using xmodmap to set Alt_L as Mod1, Mod2, Mod3. But in emacs, when i try to type Alt_L + x (expecting M-x) it only prints "...
6 votes
3 answers
2k 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 ...

15 30 50 per page