Linked Questions

2 votes
1 answer
905 views

how to substitute SUPER keybindings in Emacs terminal mode?

In GNU Emacs GUI, I use the Mac Command key ⌘ as super: (setq mac-command-modifier 'super) However, the ⌘ key does not send input to Terminal or iTerm2. Given this, is there a way to simulate the ...
incandescentman's user avatar
2 votes
1 answer
490 views

'C-M--' on Emacs Terminal on OSX fails with "C-M-_ is undefined"

I'm trying to execute C-M-- from Emacs on Terminal (iTerm2) running on OSX, but I keep getting an error saying C-M-_ is undefined. Any ideas how to workaround this?
Galder Zamarreño's user avatar
2 votes
1 answer
693 views

Map a key to act like a combination of modifiers

I've got a keyboard, where pressing M-C-S is uncomfortable (Meta and control are under the thumbs and Shift is on the far end of the keyboard). However, PageUp, PageDown, Home and End are in a very ...
wvxvw's user avatar
  • 11.4k
1 vote
1 answer
212 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, ...
Viesturs's user avatar
  • 825
1 vote
1 answer
170 views

Is it possible to bind CTRL-SHIFT-xxx and CTRL-num combination?

I'm very new to emacs and essentially came from vim where it is not possible to bind CTRL-num combination like (CTRL-1, CTRL-2, etc) which as well as CTRL-SHIFT-xxx like CTRL-# which essentially works ...
Some Name's user avatar
  • 113
1 vote
1 answer
426 views

C-RET not recognized by Emacs in terminal [duplicate]

Attempting C-c C-RET gives me the following: C-c RET is undefined Any thoughts on what is happening here?
jujillu's user avatar
  • 11
1 vote
1 answer
1k views

How to remap shift-arrow in term-mode?

Is there a way to map Shift-left or other arrow keys to custom functions in term-char-mode? I tried, but without luck: (define-key term-mode-map [s-left] 'sandric/term-switch-line-mode) Entering ...
sandric's user avatar
  • 1,271
0 votes
1 answer
128 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-.") '...
parszab's user avatar
0 votes
1 answer
204 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 ...
hrkshr's user avatar
  • 143
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.
HappyFace's user avatar
  • 830
0 votes
1 answer
107 views

Emacs' C-tab seems without effect on my server through ssh

(Emacs 27.1) On my local machine <C-tab> is linked to other-window and works well: .emacs.d/init.el: (global-set-key (kbd "<C-tab>") 'other-window) When I install Emacs on a (...
suizokukan's user avatar
0 votes
1 answer
88 views

how can a command be bound to Ctrl-' or Ctrl-<NUM> in the terminal

I want to bind a command to C-', C-` and C-0 through C-9 keys. It's not working in the terminal Is there a way to do so?
zcaudate's user avatar
  • 647
0 votes
1 answer
523 views

global-set-key not working in terminal

I have the following line in my .emacs.d/init.el file (global-set-key [(control tab)] 'other-window) ;; remap f1 to undo (global-set-key (kbd "<f1>") 'undo) When I use the full X-window GUI ...
mikemtnbikes's user avatar
0 votes
1 answer
630 views

Weird keyboard behaviour by Emacs in a terminal [duplicate]

I am having problems to configure my EMACS in -nw mode using linux thorough ssh. I am trying to map Ctrl+Shift+z to redo using undo-tree-redo. I tried the following code (defalias 'redo 'undo-tree-...
Jemme's user avatar
  • 103
0 votes
1 answer
437 views

The shift is useless when I am in the iterm2 with emacs -nw [duplicate]

GNU Emacs 24.5.1 (x86_64-apple-darwin14.5.0 Org-mode version 8.2.10 (release_8.2.10 For example, when I use C-q M-Return. It shows ^[ . But when I use C-q M-S-Return. It still shows ^[ . It seems S:...
yuxuan's user avatar
  • 781
0 votes
1 answer
478 views

Unable to remap key bindings involving meta under iTerm2

I'm using iTerm2, and I would like to remap some of the meta keys. In my .emacs I have (global-set-key (kbd "M-g") 'goto-line) And in my iTerm2 settings I have both "option" keys set to send +Esc. I ...
David's user avatar
  • 197
2 votes
0 answers
396 views

C-S-Backspace not working [duplicate]

When using emacs, C-S-Backspace seems to only delete one char and not the whole line. After reading Here I see the text: "C-S-backspace (kill-whole-line) kills a whole line including its newline,...
Mark Francis's user avatar
1 vote
0 answers
22 views

Return key when Emacs running inside a terminal [duplicate]

I have re-assigned the RETURN key to exit the insert state in Evil mode. (define-key evil-insert-state-map [return] 'evil-normal-state) But this does't work with emacs -nw in terminal. Any way to ...
Arktik's user avatar
  • 972
1 vote
0 answers
660 views

Ubuntu Emacs Meta Key problem related to keys

I'm using emacs 24.5.1 on ubuntu 16.04 on a Vaio x64 pc. earlier I ran the emacs tutorial and got through it completely no problem. Then I started playing with the "replace-string" command and now my ...
Vladimir Estragon's user avatar
1 vote
0 answers
802 views

single escape to quit helm in terminal

This blog post on migrating from vim to evil-mode in emacs gives code to make a single ESC quit/cancel helm instead of 3. It worked on Emacs.app (OS X) but doesn't work from Terminal.app (both emacs ...
Alejandro Erickson's user avatar
1 vote
0 answers
274 views

Define key chords for windmove

I'm following info found on this link, but cannot get the desired custom key bindings to work for windmove. Basically, I put the following in my .emacs file: (global-set-key (kbd "C-M-<left>") ...
MLister's user avatar
  • 215
0 votes
0 answers
33 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) ...
buhtz's user avatar
  • 729
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 "...
slav3000's user avatar
0 votes
0 answers
238 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 ...
tastytea's user avatar
  • 105
0 votes
0 answers
40 views

setting C-, and C-. key bindings

I am unable to set the C-, and C-. key bindings! I tried adding the following, (global-set-key (kbd "C-,") 'forward-char) (global-set-key (kbd "C-.") 'forward-char) In various ...
Matthias's user avatar
0 votes
0 answers
25 views

Meta+Shift-Return in iTerm2 on Mac not working [duplicate]

Have you met the case that Emacs in iterm2 on Mac does not recognize M-S-RET (Meta(Option)+Shift+ Return key)? I guess it's related to the modifier key conversions in terminals. M-S-RET is used in ...
jing chen's user avatar
0 votes
0 answers
157 views

C-M-% not works in MacOS terminal

I'm fresh to emacs and following manual to practice Query-Replace operation. But I find it not work at all. Type C-h l where it shows ESC 5 seems my OS swallow some key input or emacs parse input ...
LoranceChen's user avatar
0 votes
0 answers
22 views

C-C C-SPC not working in RHEL 6.7 GNOME 2.28.2 [duplicate]

The key C-SPC is not working in RHEL 6.7 GNOME 2.28.2. When I try C-h k and then hit C-SPC I see the following message on the mini-buffer: C-@ is undefined That is, SPC is mistaken for @.
Marcus Junius Brutus's user avatar
0 votes
0 answers
521 views

Paredit slurp hotkey doesnt work [duplicate]

I'm having a real hard time getting the paredit slurp key to work. I know it is bound to C-), and by describing the paredit-slurp-forward-sexp it confirms that. When I fire up M-x describe-key and ...
Steve's user avatar
  • 65
0 votes
0 answers
47 views

C-S-n and C-= not working in emacs if running within terminal [duplicate]

I am running emacs inside tmux within iterm2 on OSX. For some reason these key bindings do not work properly C-S-n C-= C-+ C-; And some others too that are similar. All of these work when running ...
nuaavee's user avatar
  • 101

15 30 50 per page