Skip to content

Commit 3af8491

Browse files
author
Jason Duncan
committed
Added README
1 parent 3897c13 commit 3af8491

File tree

3 files changed

+37
-0
lines changed

3 files changed

+37
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
*~
12
*.elc
23
*.log
34
*.html

README.org

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
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".

dashboard-project-status.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@
2424

2525
;; Display a git project status in a dashboard widget.
2626

27+
;; See README.org for installation and usage.
28+
2729
;;; Code:
2830

2931
(require 'git)

0 commit comments

Comments
 (0)