Skip to content

Instantly share code, notes, and snippets.

@andiogenes
Created November 8, 2022 04:43
Show Gist options
  • Save andiogenes/e1e8176c1cb96b0560a62b4e63c55f05 to your computer and use it in GitHub Desktop.
Save andiogenes/e1e8176c1cb96b0560a62b4e63c55f05 to your computer and use it in GitHub Desktop.
;;; Rebind 'GOTO beginning/end of buffer' to "C-M-v"
(defun edge-of-buffer ()
(interactive)
(if (and current-prefix-arg (eq current-prefix-arg '-))
(beginning-of-buffer) (end-of-buffer)))
(global-set-key (kbd "C-M-v") 'edge-of-buffer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment