Skip to content

Instantly share code, notes, and snippets.

@tek-nishi
Last active August 10, 2017 06:25
Show Gist options
  • Save tek-nishi/6ada3014bae477a914e075dcb9ec61cc to your computer and use it in GitHub Desktop.
Save tek-nishi/6ada3014bae477a914e075dcb9ec61cc to your computer and use it in GitHub Desktop.
対応する括弧へ移動(Vz風)
(defun my-jump-brace()
"対応括弧へジャンプ"
(interactive)
(let ((c (following-char))
(p (preceding-char)))
(if (eq (char-syntax c) 40) (forward-list)
(if (eq (char-syntax p) 41) (backward-list)
(backward-up-list)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment