-
Notifications
You must be signed in to change notification settings - Fork 1
/
про-доску.el
57 lines (55 loc) · 2.45 KB
/
про-доску.el
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
;;; про-доску.el --- Пульт управления -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
;;; Дашборд
(use-package dashboard
:ensure t
:defines (dashboard-mode-map)
:bind (
("<f5>" . dashboard-refresh-buffer)
("C-<f5>" . dashboard-refresh-buffer)
:map dashboard-mode-map
("C-g" . dashboard-refresh-buffer))
:hook ((dashboard-mode-hook . variable-pitch-mode))
:custom
(dashboard-startup-banner "~/pro/lisp.png")
(dashboard-banner-logo-title "Добро пожаловать в свободную систему!")
(dashboard-center-content t)
(dashboard-items '((recents . 3)
(bookmarks . 3)
(projects . 3)
;;(agenda . 5)
(registers . 5)))
(dashboard-item-names '(("Recent Files:" . "Недавно открытые файлы:")
("Agenda for today:" . "Расписание на сегодня:")
("Agenda for the coming week:" . "Расписание на неделю:")
("Bookmarks:" . "Закладки:")
("Projects:" . "Проекты:")
("Registers:" . "Регистры")))
(dashboard-set-heading-icons t)
(dashboard-set-file-icons t)
(dashboard-set-navigator nil)
(dashboard-navigator-buttons
`(;; line1
((,(if window-system (all-the-icons-octicon "mark-github" :height 1.1 :v-adjust 0.0) nil)
"Homepage"
"Browse homepage"
(lambda (&rest _) (browse-url "homepage")))
("★" "Star" "Show stars" (lambda (&rest _) (show-stars)) warning)
("?" "" "?/h" #'show-help nil "<" ">"))
;; line 2
((,(if window-system (all-the-icons-faicon "linkedin" :height 1.1 :v-adjust 0.0) nil)
"Linkedin"
""
(lambda (&rest _) (browse-url "homepage")))
("⚑" nil "Show flags"
(lambda (&rest _) (message "flag")) error))))
(dashboard-footer-messages '("Сообщение в футере"))
(dashboard-footer-icon (if window-system (all-the-icons-octicon "dashboard"
:height 1.1
:v-adjust -0.05
:face 'font-lock-keyword-face) "."))
:init
(dashboard-refresh-buffer))
(provide 'про-доску)
;;; про-доску.el ends here