LoginSignup
12

More than 5 years have passed since last update.

spacemacsでよく使うコマンド

Last updated at Posted at 2017-01-28

俺様用しおり

何も押さない状態でwhich-keyを発動させる

[SPC h k] which-key-show-top-level

 magit-statusの画面

[SPC g s]magit-statusではいる

  • [b b]magit-checktout
  • [b c]magit-branch-and-checkout リモートのブランチをチェックアウトしたり、新しいブランチを作ったりする時に使う
  • [Z z]magit-stash
  • [A]magit-stash-pop popしたいstashを選択した状態で行う
  • [r i]magit-rebase-interactive コミットを綺麗に整理したいときに M-j,M-kなどでコミットの順番を入れ替えたりsでsquashしたりできる。
  • [r e]magit-rebase onto elsewhereでmasterを選択 最新のmasterからブランチを切ったかのようにrebaseを行う

Spacemacsの更新手順

  1. [SPC p l]helm-persp-switch-project でspacemacsレポジトリへ移動
  2. [F u]magit-pull-popup で upstream を選択する
  3. [SPC SPC]のあとconfiguration-layer/update-packagesを選択する
  4. [f e R]dotspacemacs/sync-configration-layers

ディフォルトの.spacemacsと自分の.spacemacsの差分を見る

時々テンプレート側が更新されるので確認する。
自分はこだわりがない限りテンプレート側の設定を尊重することにしている。

[SPC f e D]ediff-dotfile-and-template
で標準添付の設定ファイルと比較する。
n,pでhunk間を移動できる。

編集のファイルのディレクトリでシェルを開く

[SPC '] open shell
Ctrl-dでシェルを閉じられる

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
12