LoginSignup
1
1

More than 3 years have passed since last update.

バッファの移動を上下左右自由に行う

Posted at

バッファの移動を上下左右自由に行いたかったので設定を編集しました。
ショートカットを追加します。

~/.spacemacs
(defun dotspacemacs/user-config ()
  "Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration.
This is the place where most of your configurations should be done. Unless it is
explicitly specified that a variable should be set before a package is loaded,
you should place your code here."
  (bind-keys*
   ;; move buffer
   ("C-t h" . windmove-left)
   ("C-t j" . windmove-down)
   ("C-t k" . windmove-up)
   ("C-t l" . windmove-right)
   ("C-t C-h" . windmove-left)
   ("C-t C-j" . windmove-down)
   ("C-t C-k" . windmove-up)
   ("C-t C-l" . windmove-right)
   )
  )

これで設定したキーバインド通りにショートカットが効き
上下左右のバッファ移動が可能になります。

1
1
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
1
1