14
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

spacemacsのコマンドメモ

Last updated at Posted at 2017-07-07

Simple Tutorial
Spacemacs Documentation
EmacsをVimのごとく使う


Show Help

spc h k

Cancel

ctrl g

Eyebrowse

spc l 1
spc l r # set a tag to the current workspace

Search

spc s s

Redo

spc a u

Dired

spc f j

Quit Editor

spc q q

Get back into command mode

Esc
ctrl [
fd # rapidly press

Change .spacemacs configuration file

spc f e d # open the .spacemacs file (edit user-config section)
spc q r   # restart spacemacs, to make sure your changes take effect

Switch window

spc w j # move to the bottom window
spc w c # close the window

NeoTree

spc f t # NeoTree should open
shift K # to go up a directory
enter   # open the selected file
spc o t # NeoTree toggle

Find File in project

spc p f

Helm Find File

spc f f # fuzzy-search for files in the directory
ctrl h  # to go up a directory
tab     # auto-complete
ctrl j  # to go down
ctrl k  # to go up

Save file

spc f s # save that buffer to a file

Create file

spc f f # Helm Find Files
# Type in the name of the new file and press enter
# Type y to create the new buffer
spc f s # to save the file

Switch between files (buffers)

spc b b
*scratch* # emacs lisp
spc m e e # execute

Jump back to the previous buffer

spc tab # the previous buffer appear

Find Text

spc /   # find text in project
spc *   # find text under cursor in project
spc s l # resume last search
:.,$s/<find text>/<replace text>/gc # find and replace text in buffer, from current line

Layer

the list of available layers

M-m f e h # already available in spacemacs

Switch font size

spc z x # bring up the scale-font menu
ctrl +  # to change font size (bind in .spacemacs)
ctrl -  # to change font size (bind in .spacemacs)

Quickly jump somewhere in a buffer using Avy

spc j j # avy word
spc j l # avy line

Window Layouts

spc l l # create a named layout
spc l S # save a layout by name
spc l <number of layout> # switch to layout

Yank History

spc r y # show previous things you've copied (yanked)

Comment

g c c # comment on / off
gc    # comment out highlighted text

Show whitespace

spc t w

Create a keyboard shortcut

# spc f e d
# (defun dotspacemacs/user-config ()
# (spacemacs/set-leader-keys "ot" 'neotree-toggle)
# spc o and spc m o are reserved for user
14
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
14
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?