From 57739cadffbe491dbc839527929bd991f1e8a2c6 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 21 May 2021 02:31:16 +0100 Subject: cider quirks --- init.org | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/init.org b/init.org index 8b7cf00..0e4ed66 100644 --- a/init.org +++ b/init.org @@ -2444,7 +2444,6 @@ (use-package cider :ensure t :commands cider-mode - ;; :pin melpa-stable :init (setq cider-annotate-completion-candidates t cider-auto-select-error-buffer nil clojure-docstring-fill-column 72 @@ -2463,15 +2462,18 @@ cider-eldoc-display-for-symbol-at-point t eldoc-echo-area-use-multiline-p nil nrepl-prompt-to-kill-server-buffer-on-quit nil) + + (defun jao-cider--tabs-workaround () (setq-local tab-always-indent t)) + :hook ((cider-mode . cider-company-enable-fuzzy-completion) - (cider-mode . cider-eldoc-setup))) - - (eval-after-load "cider-test" - '(progn - (advice-add 'cider-scale-background-color :override - (lambda () (frame-parameter nil 'background-color))) - (setq cider-test-items-background-color - (frame-parameter nil 'background-color)))) + (cider-mode . cider-eldoc-setup) + (cider-mode . jao-cider--tabs-workaround))) + + (with-eval-after-load "cider-test" + (advice-add 'cider-scale-background-color :override + (lambda () (frame-parameter nil 'background-color))) + (setq cider-test-items-background-color + (frame-parameter nil 'background-color))) (use-package cider-macroexpansion :after cider -- cgit v1.2.3