Created
December 8, 2012 11:41
-
-
Save bdionne/4239944 to your computer and use it in GitHub Desktop.
This file contains 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
(setq erlang-indent-level 4) | |
(setq erlang-tab-always-indent t) | |
(setq erlang-electric-commands t) | |
(require 'distel) | |
(distel-setup) | |
(defconst distel-shell-keys | |
'(("C-M-i" erl-complete) | |
("M-?" erl-complete) | |
("M-." erl-find-source-under-point) | |
("M-," erl-find-source-unwind) | |
("M-*" erl-find-source-unwind) | |
) | |
"Additional keys to bind when in Erlang shell.") | |
(add-hook 'erlang-shell-mode-hook | |
(lambda () | |
;; add some Distel bindings to the Erlang shell | |
(dolist (spec distel-shell-keys) | |
(define-key erlang-shell-mode-map (car spec) (cadr spec))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment