tvl-depot/configs/shared/.emacs.d/wpc/packages/wpc-ocaml.el
William Carroll b843e0f8f6 Remove opam-install variable and assertion
The `prelude/assert` for the existence of the `opam-install` directory was
failing.

I believe this assertion would have been failing sooner, but a bug in my
initialization was preventing Emacs from evaluating `wpc-ocaml.el`. It seems
that I removed whatever was jamming the initialization and as such, I uncovered
some more bugs.

Let this serve as a reminder that just because it hasn't bitten you yet, doesn't
mean that your software doesn't have a bug.
2020-01-22 21:13:06 +00:00

43 lines
1.2 KiB
EmacsLisp

;;; wpc-ocaml.el --- My OCaml preferences -*- lexical-binding: t -*-
;; Author: William Carroll <wpcarro@gmail.com>
;;; Commentary:
;; Tooling support for OCaml development.
;;
;; Dependencies:
;; - `opam install tuareg`
;; - `opam install merlin`
;; - `opam install user-setup && opam user-setup install`
;; - `opam install ocamlformat`
;;; Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Dependencies
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'prelude)
(require 'f)
(prelude/assert
(prelude/executable-exists? "opam"))
(defvar opam-user-setup "~/.emacs.d/opam-user-setup.el"
"File for the OPAM Emacs integration.")
(prelude/assert (f-file? opam-user-setup))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Configuration
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(use-package tuareg
:config
(add-hook-before-save 'tuareg-mode-hook #'ocamlformat-before-save))
;; ocamlformat
(require 'opam-user-setup "~/.emacs.d/opam-user-setup.el")
(require 'ocamlformat)
(provide 'wpc-ocaml)
;;; wpc-ocaml.el ends here