aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/oni-dashboard.el
blob: 6cc797e1b2710344440c59b053b5941a00519524 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
;; Start of oni-dashboard

(use-package dashboard
  :init
  (setq dashboard-navigator-buttons
	`((("💬";; ,(propertize " " 'display `(image :type svg :file ,(expand-file-name "search.svg" oni-gui-icons-dir) :ascent center :margin (5 . 0)))
	    "Conversations" "Open pull requests"
	    (lambda (&rest _)
              (browse-url "https://github.com/pulls?q=commenter%3Atomw-punt+review%3Achanges_requested+is%3Aopen"))
	    default "[" "]")
           ("⛙";; ,(propertize " " 'display `(image :type svg :file ,(expand-file-name "search.svg" oni-gui-icons-dir) :ascent center :margin (5 . 0)))
	    "PRs" "Open pull requests"
	    (lambda (&rest _)
              (browse-url "https://github.com/pulls?q=is%3Aopen+is%3Apr+org%3Ajuked-social+draft%3Afalse+review%3Anone+-author%3Aapp%2Fdependabot+-base%3Adev+-base%3Amain+-base%3Achanced_dev"))
	    default "[" "]"))
          (("⛙" ;; ,(propertize " " 'display `(image :type svg :file ,(expand-file-name "search.svg" oni-gui-icons-dir) :ascent center :margin (5 . 0)))
	    "back-end" "Unmerged into back-end"
	    (lambda (&rest _)
              (browse-url "https://github.com/juked-social/social-api/compare/main...staging"))
	    default "[" "]")
           ("⛙" ;; ,(propertize " " 'display `(image :type svg :file ,(expand-file-name "search.svg" oni-gui-icons-dir) :ascent center :margin (5 . 0)))
	    "chanced" "Unmerged into chanced front-end"
	    (lambda (&rest _)
              (browse-url "https://github.com/juked-social/chanced-frontend/compare/main...staging"))
	    default "[" "]")
           ("⛙" ;; ,(propertize " " 'display `(image :type svg :file ,(expand-file-name "search.svg" oni-gui-icons-dir) :ascent center :margin (5 . 0)))
	    "punt" "Unmerged into punt front-end"
	    (lambda (&rest _)
              (browse-url "https://github.com/juked-social/punt-frontend/compare/main...staging"))
	    default "[" "]"))))
  (dashboard-setup-startup-hook)
  (run-with-idle-timer 300 t (lambda ()
                               (display-buffer dashboard-buffer-name '(display-buffer-full-frame))))
  (run-at-time "02:00" 86400 #'dashboard-open)
  (setq dashboard-set-navigator t)
  :config
  (setq dashboard-startup-banner "~/code/personal/dotfiles/oni/home/services/emacs/pop-os-logo.svg")
  (setq dashboard-set-footer nil)
  (setq dashboard-projects-show-base t)
  (setq dashboard-recentf-show-base t)
  (setq dashboard-startupify-list
        '(dashboard-insert-banner
          dashboard-insert-newline
          dashboard-insert-banner-title
          dashboard-insert-newline
          dashboard-insert-init-info
          dashboard-insert-newline
          dashboard-insert-navigator
          dashboard-insert-items
          dashboard-insert-newline
          dashboard-insert-footer))

  (add-hook 'server-after-make-frame-hook #'dashboard-open)
  ;; (add-hook 'dashboard-mode-hook 'olivetti-mode)
  (add-hook 'dashboard-after-initialize-hook (lambda () (setq truncate-lines t))))

;; End of oni-dashboard