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.
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.
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.
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
This question already has an answer here:
Changing the size of the menu from the "Buffers" item in the menu bar in emacs
(1 answer)
Closed 9 years ago.
When I pull down the emacs buffer menu, if I have a lot of buffers, I see only a subset of them listed. So, I then have to do List All Buffers. Is there a way to configure the Buffer Menu so that it will show all buffers? Xemacs always did that, but we no longer are able to use that.
Adjust buffers-menu-max-size:
(setq buffers-menu-max-size nil)
From the C-h v buffers-menu-max-size on my version of Emacs 24.3:
Maximum number of entries which may appear on the Buffers menu.
If this is 10, then only the ten most-recently-selected buffers are shown.
If this is nil, then all buffers are shown.
A large number or nil slows down menu responsiveness.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
ediff-split-window-function horizontal==vertical?
Using GNU Emacs 23.4.1. With M-x ediff-files
1-How to make the 2 files vertically beside each other. By default they are one top, one down. I want one left and one right.
2-How to scroll automatically to next difference?
To split the panes side-by-side:
(setq ediff-split-window-function 'split-window-horizontally
ediff-window-setup-function 'ediff-setup-windows-plain)
(You can explore ediff's settings using M-x customize-group RET ediff RET.)
n and p will take you to the next or previous diff chunk, respectively. Press ? to get the full menu, which includes handy keys to copy changes from buffer 1 to buffer 2 and vice versa.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I more easily switch between buffers in Emacs?
GNU Emacs 24.1.1
Hello,
When I want to switch buffers I use the following C-x C-b if I have many buffers active. But I find it very inefficient.
And it will display a lists of open buffers in the next buffer (I don't like this in the next buffer). Normally I have 4 buffers open at the same time.
Using the above I will then have to put the cursor (C-o) to get focus in the buffer-list buffer, when scroll up or down to select the buffer I want.
Sometimes I use C-x-b if I don't have many active buffers. However, I always have many.
However, I am looking for something then will open up a small buffer with a list of buffers (the minimum needed - just enough to show all buffers), and will automatically have focus. I scroll to select the buffer I want. And it will appear in the buffer I had focus on before I open the list of buffers. The buffer-list will then disappear.
Does anyone know of anything like this to make switching buffers easier.
Many thanks for any advice,
Apart from ido-mode, good buffer switching solutions are:
Plain-old C-x b + icomplete-mode
ibuffer - just rebind C-x C-b to ibuffer to see it in action:
(global-set-key (kbd "C-x C-b") 'ibuffer)
Helm - an incremental narrowing and selection framework useful to find just about anything (buffers included).
Check ido-mode. C-x C-b is the old way.
The ido lets you interactively do things with buffers and files.