Emacs config utilizing prelude as a base
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
1.7 KiB

  1. ;;; prelude-erlang.el --- Emacs Prelude: Erlang programming support.
  2. ;;
  3. ;; Copyright (c) 2011-2012 Gleb Peregud
  4. ;;
  5. ;; Author: Gleb Peregud <gleber.p@gmail.com>
  6. ;; Version: 1.0.0
  7. ;; Keywords: convenience erlang
  8. ;; Package-Requires: ((erlang "2.4.1") (projectile "0.7"))
  9. ;; This file is not part of GNU Emacs.
  10. ;;; Commentary:
  11. ;; Erlang is a concurrent functional language.
  12. ;;; License:
  13. ;; This program is free software; you can redistribute it and/or
  14. ;; modify it under the terms of the GNU General Public License
  15. ;; as published by the Free Software Foundation; either version 3
  16. ;; of the License, or (at your option) any later version.
  17. ;;
  18. ;; This program is distributed in the hope that it will be useful,
  19. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. ;; GNU General Public License for more details.
  22. ;;
  23. ;; You should have received a copy of the GNU General Public License
  24. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  25. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  26. ;; Boston, MA 02110-1301, USA.
  27. ;;; Code:
  28. (require 'prelude-programming)
  29. (prelude-ensure-module-deps '(erlang))
  30. (defcustom wrangler-path nil
  31. "*The location of wrangler elisp directory"
  32. :group 'prelude-erlang
  33. :type 'string
  34. :safe 'stringp)
  35. (require 'projectile)
  36. (when (require 'erlang-start nil t)
  37. (eval-after-load 'erlang-mode
  38. '(progn
  39. (flymake-mode)))
  40. (when (not (null wrangler-path))
  41. (add-to-list 'load-path wrangler-path)
  42. (require 'wrangler)))
  43. (add-hook 'erlang-mode-hook (lambda ()
  44. (setq erlang-compile-function 'projectile-compile-project)))
  45. (provide 'prelude-erlang)
  46. ;;; prelude-erlang.el ends here