From 3433b1ad85fdd23c18d11d899754633a035e7483 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 29 Aug 2022 20:38:41 +0100 Subject: jao-tracking oops --- init.el | 5 ++--- lib/eos/jao-tracking.el | 4 +++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index 38e9c86..c841bf1 100644 --- a/init.el +++ b/init.el @@ -755,8 +755,7 @@ :init (setq jao-tracking-bkg (if (jao-colors-scheme-dark-p) "grey20" "grey93") jao-tracking-use-scratch (not window-system)) - :config (jao-tracking-set-up) - :bind (("C-c C-SPC" . jao-tracking-next-buffer))) + :config (jao-tracking-setup)) ;;;; tmr (use-package tmr @@ -3126,7 +3125,7 @@ (defalias 'jao-streaming-like #'jao-spt-like) (defalias 'jao-streaming-dislike #'jao-spt-dislike))) -(defvar jao-spt-on t) +(defvar jao-spt-on nil) (defun jao-spt-on-p () jao-spt-on) (jao-def-exec-in-term "spt" "spt" (jao-afio-goto-scratch t)) diff --git a/lib/eos/jao-tracking.el b/lib/eos/jao-tracking.el index 386cc12..badffae 100644 --- a/lib/eos/jao-tracking.el +++ b/lib/eos/jao-tracking.el @@ -149,7 +149,9 @@ (add-variable-watcher 'tracking-mode-line-buffers #'jao-tracking-echo) ;; since we're using the minibuffer, forget the mode line (advice-add #'tracking-mode :override (lambda (&optional _) (interactive))) - (add-hook 'jao-afio-switch-hook #'jao-tracking--remove-visible-buffers)) + (add-hook 'jao-afio-switch-hook #'jao-tracking--remove-visible-buffers) + (global-set-key (kbd "C-c C-SPC") #'jao-tracking-next-buffer) + (define-key tracking-mode-map (kbd "C-c C-SPC") #'jao-tracking-next-buffer)) (provide 'jao-tracking) ;;; jao-minibuffer-tracking.el ends here -- cgit v1.2.3