134 votes

How to switch between windows quickly?

One way is to use windmove. With its default keybindings, it allows switching to the window next to the currently active one. It's built in Emacs, so there is no need to install anything; just ...
user avatar
74 votes
Accepted

How to switch between windows quickly?

I obviously prefer ace-window for this. You can switch between visible windows and frames. It's in MELPA, you can install it quickly. The only thing left to do is to bind it: (global-set-key (kbd "C-...
user avatar
  • 13.6k
70 votes

How to switch back and forth between two locations in a buffer

Registers: C-xrSPC runs point-to-register C-xrj runs jump-to-register Type any character to specify a register when prompted.1 Bookmarks: C-xrm runs bookmark-set C-xrb runs bookmark-jump Mark ...
user avatar
  • 43.5k
31 votes
Accepted

Synchronized scrolling in two windows

M-x scroll-all-mode does exactly that. You can also refer to the emacs wiki on scroll-all-mode and how to make synchronized scrolling work with mouse scrolling.
user avatar
  • 24.3k
29 votes

How to switch between windows quickly?

You can bind other-window to an easier-to-type key sequence. For example, I have C-. bound to other-window, and C-, bound to go to the previous window. (global-set-key (kbd "C-.") #'other-window) (...
user avatar
  • 8,584
25 votes
Accepted

How to switch back and forth between two locations in a buffer

Emacs windows C-x 2 will open another window (=split the frame) below the current one, attached to the same buffer. You can move point in either window without affecting the other. You can move ...
user avatar
  • 4,113
21 votes

How to switch back and forth between two locations in a buffer

In addition to phils's answer, there are some more options: helm-all-mark-rings: It allows you to view the content of the both the local and global mark rings in a friendly interface, so you can ...
user avatar
  • 6,672
14 votes

How to switch between windows quickly?

window-numbering.el ! I assign the hotkey ",1", ",2", ",3" to switch specific window (please note I use evil-mode) besides, I display the window number at the mode line in PINK color, underlined. ...
user avatar
  • 4,611
13 votes

How to switch between windows quickly?

Without using any additional add-ons, you can continue to use C-x o with an optional prefix to skip over that many windows. Eg: C-u 1 C-x o will go to the next window in the order (ie, what you would ...
user avatar
  • 31.1k
11 votes

How to switch between windows quickly?

Some people may remember the editor Brief (funnily enough produced by a company called Underware). It had a neat way to switch between visible windows. M-arrow would move the cursor into the window ...
user avatar
  • 181
11 votes
Accepted

How to navigate quickly to my installed packages?

I tend to end up using occur (or more specifically helm-swoop) to narrow down my choices. However you can also use paradox, which extends the functionality of the basic package manager. This include ...
user avatar
  • 4,546
11 votes

Treat symbols as words in prog modes

Take a look at superword-mode and subword-mode. Superword treats underscores as part of a word instead of a boundary, so foo_bar would be treated as a single word. Subword does the opposite but for ...
user avatar
  • 3,984
11 votes
Accepted

Better indentation and navigation in assembly source code

Just use the built-in asm-mode. It gives you syntax highlighting for any assembly languages. gas-mode does not do that and is not usable with AT&T syntax. If you want to set indentation for asm-...
user avatar
  • 6,672
9 votes

How to switch back and forth between two locations in a buffer

Besides registers and markers (see @phils's answer about both and my other, Icicles answer about markers), bookmarks, particularly either autonamed or temporary bookmarks, can be helpful for this. You ...
user avatar
  • 69.7k
9 votes
Accepted

How to move the cursor to the next instance of the text the cursor is currently on?

I think what you're looking for is isearch-forward-symbol-at-point which is bound to M-s . Here's its documentation: (isearch-forward-symbol-at-point) Do incremental search forward for a symbol found ...
user avatar
  • 884
8 votes
Accepted

Is there a setting to automatically center the text after any jump?

Use C-l or the command (function) bound to it, recenter-top-bottom. Hit it repeatedly up to 3 times, to cycle among different vertical positions for the cursor. See the full doc for the command for ...
user avatar
  • 69.7k
7 votes

How to switch back and forth between two locations in a buffer

With regard to indirect buffers mentioned in the accepted answer... M-x clone-indirect-buffer will create an indirect buffer for the current buffer. The name of the new buffer will have '<2>' ...
user avatar
  • 181
7 votes

How to switch between windows quickly?

If you use Icicles then C-x o lets you select windows by name (or by cycling). With no prefix arg, C-x o is the same as usual, other-window, unless the frame has only one window, in which case it is ...
user avatar
  • 69.7k
7 votes
Accepted

Navigate to the source code of built-in functions and variables

The reason you sometimes see “interactive compiled Lisp function” (or likewise for variables) with no file name is that the function was loaded from a byte-compiled file and the corresponding Elisp ...
user avatar
7 votes

How can I navigate up/down a log from magit-rev-mode?

That isn't supported yet but you can do it "the other way around". Instead of pressing RET to show and select the revision buffer, press SPC to show the revision buffer but stay in the log buffer. ...
user avatar
  • 24.3k
6 votes
Accepted

Quickly jump to favorite folders

It's unclear to me why you want/need to add such symlinks. Why not just use Emacs bookmarks? If you use Bookmark+ then you can have: Bookmarks to Dired buffers (which record lots of stuff, including ...
user avatar
  • 69.7k
6 votes
Accepted

Bookmarking / Highlighting lines in a file

There are several ways to do this. One of my preferred methods is the bm package. The package provides visual bookmarks: The setup is dead simple: (require 'bm) (global-set-key (kbd "<C-f2>")...
user avatar
  • 3,885
5 votes

How to switch back and forth between two locations in a buffer

For the past 20 years or so, I've been using these two gems: (defun ska-point-to-register () "Store cursorposition _fast_ in a register. Use ska-jump-to-register to jump back to the stored position....
user avatar
5 votes
Accepted

Preventing mouse clicks in inactive windows from repositioning the cursor

The following advice achieves the behavior I want: (defadvice mouse-set-point (around cv/mouse-set-point (event) activate) (let ((event-name (car event)) (event-target-window (posn-window (...
user avatar
  • 221
5 votes
Accepted

After executing org-narrow-to-subtree, how do I move between subtrees of the same level?

If what you want to move the narrowing along with point to the next subtree, you can define a command that does that: (defun my/org-narrow-forward () "Move to the next subtree at same level, and ...
user avatar
  • 6,973
5 votes
Accepted

Navigate to a certain paragraph number

I'm not aware of a built-in function for this, but as you already noted you can write one: (defun goto-paragraph (arg) "Go to paragraph ARG." (interactive "nGoto paragraph: ") (goto-char (point-...
user avatar
  • 19.2k
4 votes
Accepted

Treat symbols as words in prog modes

Emacs should already use "the appropriate word boundaries for the syntax of the current language". If it does not then file a bug for the major mode for that language. But maybe you don't really ...
user avatar
  • 69.7k
4 votes

How to switch between windows quickly?

Some good answers here, I also am a fan of WinMove, but I bind it to C- because org-mode uses M- for manipulating headings (define-key global-map (kbd "C-<up>") 'windmove-up) (define-key global-...
user avatar
4 votes
Accepted

When switching buffers, prevent emacs from automatically switching frame

There does not appear to be an option for this. The function to find a buffer does allow you to specify whether to look in all frames or only in the current frame: (get-buffer-window &optional ...
user avatar
  • 19.2k
4 votes

How to switch between windows quickly?

Consider using a key-chord for quickly jumping between windows. I find it much quicker than reaching for a modifier key(and less straining on my hands, as well). My choice of package to use is ace-...
user avatar
  • 571

Only top scored, non community-wiki answers of a minimum length are eligible