Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

2
votes
0answers
128 views

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-...
1
vote
1answer
227 views

How to cycle between specified states in org mode?

By default, S-tab cycles between OVERVIEW, CONTENTS and SHOW ALL these three states. But I want it to just cycle between CONTENTS and SHOW ALL. How can I realize it?
2
votes
1answer
436 views

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 ...
1
vote
0answers
130 views

How to cycle through helm sources?

I have multiple sources in helm like this (setq helm-sources '(helm-source-buffers-list helm-source-recentf helm-source-dired-...
2
votes
0answers
181 views

Expand LOGBOOK on 2nd Tab press? (hook for 2nd org-cycle?)

In org-mode.. I store lots of state-change messages and timing info in the LOGBOOK drawer. Most of the time, I don't look into the LOGBOOK drawer, but once in a while when following up on a pending ...
1
vote
2answers
217 views

What's a good workflow for having a few dedicated shell sessions?

At present I use a screen session in the terminal (outside of emacs), with window 0 devoted to running my web server, window 1 to running tests, and window 2 for general hacking. I like this flow and ...
7
votes
1answer
634 views

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: * ...
3
votes
1answer
182 views

Moving line with move-text-up doesn't move point

Disclaimer: I'm using Emacs Prelude, but I don't think this is a problem of that specific distribution. Some time ago I discovered that pressing M-S-up or C-S-up with no selection just swaps the line ...
2
votes
2answers
117 views

Switch to next buffer under certain circumstances

I have the following line of code in my .emacs file: (global-set-key (kbd "C-<tab>") 'next-buffer) This key-binding allows me to C-<tab> my way around Emacs. However, because of certain ...
4
votes
2answers
272 views

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 ...
4
votes
1answer
207 views

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-...
82
votes
13answers
42k views

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 ...
38
votes
12answers
5k views

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 <...
4
votes
4answers
187 views

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 ...
3
votes
1answer
385 views

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 *...
12
votes
5answers
2k views

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 ...
28
votes
6answers
4k views

Effectively using the mark ring

I have used the mark to select regions of a buffer. For example, I know the sequence C-<space> C-s foo can be used to select all text between the current point and the point after a search for ...
8
votes
2answers
1k views

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 ...
62
votes
17answers
29k views

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 ...
5
votes
3answers
369 views

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 ...
19
votes
2answers
691 views

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, ...