Lint wpc-ocaml.el
- Prefer `user-emacs-directory` to literal path.
This commit is contained in:
parent
3b9656ca4a
commit
d98fa38aca
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue