Created
August 22, 2017 13:13
-
-
Save tek-nishi/304af6b4cf061ddb9f799d1f8197291d to your computer and use it in GitHub Desktop.
If mark-active, align. else align-current.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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