Skip to content

Instantly share code, notes, and snippets.

@timjstewart
Created May 11, 2018 05:23
Show Gist options
  • Save timjstewart/a3126ff0ec12b766e66f10462c38a693 to your computer and use it in GitHub Desktop.
Save timjstewart/a3126ff0ec12b766e66f10462c38a693 to your computer and use it in GitHub Desktop.
#+OPTIONS: num:nil
* Bookmarks
** C-x r m - Create Bookmark
** C-x r l - List Bookmarks
Allows you to delete bookmarks. Does not use EVIL bindings.
* Spacemacs SPC Commands
** SPC ! - Shell Command
Runs a shell command in the current directory. The command output is captured
in a separate window.
** SPC ' - Open Shell
Opens a shell window in a separate window.
** SPC * - Smart Search on Input (in files)
Performs a search for the text at point in the current directory.
** SPC / - Smart Search (in files)
Performs a search for specified text in the current directory.
** SPC 0 - Show NeoTree
Shows the current directory in NeoTree
** SPC 1..9 - Select Window by Number
This makes switching between windows very efficient. The window numbers are
displayed on each window.
** SPC ? - Show Keybindings
** SPC a - Applications
*** SPC a ' - select a REPL and run it.
*** SPC a d - dired (pick a directory)
*** SPC a u - undo tree (see the changes you made)
Navigate the undo tree and select a node.
*** SPC V - Vagrant Operations
*** SPC y - iPython Notebook Options
Login using the token, then open the notebook.
*** SPC a o - org
**** SPC a o / - Occur in Agenda
**** SPC a o a - Agenda List
**** SPC a o c - Capture
**** SPC a o l - Store Link
**** SPC a o m - Tags View of Agenda Files
**** SPC a o o - Agenda Menu
**** SPC a o p - Capture a Project TODO item :cool:
**** SPC a o t - TODO list
** SPC b - Buffers
*** SPC b . - Transient State
SMove between buffers, swap buffers, kill buffers, etc. PC b
*** SPC b a - Add buffer to Perspective
*** SPC b d - Kill this buffer
*** SPC b f - Reveal file in Mac OS X Finder
SDoes not actually open the file, just shows it in FinderPC b
*** SPC b h - Home Buffer
SWhere you can upgrade packages and search for documentation.PC b
*** SPC b m - Switch to messages buffer
SSee what messages have been published.PC b
*** SPC b N - New Empty Buffer Options
SCreate an empty buffer exactly where you want it.PC b
*** SPC b n - Next Buffer
SNavigate to the next buffer.PC b
*** SPC b P - Copy Clipboard to Entire Buffer
SWhen you want to completely overwrite your buffer with the clipboard
Scontents.PC b PC b
*** SPC b p - Previous Buffer
SNavigate to the previous buffer.PC b
*** SPC b r - Remove buffer from Perspective
*** SPC b u - Reopen Killed Buffer
SWhen you accidentally kill a buffer.PC b
*** SPC b W - Go to buffer workspace
SSelect a file and go to its workspace. PC b
*** SPC b w - Toggle Read Only
*** SPC b x - Kill Buffer and Window
SWhen you don't want the buffer or the window.PC b
*** SPC b Y - Copy Entire file to Clipboard
When you want to copy the entire buffer to the clipboard.
** SPC c - Compile / Comments
Come back to this *if* you ever work on languages that compile again.
*** SPC c h - show or hide comments
** SPC d - Dash Documentation
*** SPC d h - Open Documentation for symbol at point in Browser
** SPC e - Errors
*** SPC e . - Transient State
*** SPC e b - Flycheck Bufer
*** SPC e L - Error List
*** SPC e N - Previous Error
*** SPC e n - Next Error
*** SPC e v - Verify Setup
*** SPC e x - Explain Error at Point
*** SPC e s - Select Checker
** SPC f - Files
*** SPC f c - copy file
*** SPC f b - Bookmarks
*** SPC f D - Delete Current Buffer's File
*** SPC f R - Rename Current Buffer's File
*** SPC f y - Show and Copy Buffer's File Name
*** SPC f j - Jump to Buffer's Directory
*** SPC f E - Sudo Edit File
** SPC F - Frame
*** SPC F B - Display Buffer Other Frame
Pick the buffer and it gets opened in another frame.
*** SPC F b - Switch to Buffer Other Frame
*** SPC F d - Delete Frame
*** SPC F f - Find File Other Frame
*** SPC F O - Dired Other Frame
*** SPC F o - Other Frame
*** SPC F n - Make Frame
** SPC g - Git
*** SPC g b - blame microstate
*** SPC g c - clone repository
*** SPC g m - dispatch popup :cool:
*** SPC g t - Time Machine
*** SPC g U - Unstage File
*** SPC g S - Stage File
*** SPC g l - Link Options
*** SPC g H - Highlight Options
*** TODO SPC g f - File Options
Logging
** SPC i - Insert
*** SPC i l - Lorem Ipsum Options
*** SPC i p - passwords including Paranoid Passwords
*** SPC i u - UNICODE Characters
*** SPC i U - UUID Options
** SPC j - Jump / Join / Split
*** SPC j = - indent buffer
*** SPC j D - Dired Jump Other Window :cool:
*** SPC j f - Find ELisp Function (only elisp?)
*** SPC j v - Find ELisp Variable (only elisp?)
*** SPC j i - Jump In Buffer (as in to a function)
*** SPC j I - IMenu in ALL Buffers
*** SPC j u - Avy Jump To URL
*** SPC j l - Avy Jump To Line
*** SPC j w - Avy Jump To Word or Subword
** SPC l - layouts (transient)
Access Layouts and Windows
** SPC l - LISP
** SPC m - Major Mode Commands
Mode Specific Commands. Looks to be the same as the comma key.
** SPC n - Narrow and Numbers
*** SPC n + - increment number like vim's C-A
*** SPC n - - decrement number like vim's C-X
*** SPC n f - narrow to function
*** SPC n r - narrow to region
*** SPC n w - widen
** SPC p - Projects
*** SPC p % - Replace Regular Expression
*** SPC p a - toggle between implementation and test
*** SPC p d - find directory
*** SPC p G - regenerate TAGS file
*** SPC p g - find tagsregenerate TAGS file
*** SPC p I - Invalidate Cache
*** SPC p o - Go to Project TODO
*** SPC p t - NeoTree in Project :cool:
*** SPC p R - Project Replace
*** SPC p r - Recent Project Files :cool:
*** SPC p T - Test Project
*** SPC p t - NeoTree Project Root
*** SPC p v - Version Control (e.g. git/magit)
** SPC r - Registers / Rings / Resume
*** SPC r e - Evil Show Registers
*** SPC r l - Resume Helm
*** SPC r m - Helm All Mark Rings
*** SPC r r - Helm Show Registers
*** SPC r y - Show Kill Ring
** SPC s - Search / Symbols
Lots of options with the word smart in them. Research that.
*** TODO SPC s ` - Pop Ag Stack (What is that?)
*** SPC s c - Clear Highlight
*** SPC s e - IEdit Mode
*** SPC s s - Helm Swoop
*** SPC s S - Helm Swoop Region or Symbol
*** SPC s C-s - Helm Multi Swoop
*** SPC s F - search for text in selected directory
*** SPC s D - search for text in current directory :cool:
*** SPC s B - search for text in buffers
*** SPC s w - web (Google and Wikipedia)
**** SPC s w g - Google
**** SPC s w w - Wikipedia
** SPC v - Expand Region
*** v - expand again
*** V - contract
*** r - reset
*** e - edit
*** / - search in project
Once you have a region selected, you can search for that region in the
current project.
*** f - search in files
Once you have a region selected, you can search for that region in a
directory of your choice.
*** b - search in buffers
Once you have a region selected, you can search for that region in the
open buffers.
** SPC w - Windows
*** SPC w - - Split window below
*** SPC w / - Split window right
*** SPC w 1 - 1 Column Layout
*** SPC w 2 - 2 Column Layout
*** SPC w 3 - 3 Column Layout
*** SPC w = - Balance Window Area
*** SPC w _ - Maximize Window Horizontally
*** SPC w c - Centered Window
*** SPC w C - Centered Window in New Frame
*** SPC w h - Move to the Left Window
*** SPC w h - Move to the Right Window
*** SPC w H - Move Window to the Left
*** SPC w H - Move Window to the Right
*** SPC w j - Move to the Lower Window
*** SPC w J - Move Window to the Bottom
*** SPC w k - Move to the Upper Window
*** SPC w K - Move Window to the Top
*** SPC w M - Ace Swap Window
*** SPC w m - Maximize Window
*** SPC w o - Other Frame
*** SPC w R - Rotate Windows Backwards
*** SPC w r - Rotate Windows Forwards
*** SPC w s - Split Window Below
*** SPC w S - Split Window Below and Focus
*** SPC w v - Split Window Right
*** SPC w V - Split Window Right and Focus
*** SPC w W - Ace Select Window
*** SPC w w - Other Window
*** SPC w | - Maximize Window Vertically
** SPC z - Zoom
*** SPC z . - Fold Transient Mode
Allows you to fold and unfold various blocks of code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment