about summary refs log tree commit diff
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/wpc/wpc-ocaml.el5
1 files changed, 3 insertions, 2 deletions
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)