about summary refs log tree commit diff
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·09+0100
committerWilliam Carroll <wpcarro@gmail.com>2020-08-31T13·09+0100
commitd98fa38acab02d1ae05030c9fec699c297005df2 (patch)
treefa1006375e10cb2d5360be0131d19d939a3c36d1 /emacs/.emacs.d
parent3b9656ca4a2c35681d74d8d8e86f7f161e159a84 (diff)
Lint wpc-ocaml.el
- Prefer `user-emacs-directory` to literal path.
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)