Skip to content

Instantly share code, notes, and snippets.

@deeglaze
Created August 28, 2012 16:07
Show Gist options
  • Save deeglaze/3499555 to your computer and use it in GitHub Desktop.
Save deeglaze/3499555 to your computer and use it in GitHub Desktop.
Switch hyphen and underscore for Coq editing in emacs
(defun switch-hyphen ()
(interactive)
(define-key coq-mode-map (kbd "-") '(lambda () (interactive) (insert "_")))
(define-key coq-mode-map (kbd "_") '(lambda () (interactive) (insert "-"))))
(add-hook 'coq-mode-hook 'switch-hyphen)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment