diff options
| author | Daniel Pettersson <daniel@dpettersson.net> | 2025-10-27 22:23:26 +0100 |
|---|---|---|
| committer | Daniel Pettersson <daniel@dpettersson.net> | 2025-10-27 22:23:26 +0100 |
| commit | ad4fe1aa4de5d3b012649bf869cb29d4369dec15 (patch) | |
| tree | 85dda43a139f55c7f8cb73f2f2e07c65313d7ffe | |
| parent | 5799a13ad52d2b91349a9a55c48eb2533c23882b (diff) | |
Add read config hook
As suggested in #212
| -rw-r--r-- | dape.el | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -738,6 +738,10 @@ compilation is successful." "Show `dape-configs' hints in minibuffer." :type 'boolean) +(defcustom dape-read-config-hook nil + "Called before `dape-configs' is evaluated into completion candidates." + :type 'hook) + (defcustom dape-minibuffer-hint-ignore-properties '( ensure fn modes command command-args command-env command-insert-stderr defer-launch-attach :type :request) @@ -5565,6 +5569,7 @@ nil." Completes from suggested conjurations, a configuration is suggested if it's for current `major-mode' and it's available. See `modes' and `ensure' in `dape-configs'." + (run-hooks 'dape-read-config-hook) (let* ((suggested-configs (cl-loop for (name . config) in dape-configs when (and (dape--config-mode-p config) |
