Skip to content

Instantly share code, notes, and snippets.

@gsg
Created April 4, 2015 18:56
Show Gist options
  • Save gsg/19452c1c0bb54a462771 to your computer and use it in GitHub Desktop.
Save gsg/19452c1c0bb54a462771 to your computer and use it in GitHub Desktop.
(global-set-key (kbd "C-x c") 'compile)
(define-minor-mode ludus-mode "A minor mode for developing the ludus project" nil "Ludus"
'(([rebind compile] . ludus-compile)))
(defun ludus-compile ()
(interactive)
(insert "ding"))
(define-minor-mode test-mode "test mode" nil "TEST"
'(([remap compile] . new-compile)))
(defun new-compile ()
(interactive)
(insert "ding"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment