Move move .emacs.d out of configs/shared
Moving all of my Emacs-related files into their own directory at the root of this repository.
This commit is contained in:
parent
3684adf23f
commit
578ed1ba98
190 changed files with 41 additions and 302 deletions
43
emacs/.emacs.d/wpc/wpc-ocaml.el
Normal file
43
emacs/.emacs.d/wpc/wpc-ocaml.el
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
;;; wpc-ocaml.el --- My OCaml preferences -*- lexical-binding: t -*-
|
||||
;; Author: William Carroll <wpcarro@gmail.com>
|
||||
|
||||
;;; Commentary:
|
||||
;; Tooling support for OCaml development.
|
||||
;;
|
||||
;; Dependencies:
|
||||
;; - `opam install tuareg`
|
||||
;; - `opam install merlin`
|
||||
;; - `opam install user-setup && opam user-setup install`
|
||||
;; - `opam install ocamlformat`
|
||||
|
||||
;;; Code:
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Dependencies
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(require 'prelude)
|
||||
(require 'f)
|
||||
|
||||
(prelude/assert
|
||||
(prelude/executable-exists? "opam"))
|
||||
|
||||
(defvar opam-user-setup "~/.emacs.d/opam-user-setup.el"
|
||||
"File for the OPAM Emacs integration.")
|
||||
|
||||
(prelude/assert (f-file? opam-user-setup))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Configuration
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(use-package tuareg
|
||||
:config
|
||||
(add-hook-before-save 'tuareg-mode-hook #'ocamlformat-before-save))
|
||||
|
||||
;; ocamlformat
|
||||
(require 'opam-user-setup "~/.emacs.d/opam-user-setup.el")
|
||||
(require 'ocamlformat)
|
||||
|
||||
(provide 'wpc-ocaml)
|
||||
;;; wpc-ocaml.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue