Write OCaml in Emacs

Asked 1 years ago, Updated 1 years ago, 84 views

I'm a beginner at OCaml.I'd like to write an OCaml program in Emacs, but how should I set the emacs mode in ocaml?

I tried the following settings in package.el, but I couldn't find ocaml in the list you can see in package-list-packages.

http://emacs-jp.github.io/packages/package-management/package-el.html

 (require'package)
(add-to-list 'package-archives' ("melpa". "http://melpa.org/packages/")t)
(add-to-list 'package-archives' ("melpa-stable". "http://stable.melpa.org/packages/")t)
(add-to-list 'package-archives' ("marmalade". "http://marmalade-repo.org/packages/")t)
(add-to-list 'package-archives' ("org". "http://orgmode.org/elpa/")t)
(package-initialize)

The environment is as follows:
OS: Ubuntu 14.04, Emacs 24.3.1

emacs ocaml

2022-09-30 18:47

2 Answers

tuareg-mode is commonly used.

Note: http://melpa.org/#/tuareg


2022-09-30 18:47

Since it's Ubuntu, you can add tuareg-mode from Synaptic etc.
I can't find any settings for ocaml in my init.el, so I should be able to use them as they are.


2022-09-30 18:47

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.