diff options
-rw-r--r-- | init.org | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -3076,9 +3076,17 @@ ;; one also needs jenkins-api-token, jenkins-username and jenkins-url ;; optionally: jenkins-colwidth-id, jenkins-colwidth-last-status (setq jenkins-colwidth-name 35) + :config + (defun jao-jenkins-first-job () + (interactive) + (goto-char (point-min)) + (when (re-search-forward "^- Job" nil t) + (goto-char (match-beginning 0)))) + (add-hook 'jenkins-job-view-mode-hook #'jao-jenkins-first-job) :bind (:map jenkins-job-view-mode-map (("n" . next-line) ("p" . previous-line) + ("f" . jao-jenkins-first-job) ("RET" . jenkins--show-console-output-from-job-screen)) :map jenkins-console-output-mode-map (("n" . next-line) |