Ocaml
This commit is contained in:
1
init.el
1
init.el
@@ -22,3 +22,4 @@
|
||||
(require 'init-python)
|
||||
(require 'init-haskell)
|
||||
(require 'init-rust)
|
||||
(require 'init-ocaml)
|
||||
|
||||
@@ -14,4 +14,6 @@
|
||||
(global-set-key (kbd "s-k") #'kill-current-buffer)
|
||||
(global-set-key (kbd "C-c q r") #'restart-emacs)
|
||||
|
||||
(global-set-key (kbd "C-c C-c") #'compile)
|
||||
|
||||
(provide 'init-bindings)
|
||||
|
||||
16
lisp/init-ocaml.el
Normal file
16
lisp/init-ocaml.el
Normal file
@@ -0,0 +1,16 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
|
||||
(use-package tuareg
|
||||
:ensure t
|
||||
:mode (("\\.ocamlinit\\'" . tuareg-mode)))
|
||||
|
||||
|
||||
(use-package ocaml-eglot
|
||||
:ensure t
|
||||
:after tuareg
|
||||
:hook
|
||||
(tuareg-mode . ocaml-eglot)
|
||||
(ocaml-eglot . eglot-ensure))
|
||||
|
||||
(provide 'init-ocaml)
|
||||
Reference in New Issue
Block a user