diff options
| author | Magdalena Szweda <hi@roughlynamed.net> | 2026-10-03 10:15:33 +0200 |
|---|---|---|
| committer | Magdalena Szweda <hi@roughlynamed.net> | 2026-10-03 10:16:02 +0200 |
| commit | 0a69bbe686ec25ba24de91c9de7da97aca75b8b3 (patch) | |
| tree | b77fe195fd0196c0307816a251bc245c88d5bb5b /config.org | |
| parent | cb6352a50a8f14054c5d08d4b9c0cc58009e9cad (diff) | |
yay
Diffstat (limited to 'config.org')
| -rw-r--r-- | config.org | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -619,7 +619,32 @@ Here we fix it! (vc-jj--command-dispatched nil 0 nil "new" "--quiet"))) (advice-add 'vc-jj-checkin :override #'my/vc-jj-checkin)) #+end_src - +Now, this opens an ugly buffer in a split window and just... leaves it there. +A simple fix indeed. +#+begin_src emacs-lisp +(after! vc-jj + (add-to-list 'display-buffer-alist + '("\\`\\*vc-jj : " + (display-buffer-no-window) + (allow-no-window . t))) + + (defun my/vc-jj--report-push (&rest _) + (when-let* ((root (vc-jj-root default-directory)) + (buf (get-buffer (format "*vc-jj : %s*" (expand-file-name root)))) + (proc (get-buffer-process buf))) + (add-function + :around (process-sentinel proc) + (lambda (orig p event) + (unwind-protect (funcall orig p event) + (when (memq (process-status p) '(exit signal)) + (if (zerop (process-exit-status p)) + (message "vc-jj: push done") + (message "vc-jj: push FAILED, output below") + (let ((display-buffer-alist nil)) + (pop-to-buffer buf))))))))) + + (advice-add 'vc-jj-push :after #'my/vc-jj--report-push)) +#+end_src * Org ~Protesting for Org README support.~ |
