summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2021-05-21 02:31:16 +0100
committerjao <jao@gnu.org>2021-05-21 02:31:16 +0100
commit57739cadffbe491dbc839527929bd991f1e8a2c6 (patch)
tree5517f94f4f04c5b776162b24402e81d8c9c77b54
parentdb796a2835aa2eaf35807570b45991c15acada1a (diff)
downloadelibs-57739cadffbe491dbc839527929bd991f1e8a2c6.tar.gz
elibs-57739cadffbe491dbc839527929bd991f1e8a2c6.tar.bz2
cider quirks
-rw-r--r--init.org20
1 files 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