Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Feature request: add configuration for a startup function

Open
#5 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
clojure
Domain
cli

Research direction

Read the existing hooks.clj example, then trace how configuration is read and how the REPL server starts. Add a configuration option that accepts a qualified symbol and runs it once at server startup; done means the function runs once when configured, and does not run when the option is absent.

Written by the indexing model from the issue text.

Description

While there are hooks and middleware and keybindings, those are not really the "right" place to put code that a user might want to execute as part of starting up a REPL.

For example, I like to define an uptime fn in the user ns, so I can quickly see how long I've had a particular REPL running. For now, I have this code in the existing hooks.clj example file but that feels "wrong".

Could you add a configuration key that takes a qualified symbol, which is executed once at server startup? Perhaps :init-fn or something similar.

Dominant language
Clojure
Stars
20
Forks
0
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from clojure/clojure-cli.repl

All issues in clojure/clojure-cli.repl

Similar issues

More Clojure issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.