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.

55 lines
1.8 KiB

  1. User configuration notes
  2. ========================
  3. Below is a quick guide to necessary configurations for getting
  4. started with the Erlang mode for Emacs. Please refer to the
  5. Users guide and reference manual in the documentation for the
  6. Erlang/OTP application tools for more information.
  7. For UNIX users
  8. --------------
  9. To set up the Erlang Emacs mode on UNIX systems, edit/create the file
  10. .emacs in the your home directory.
  11. Below is a complete example of what should be added to a user's .emacs
  12. provided that OTP is installed in the directory /usr/local/otp:
  13. (setq load-path (cons "/usr/local/otp/lib/tools-<ToolsVer>/emacs"
  14. load-path))
  15. (setq erlang-root-dir "/usr/local/otp")
  16. (setq exec-path (cons "/usr/local/otp/bin" exec-path))
  17. (require 'erlang-start)
  18. For Windows users
  19. -----------------
  20. To set up the Erlang Emacs mode on Windows systems, edit/create the
  21. file .emacs, the location of the file depends on the configuration of
  22. the system. If the HOME environment variable is set, Emacs will look
  23. for the .emacs file in the directory indicated by the HOME
  24. variable. If HOME is not set, Emacs will look for the .emacs file in
  25. C:\.
  26. Below is a complete example of what should be added to a user's .emacs
  27. provided that OTP is installed in the directory C:\Program
  28. Files\erl-<Ver>:
  29. (setq load-path (cons "C:/Program Files/erl<Ver>/lib/tools-<ToolsVer>/emacs"
  30. load-path))
  31. (setq erlang-root-dir "C:/Program Files/erl<Ver>")
  32. (setq exec-path (cons "C:/Program Files/erl<Ver>/bin" exec-path))
  33. (require 'erlang-start)
  34. Miscellaneous addons
  35. --------------------
  36. In order to check erlang source code on the fly, add the following
  37. line to your .emacs file (after erlang-start, see above). See
  38. erlang-flymake.el for more information on how to customize the syntax
  39. check.
  40. (require 'erlang-flymake)