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.el | |
| parent | cb6352a50a8f14054c5d08d4b9c0cc58009e9cad (diff) | |
yay
Diffstat (limited to 'config.el')
| -rw-r--r-- | config.el | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -335,6 +335,29 @@ emms-cache-file (concat doom-cache-dir "emms-cache")) (vc-jj--command-dispatched nil 0 nil "new" "--quiet"))) (advice-add 'vc-jj-checkin :override #'my/vc-jj-checkin)) +(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)) + (setq org-directory "~/org/") (after! org |
