Created
October 5, 2012 22:56
-
-
Save cosmo0920/3842938 to your computer and use it in GitHub Desktop.
Prefixのghciとシステムのghciを切り替える
This file contains hidden or 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
;; Prefixのghciとシステムのghciを切り替える | |
(when (locate-library "haskell-mode") | |
(global-set-key "\C-\M-h" | |
(lambda () (interactive) | |
(setq haskell-program-name "~/gentoo/usr/bin/ghci") | |
(message "ghci change to ~/gentoo/usr/bin/ghci"))) | |
(global-set-key "\C-\M-c" | |
(lambda () (interactive) | |
(setq haskell-program-name "/usr/bin/ghci") | |
(message "ghci change to /usr/bin/ghci")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment