Skip to content

Instantly share code, notes, and snippets.

@ahmed1hsn
Last active June 2, 2025 20:41
Show Gist options
  • Select an option

  • Save ahmed1hsn/af1e0bd2bb7cf2421a906e8ca160876b to your computer and use it in GitHub Desktop.

Select an option

Save ahmed1hsn/af1e0bd2bb7cf2421a906e8ca160876b to your computer and use it in GitHub Desktop.
.dir-locals.el file for quickly starting emacs inf-clojure babashka socket repl => (C-c C-z or M-x inf-clojure)
((nil .
((inf-clojure-custom-startup . "bb socket-repl 1666")
(inf-clojure-custom-repl-type . babashka))))
(use-package inf-clojure
:config
(add-hook 'clojure-mode-hook #'inf-clojure-minor-mode)
(setq inf-clojure-auto-mode nil) ;; necessary, otherwise we receive errors on C-c C-z commands (or even inf-clojure command)
)
@ahmed1hsn
Copy link
Author

NOTE: empty bb.edn file needs to be preset in the root of the project for inf-clojure to start.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment