aboutsummaryrefslogtreecommitdiff
path: root/config/emacs/init.el
diff options
context:
space:
mode:
authorNicholas Rodrigues Lordello <[email protected]>2025-03-12 13:46:45 +0100
committerNicholas Rodrigues Lordello <[email protected]>2025-03-12 13:46:45 +0100
commitb9d7af835c5e1cecf11f852dd033f48fac829d07 (patch)
tree9731ecdd95ec5091dfd545e9592ecba75ec95836 /config/emacs/init.el
parente35799c463c125d5f8558939f65f12bd3101c4c7 (diff)
Emacs macOS configuration with OCaml support
Diffstat (limited to 'config/emacs/init.el')
-rw-r--r--config/emacs/init.el38
1 files changed, 27 insertions, 11 deletions
diff --git a/config/emacs/init.el b/config/emacs/init.el
index 9b7bd47..d39a80b 100644
--- a/config/emacs/init.el
+++ b/config/emacs/init.el
@@ -1,7 +1,12 @@
(load "~/.config/emacs/sanemacs.el" nil t)
+(load "~/.config/emacs/ligatures.el" nil t)
(load "~/.config/emacs/meow.el" nil t)
-;;(load "~/.config/emacs/gtd.el" nil t)
-;;(load "~/.config/emacs/ligatures.el" nil t)
+
+(use-package ligature
+ :ensure t
+ :config
+ (ligature-set-ligatures 'prog-mode ligatures-berkeley-mono)
+ (global-ligature-mode t))
(use-package magit
:ensure t)
@@ -9,7 +14,7 @@
(use-package meow
:ensure t
:config
- (meow-setup)
+ (meow-setup-qwerty)
(meow-global-mode 1))
(use-package which-key
@@ -17,15 +22,26 @@
:config
(which-key-mode))
+;;; OCaml
+(use-package tuareg
+ :ensure t)
+(use-package ocaml-eglot
+ :ensure t
+ :after tuareg
+ :hook
+ (tuareg-mode . ocaml-eglot)
+ (ocaml-eglot . eglot-ensure))
+
;;; TODO(nlordell):
-;;; 1. Use built-in tree-sitter support (v29)
-;;; 2. Simplify GTD.el to match what I do in Journal.md
-;;; 3. Emacs over devcontainers/docker with TRAMP
+;;; 1. Update remaining init scripts:
+;;; (load "~/.config/emacs/gtd.el" nil t)
+;;; 2. Emacs over devcontainers/docker with TRAMP
;;; <https://happihacking.com/blog/posts/2023/dev-containers-emacs/>
-;;; 4. Investigate other potential sane Emacs defaults
+;;; 3. Investigate other potential sane Emacs defaults
;;; <https://idiomdrottning.org/bad-emacs-defaults>
-;;; 5. Matering Emacs <https://www.masteringemacs.org/>
-;;; Enable ligatures on macOS
-(if (fboundp 'mac-auto-operator-composition-mode)
- (mac-auto-operator-composition-mode))
+;;; Make the shell environement available when started on macOS Spotlight.
+(when (memq window-system '(mac ns))
+ (use-package exec-path-from-shell
+ :config
+ (exec-path-from-shell-initialize)))