From d98fa38acab02d1ae05030c9fec699c297005df2 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 31 Aug 2020 14:09:01 +0100 Subject: Lint wpc-ocaml.el - Prefer `user-emacs-directory` to literal path. --- emacs/.emacs.d/wpc/wpc-ocaml.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/wpc/wpc-ocaml.el b/emacs/.emacs.d/wpc/wpc-ocaml.el index 3a05263087f7..6866652a50ed 100644 --- a/emacs/.emacs.d/wpc/wpc-ocaml.el +++ b/emacs/.emacs.d/wpc/wpc-ocaml.el @@ -19,7 +19,8 @@ (require 'prelude) (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.") (prelude/assert (f-file? opam-user-setup)) @@ -33,7 +34,7 @@ (add-hook-before-save 'tuareg-mode-hook #'ocamlformat-before-save)) ;; ocamlformat -(require 'opam-user-setup "~/.emacs.d/opam-user-setup.el") +(require 'opam-user-setup opam-user-setup) (require 'ocamlformat) (provide 'wpc-ocaml) -- cgit 1.4.1