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.

59 lines
1.7 KiB

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