Skip to content

Instantly share code, notes, and snippets.

@tek-nishi
Created August 22, 2017 13:13
Show Gist options
  • Save tek-nishi/304af6b4cf061ddb9f799d1f8197291d to your computer and use it in GitHub Desktop.
Save tek-nishi/304af6b4cf061ddb9f799d1f8197291d to your computer and use it in GitHub Desktop.
If mark-active, align. else align-current.
(defun my-align (&optional beg end)
"リージョンが有効ならその範囲を整列\nそうでないならポイント位置の段落を整列"
(interactive "r")
(if mark-active
(align beg end)
(align-current)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment