File tree Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Expand file tree Collapse file tree 3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ * ~
1
2
* .elc
2
3
* .log
3
4
* .html
Original file line number Diff line number Diff line change
1
+ * dashboard-project-status
2
+ Display a git project status in a dashboard widget.
3
+
4
+ If magit is installed, a link to the project in magit will be provided as well.
5
+
6
+ ** Installation / Usage
7
+
8
+ *** use-package
9
+
10
+ #+begin_src emacs-lisp
11
+ (use-package dashboard
12
+ :config
13
+ (use-package dashboard-project-status
14
+ :config
15
+ (add-to-list 'dashboard-item-generators
16
+ `(project-status . ,(dashboard-insert-project-status *your directory*)))
17
+ (add-to-list 'dashboard-items '(project-status) t))
18
+ (dashboard-setup-startup-hook))
19
+ #+end_src
20
+
21
+ *** Without use-package
22
+
23
+ #+begin_src emacs-lisp
24
+ ;; some time before calling `dashboard-setup-startup-hook':
25
+ (reqiure 'dashboard-project-status)
26
+ (add-to-list 'dashboard-item-generators
27
+ `(project-status . ,(dashboard-insert-project-status *your directory*)))
28
+ (add-to-list 'dashboard-items '(project-status) t)
29
+ #+end_src
30
+
31
+ *** Auto-Refresh Project
32
+ Setting the optional second argument UPDATE to `dashboard-insert-project-status'
33
+ non-nil will cause the project to be refreshed automatically using
34
+ "git remote update".
Original file line number Diff line number Diff line change 24
24
25
25
; ; Display a git project status in a dashboard widget.
26
26
27
+ ; ; See README.org for installation and usage.
28
+
27
29
; ;; Code:
28
30
29
31
(require 'git )
You can’t perform that action at this time.
0 commit comments