Skip to content

Instantly share code, notes, and snippets.

@syohex
Created November 28, 2011 02:50
Show Gist options
  • Save syohex/1398881 to your computer and use it in GitHub Desktop.
Save syohex/1398881 to your computer and use it in GitHub Desktop.
goto column function. This is convenient for moving very long line
;; goto-column
(defun my/goto-column (column)
(interactive
(list (read-string "Goto Column: ")))
(move-to-column (string-to-int column)))
(global-set-key (kbd "M-g c") 'my/goto-column)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment