Helm & completionλ︎
Helm is an incremental completion and selection narrowing framework. Its the central control tower of Spacemacs, it is used to manage buffers, projects, search results, configuration layers, toggles and more.
For example, Helm helps you navigate files and directory names, only showing the matching names to the pattern you type. This minimises the need to type directory and file names in full.
|Up to parent directory
|Into sub directory / open file
|Move down the helm menu
|Move up the helm menu
|Traverse Helm history
|Paste kill ring into helm
|Switch to minibuffer
Helm Transient Stateλ︎
Use the Helm transient state to navigate the Helm results using Vim keybindings (
hjkl) and call additional actions on those results.
Enter this transient state with
S-M-SPC while in a Helm buffer, for example, when navigating the results such as file find
SPC f f, buffer list
SPC b b, or Emacs commands list
Gnome desktop binding clash
M-SPC is used by the Gnome desktop for the window menu, so recommend you change the Gnome keyboard settings to use a different binding, i.e.
|initiate the transient state
|quit transient state
|switch to actions page and leave the transient state
|execute action 0
|execute action 1
|execute action 2
|execute action 3
|execute action 4
|execute action 5
|execute action 6
|execute action 7
|execute action 8
|execute action 9
|switch to actions page
|go to first candidate
|go to last candidate
|go to previous source
|select next candidate
|select previous candidate
|go to next source
|mark current candidate
|mark all candidates
|execute persistent action
Helm actions for Buffer listλ︎
The transient state menu is really great for running actions over multiple files.
In this example Helm Transient State menu is used to select and kill multiple buffers easily. Combining the pattern based searching with marking files (
T marks all files listed for a particular pattern) makes it really easy to kill lots of Magit buffers that are no longer needed.
Prompt when using layouts
Layouts in Spacemacs show a prompt when killing a buffer that is not in the current layout, as seen at the end of the video when killing all magit buffers.
Layers separate projects into their own groups of buffers so its easier to switch between multiple projects.
a switches to the actions page, or using
C-z displays the list off all the available actions for a buffer.