Skip to content

Instantly share code, notes, and snippets.

@orta
Last active November 7, 2016 02:54
Show Gist options
  • Save orta/6e9e443ce59a0ae8c019 to your computer and use it in GitHub Desktop.
Save orta/6e9e443ce59a0ae8c019 to your computer and use it in GitHub Desktop.
Notes on Spacemacs

Start out

install via

  brew tap railwaycat/homebrew-emacsmacport
  brew install emacs-mac --with-spacemacs-icon  # OR, brew cask install emacs-mac
  brew linkapps

Terminology

  • Buffer = file
  • Window != NSWindow
  • Frame = NSWindow

Pre-reading

Notes

Commands
  • open a folder in spacemacs: https://gist.github.com/railwaycat/4043945 ? but emacsclient . & seems to do it pretty well too.
  • open a directory: SPC a d
  • open a file inside a project: SPC f f (find file)
  • open a new window with cmd n - sometimes :/
  • search current buffer for something SPC s s (search silly)
  • search keybindings SPC ?
  • open a previous project SPC p-p
Notes
  • cmd z does not undo. You press u when in normal non-editing mode.
  • When you do SPC-[x]: the bar at the bottom tells you what context you're in.
  • Doing SPC ; lets you type in a command

File Tree

Open a file tree to the left hand side: SPC f-t. This is emacs-neotree docs on NeoTree It's classed as a window, so you can jump to it with SPC 0 or cmd + 0.

Frame per project

I've not figured this out yet, feels really weird not being able to use my window manager to jump through multiple projects. eyebrowse and projectile seem to be things that might do this.

@orta
Copy link
Author

orta commented Jan 6, 2016

I'd really like to figure out how to make SPC p p open in a new frame.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment