diff options
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 |
