Lint wpc-ocaml.el

- Prefer `user-emacs-directory` to literal path.
This commit is contained in:
William Carroll 2020-08-31 14:09:01 +01:00
parent 3b9656ca4a
commit d98fa38aca

View file

@ -19,7 +19,8 @@
(require 'prelude) (require 'prelude)
(require 'f) (require 'f)
(defvar opam-user-setup "~/.emacs.d/opam-user-setup.el" (defconst opam-user-setup
(f-join user-emacs-directory "opam-user-setup.el")
"File for the OPAM Emacs integration.") "File for the OPAM Emacs integration.")
(prelude/assert (f-file? opam-user-setup)) (prelude/assert (f-file? opam-user-setup))
@ -33,7 +34,7 @@
(add-hook-before-save 'tuareg-mode-hook #'ocamlformat-before-save)) (add-hook-before-save 'tuareg-mode-hook #'ocamlformat-before-save))
;; ocamlformat ;; ocamlformat
(require 'opam-user-setup "~/.emacs.d/opam-user-setup.el") (require 'opam-user-setup opam-user-setup)
(require 'ocamlformat) (require 'ocamlformat)
(provide 'wpc-ocaml) (provide 'wpc-ocaml)