This commit is contained in:
Zelong Kuang
2025-12-17 03:55:28 +11:00
parent 286d4d6832
commit 0d833adbfe
3 changed files with 19 additions and 0 deletions

View File

@@ -22,3 +22,4 @@
(require 'init-python)
(require 'init-haskell)
(require 'init-rust)
(require 'init-ocaml)

View File

@@ -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
View 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)