Skip to content

Instantly share code, notes, and snippets.

@IgorKarymov
Created July 30, 2011 11:27
Show Gist options
  • Save IgorKarymov/1115435 to your computer and use it in GitHub Desktop.
Save IgorKarymov/1115435 to your computer and use it in GitHub Desktop.
(color-theme-tangotango)
;;erlang
(setq auto-mode-alist (cons '("\\.app\\'" . erlang-mode) auto-mode-alist))
(add-hook 'erlang-mode-hook 'my-erlang-mode-settings)
(add-hook 'erlang-mode-hook 'idle-highlight)
(defun my-erlang-mode-settings ()
(setq indent-tabs-mode nil)
(setq tab-width 4)
(defun make-all ()
(interactive)
(compile "make" t))
(defun make-clean ()
(interactive)
(compile "rebar clean" t))
(global-set-key (kbd "<f11>") 'make-all)
(global-set-key (kbd "<f12>") 'make-clean)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment