Upgrade to Pro — share decks privately, control downloads, hide ads and more …

A Hitchhiker's guide to Spacemacs

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →

A Hitchhiker's guide to Spacemacs

An introduction to Spacemacs

Avatar for Hemanth Haridas

Hemanth Haridas

April 14, 2020

More Decks by Hemanth Haridas

Other Decks in Programming

Transcript

  1. Agenda - Introduce Spacemacs - Spacemacs Configs - Projects and

    Files - Searching Files and terms - Rails - Git - Org
  2. Heads Up - This is only a small introduction. -

    I started using Spacemacs only 4 weeks ago. - I haven’t started using Spacemacs for all my projects
  3. Installing Spacemacs $ brew tap d12frosted/emacs-plus $ brew install emacs-plus

    $ sudo ln -s /usr/local/Cellar/emacs-plus/26.3/Emacs.app /Applications $git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d - Open Emacs and answer some simple questions to get started - Choose vim keybindings
  4. House Keeping SPC z f + → zoom SPC q

    q → Quit SPC q R → Restart
  5. Configs SPC T n → Cycle thru Themes SPC T

    s → Select theme SPC T F → Fullscreen
  6. Configuration SPC f e d → Open configs SPC f

    s → Save configs SPC q R → Restart Apply configs
  7. Files SPC f f → Search for files SPC f

    s → Save file SPC f f → to create a new file
  8. Code Navigation SPC p p → Search for a project

    SPC p t → Open project tree SPC p f → file within Project
  9. Code Navigation SPC 0 → Project Tree SPC 1 →

    Editor Window SPC TAB → Switch buffer
  10. Layout SPC w - → Split window SPC b x

    → Close current buffer SPC b h → Home buffer
  11. rails SPC m f i → Major mode SPC m

    x s → rails s SPC m k k → run rake task
  12. rails SPC m b i → bundle install mb SPC

    m b u → bundle update SPC m f c c → rails generate
  13. git SPC g s → git status SPC g b

    → git blame SPC g f d → git diff
  14. Git commit SPC g S → Stage a file SPC

    g b → git blame SPC g f d → git diff
  15. git SPC g s + l → git log SPC

    g s + cc → Start commit Add a commit message and exit
  16. Summary - Spacemacs , changing themes - Restart., quit, -

    Code navigation - Rails commands - Git commands