From 2e9c224c9a78b556a47a836ea1152903b2adbb8f Mon Sep 17 00:00:00 2001 From: Daniel Ziltener Date: Wed, 15 Nov 2023 17:44:10 +0100 Subject: [PATCH] . --- emacs/init.el | 26 ++++++-------------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/emacs/init.el b/emacs/init.el index 2a11cdc..242e393 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -368,6 +368,11 @@ :includeInlayEnumMemberValueHints t)))) :hook + (eglot-managed-mode . (lambda () + (add-hook 'before-save-hook + (lambda () + (call-interactively #'eglot-format-buffer)) + nil 'local))) (eglot-managed-mode . eglot-inlay-hints-mode) (eglot-managed-mode . #'my/eglot-capf)) @@ -379,7 +384,7 @@ ;;;;; Clojure (use-package clojure-ts-mode - :after (tree-sitter cider lispy) + :after (tree-sitter cider lispy eglot clojure-mode) :config (require 'sesman) (sesman-install-menu clojure-mode-map) @@ -504,22 +509,3 @@ (provide 'init) ;;; init.el ends here -(custom-set-variables - ;; custom-set-variables was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - '(custom-safe-themes - '("75fb82e748f32de807b3f9e8c72de801fdaeeb73c791f405d8f73711d0710856" "0527c20293f587f79fc1544a2472c8171abcc0fa767074a0d3ebac74793ab117" default)) - '(magit-todos-insert-after '(bottom) nil nil "Changed by setter of obsolete option `magit-todos-insert-at'") - '(safe-local-variable-values - '((eval progn - (global-display-fill-column-indicator-mode t) - (make-variable-buffer-local 'cider-jack-in-nrepl-middlewares) - (add-to-list 'cider-jack-in-nrepl-middlewares "shadow.cljs.devtools.server.nrepl/middleware"))))) -(custom-set-faces - ;; custom-set-faces was added by Custom. - ;; If you edit it by hand, you could mess it up, so be careful. - ;; Your init file should contain only one such instance. - ;; If there is more than one, they won't work right. - )