This question already has an answer here:
Why does Ctrl+. not work when I bind it to a command in Emacs?
(1 answer)
Closed 2 years ago.
I am using emacs26.3 with the major mode "Javascript-IDE" activated. When I type M-x comment-line the desired effects happen in the editor. However, when I type the shortcut C-x C-; I have this output:
Comment column set to 2
And the line is not commented/uncommented. C-h b shows that is the key binding is correct.
Here is my emacs configuration: https://github.com/Amine27/dotfiles/blob/master/emacs.el
Are you using emacs in a terminal? A terminal cannot transmit all combinations of keys and modifiers you could press. I can reproduce this behavior when I run emacs in my terminal (pressing C-; just produces an ordinary ;), but when run in my OS's windowing system emacs registers the C-; chord as desired.
Related
This question already has an answer here:
Why does Ctrl+. not work when I bind it to a command in Emacs?
(1 answer)
Closed 2 years ago.
add a key-binding in emacs init file:
(global-set-key (kbd "C-:") 'avy-goto-char)
for avy-goto-char function.
When I press down Ctrl and :(with Shift pressed), nothing happens.
But when use Meta-x avy-goto-char, the commands list window shows C-: already bound to this function. And this function works well.
And if I replace char : to j (for example), it works fine.
Anyone met this problem before. Please help
Just like phils said, it is used in a terminal
I am following the guide here for emacs lisp interface.
C-c q is supposed to quit scheme mode. However this shows C-c q is undefined error. Typing (exit) on REPL works fine. Why is this key not bound in my emacs?
I see "Note that in any given implementation, only a subset of the following keys is available", but more importantly I don't believe that documentation is talking about Emacs bindings.
My impression is that those are the bindings recognised by the REPL if you were to run it outside of Emacs.
Inside Emacs you possibly need a prefix to say "send the next sequence to the REPL". e.g. in Emacs' term you have to type C-c C-c instead of just C-c to send an interrupt to the terminal. However as it's not listed in the other page which listed interrupts in Emacs, I suspect there actually isn't an equivalent binding. Or at least not by default.
This question already has answers here:
Emacs: help me understand file/buffer management
(6 answers)
Closed 8 years ago.
After having typed C-x C-b there will a new window showing currently opened buffers... that is easy. But how can I switch to one of them using only my keyboard? Now I have to move my mouse an click on the one of my interest, and that looks stupid:(
Thanks!
It's a standard read-only buffer with some special bindings. Switch to the window first with C-x o, then you can browse buffers with n, p. Open one in the new window with RET. You can even search the buffer if desired.
Check ido mode. Actually similar questions have been asked quite a few time.
I'm using sml-mode (Stefan Monnier) with emacs. The compiler is smlnj, on a laptop. However, when invoking the SML compiler, that splits the emacs frame into two windows, each fits 12 lines. How can I have the SML program editing buffer in its own emacs frame, and the SML-Inferior-Mode buffer on a separate emacs frame? Thank you.
It was really straight!
First, invoke the SML compiler: C-c C-b
it asks for the default SML System: SMLNJ, MosML, etc.
type the name of the compiler to invoke, or press RETURN key to accept the default, if any.
Then, have the compiler window to display on its own frame, C-x 5 2
To kill (delete) the compiler window from within the SML program editing window, visit that window (either C-x o (letter o)) or by mouse. Then press C-x 0 (zero).
I load GNU emacs in it's own window by typing emacs in the terminal.
I like to use the keybindings from pc-selection-mode, which allows you to highlight characters using shift-right or shift-left, or entire lines by pressing shift-up or shift-down.
The problem is that when I run emacs in the terminal by typing emacs -nw, the latter 2 keybindings don't work. I can highlight characters using shift-left and shift-right, but pressing shift-up and shift-down doesn't do anything. The cursor stays where it is.
How do I fix this problem? Why is it even occurring? I'm using GNU Emacs 23.1.1, and I've confirmed that the same version is being used both when emacs is in it's own window and when emacs is running inside the terminal.
Thanks for any help
A lot of times the bindings just aren't listed, or are mapped wrong. You can try M-x show-lossage (or C-h l) to see if the escape sequences reach emacs or not. If they do, you might want to try xterm-extras -- it's always worked even as I migrate between different versions of linux and solaris, and as I ssh between them (which is often a source of problems).