Created
April 29, 2021 11:43
-
-
Save ionling/9fa34d6df14b295a0b28dd2ea83e117f to your computer and use it in GitHub Desktop.
Emacs golines wrapper
This file contains 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
;; Require golines tool. | |
;; See https://github.com/segmentio/golines | |
(defun v-go-shorten-lines () | |
"Shorten long lines in current file." | |
(interactive) | |
(save-buffer) | |
(shell-command | |
(format "golines --no-reformat-tags -m %s -w %s" | |
fill-column buffer-file-name))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment