summaryrefslogtreecommitdiff
path: root/.emacs.d/init-spw.el
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2021-11-10 17:02:07 -0700
committerSean Whitton <spwhitton@spwhitton.name>2021-11-10 17:02:07 -0700
commit440826f477a3dff24863bbe6bc162b0915f0979c (patch)
tree861fdbe53fbc645de659ec77c599952d36d6764c /.emacs.d/init-spw.el
parent0d7d66c2ae926426ea06dccf01ec2687747368ac (diff)
downloaddotfiles-440826f477a3dff24863bbe6bc162b0915f0979c.tar.gz
load Consfigurator indentation hints when load slime-cl-indent too
Diffstat (limited to '.emacs.d/init-spw.el')
-rw-r--r--.emacs.d/init-spw.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el
index be288032..5d5b2aaf 100644
--- a/.emacs.d/init-spw.el
+++ b/.emacs.d/init-spw.el
@@ -2731,13 +2731,16 @@ mutt's review view, after exiting EDITOR."
(add-hook 'elpher-mode-hook (lambda () (variable-pitch-mode 1))))
(spw/when-library-available consfigurator
- (with-eval-after-load 'cl-indent
- (activate-consfigurator-indentation-hints)
-
- ;; These are for definitions from my consfig.
+ (defun spw/consfig-indentation-hints ()
(put 'spwcrontab 'common-lisp-indent-function '1)
(put 'kvm-boots-trusted-chroot. 'common-lisp-indent-function '1)
- (put 'athenet-container-for. 'common-lisp-indent-function '3)))
+ (put 'athenet-container-for. 'common-lisp-indent-function '3))
+ (advice-add 'activate-consfigurator-indentation-hints
+ :after #'spw/consfig-indentation-hints)
+ (with-eval-after-load 'cl-indent
+ (activate-consfigurator-indentation-hints))
+ (with-eval-after-load 'slime-cl-indent
+ (activate-consfigurator-indentation-hints)))
;;;; Lisp