Use the navigation tag for questions about moving around: to different places within a file/buffer (i.e., beginning, end, across paragraphs and code blocks); from one window to another (i.e., changing which window you are working in, and which files/buffers are displayed in each window). Use tag [motion] instead, for moving point around.
Questions tagged [navigation]
81 questions
123
votes
13 answers
How to switch between windows quickly?
How do I switch between windows quickly?
I often have multiple windows open and need to switch between them. Right now, I use C-x o to get to the one I want. Is there a more efficient workflow available for this?

Sibi
- 3,603
- 2
- 22
- 35
48
votes
12 answers
How to switch back and forth between two locations in a buffer
Sometimes I find myself frequently alternating between two functions that I am editing in conjunction with each other. In these situations, it is tedious and painful to keep on doing a C-s to switch to the other function and then to…

Vedaad Shakib
- 583
- 4
- 6
29
votes
1 answer
Synchronized scrolling in two windows
Is there a way to reflect the navigation commands in the current window in another visible window. I have two related LaTeX files displayed in two windows and would like to scroll through them simultaneously to get an overview of the differences. I…

Vamsi
- 3,916
- 22
- 35
18
votes
3 answers
How to navigate quickly to my installed packages?
When I'm in the package manager (M-x package-list-packages), I'd like to quickly navigate to my installed packages.
There are literally thousands of packages marked as available, installed, or built-in, but all of the navigation appears to be…

Jeff Bauer
- 861
- 1
- 10
- 22
14
votes
1 answer
When switching buffers, prevent emacs from automatically switching frame
When I switch buffers, emacs will switch to an existing frame if the buffer is already opened there.
I found how to prevent that when switching with ido using :
(setq ido-default-buffer-method 'selected-window)
But it's not enough : for exemple if…

MonsieurBanana
- 488
- 2
- 7
12
votes
3 answers
Treat symbols as words in prog modes
There are a number of commands in Emacs which apply to "words." Examples include forward-word, kill-word, upcase-word, mark-word, transpose-words, etc. The definition of "word" seems to vary a bit between the commands. For example, forward-word…

nispio
- 8,175
- 2
- 35
- 73
12
votes
2 answers
Better indentation and navigation in assembly source code
When I write C or Java code it's extremely regular, but with assembly (asm-mode), it's so disorganized.
I'm using auto-complete and yasnippet. I created snippets and am using them, but the code organization and indentation are disorganized.
What…

Vivian Maya
- 787
- 1
- 6
- 17
10
votes
2 answers
Navigate to the source code of built-in functions and variables
Throughout the day I am constantly using C-h f or C-h v (describe-function and describe-variable) to look up documentation for functions and variables. More often than not, if I don't get all the information I need, I will click on the file link at…

elethan
- 4,755
- 3
- 29
- 56
7
votes
4 answers
Quickly jump to favorite folders
What I actually want
I have deep folder structures, and often use a dozen folders pretty far down the directory tree. In Nautilus, I use bookmarks to get to them quickly. I want the same thing in Emacs, as I plan to use Dired more.
My plan
My plan…

UTF-8
- 885
- 6
- 22
7
votes
5 answers
Is there a setting to automatically center the text after any jump?
For any jump to a new buffer(for example from the ack buffer or godef-jump) point is left at the very bottom of the window. Is there a global configuration to automatically center occur and similar buffers without wrapping every conceivable function…

Aaron Lee
- 377
- 2
- 8
6
votes
2 answers
Emacs lisp forward-sexp: Scan error: "Containing expression ends prematurely"
When writing Emacs Lisp code, I use forward-sexp (C-M-right) and backward-sexp (C-M-left) to navigate the buffer. However, in some cases these functions stops with error like:
forward-sexp: Scan error: "Containing expression ends prematurely"
Here…

Håkon Hægland
- 3,608
- 1
- 20
- 51
6
votes
2 answers
Preventing mouse clicks in inactive windows from repositioning the cursor
When I have Emacs (24.4, Mac OS, NS build) in the foreground, I often have many windows open in one frame. I sometimes want to switch windows by clicking in an inactive window. By default, this calls mouse-set-point which (1) activates the window I…

gcv
- 221
- 1
- 7
6
votes
3 answers
Is there a way to make the "o" keypress of other-window repeatable?
Question is as stated in the title.
Instead of using various packages for switching windows, it might be simpler to make behave like , such that repeated presses of the o key after the initial will keep switching…

yongjieyongjie
- 286
- 1
- 5
6
votes
3 answers
Go to window by buffername
I would like to be able to switch to an open window by typing the name of the buffer which is displayed in it.
It would be something like C-x b which opens the selected buffer only if it is not opened in another windows and in that case the focus…

Nisba
- 895
- 8
- 19
6
votes
1 answer
forward paragraph -- ignore carriage return in comment
I like to use the forward- and back-paragraph methods to jump around my source code. I would like it to behave slightly differently though. Consider the following comment block:
// comment line one.
//
// comment line two.
I'd like to jump over…

Spacemoose
- 877
- 1
- 7
- 18