Questions tagged [cycling]

Moving forward or backward among a set of things, to act on members successively. Can pertain to any kind of Emacs thing: buffers, windows, fonts, files, characters, completion candidates, colors,... whatever.

Moving forward or backward among a set of things, to act on members successively. Can pertain to any kind of Emacs thing: buffers, windows, fonts, files, characters, completion candidates, colors,... whatever. The action performed on the thing can be different for different kinds of things (e.g., visit a file, change to a font, preview an image,...).

29 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
88
votes
25 answers

How do I switch buffers quickly?

In vanilla Emacs, I have to do C-x b and then manually type out the buffer name to switch. If I forget the name of the buffer, I have to hit TAB to list possible completions. Is there anything I can do to make this process faster?
nixeagle
  • 2,407
  • 3
  • 17
  • 14
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
42
votes
6 answers

Effectively using the mark ring

I have used the mark to select regions of a buffer. For example, I know the sequence C- C-s foo can be used to select all text between the current point and the point after a search for foo. I recently discovered the existence of the mark…
Patrick Steele
  • 1,105
  • 9
  • 10
19
votes
2 answers

How to scroll through all available matching interactive (M-x) commands using Helm rather than just my history?

I'm using Helm to perform completions for my interactive commands, but it only lets me cycle through those commands which I have used in the past (i.e. 4 Candidate(s)). I don't want this behavior, instead, when pressing C-n/C-p it should cycle…
wdkrnls
  • 3,657
  • 2
  • 27
  • 46
13
votes
6 answers

Recently opened files in ido-mode

I use ido-mode, but one thing I hate about it is that after C-x C-f I cannot use up/down keys to cycle through recently opened files, as it used to be for example with iswitchb. How can I set ido to work this way?
8
votes
1 answer

How to make ordered lists collapsed by default in org mode

Suppose, we have this org file: * Header1 ** Header1-1 ** Header1-2 * Header2 1. Item 1 1. Item 1-1 2. Item 1-2 2. Item 2 When I open it by default it looks like this: * Header1... * Header2... Unordered items are collapsed.…
user4035
  • 1,039
  • 11
  • 24
8
votes
2 answers

Rapidly preview files

Similar to this question, I'd like a tool/minor mode to quickly preview my files by merely having the cursor positioned over them (e.g. the currently selected file is displayed in the active buffer window). I don't care about depressing events and I…
wdkrnls
  • 3,657
  • 2
  • 27
  • 46
5
votes
3 answers

Cycle between windows in all frames

I currently use the following custom command to navigate between windows and frames: (defun nispio/other-window (&optional arg) "With prefix argument, select the next frame. Otherwise, select the next window" (interactive "P") (if arg…
nispio
  • 8,175
  • 2
  • 35
  • 73
5
votes
1 answer

org-mode skip to next headline?

How can I skip to next heading in org-mode? Say This is my org-file, pipe indicates the cursor: * Top ** Apple| ** Banana ** Cherry I'd like to run a command and have my cursor now be here: * Top ** Apple ** Banana| ** Cherry
Alex Baranosky
  • 1,069
  • 1
  • 8
  • 17
4
votes
0 answers

Add another level to org-mode visibility cycling

The way S-TAB (org-global-cycle) switches between "top headline -> all headlines -> all content" is great for showing an outline and provide overview, but acts on the full document. Using TAB (org-cycle) works on a local part of the document, but…
ktolbol
  • 68
  • 4
4
votes
2 answers

Bongo music player won't play next track in sequence

The new version of Totem removed the playlist feature, so I'm looking for a simple way to choose 2 or 3 podcasts from a selection of 12 or so recently cached to a ~/Podcasts directory. The bongo music player looks simpler than EMMS, and although…
BongoLugs
  • 41
  • 3
4
votes
1 answer

How do I maintain a history of ido-read-filenames?

I've written a helper function for mu4e to run checkpatch against a message. However I want to be easily able to switch between previous calls to checkpatch and this seems difficult with ido-read-file-name. This is my code so far: ;; ;; Checkpatch…
stsquad
  • 4,626
  • 28
  • 45
4
votes
4 answers

How to reset a counter if `C-g` is pressed

I'm completely new to elisp, and I want a function which cycles through 3 options: Highlight the word. Highlight the sentence. Then highlight the paragraph. What is the proper way to get the function to (setq setnewpoint t) and (setq cyclemarker…
Seth Rothschild
  • 380
  • 1
  • 11
4
votes
1 answer

Opening multiple files from the command lines puts the buffer order in the middle

Let's say I have a Linux directory that looks like -rw-r--r-- 1 hooked se 0 Sep 16 16:02 a -rw-r--r-- 1 hooked se 0 Sep 16 16:02 b -rw-r--r-- 1 hooked se 0 Sep 16 16:02 c When I type emacs * it opens all three files but it puts me in…
Hooked
  • 143
  • 4
1
2