I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.6 KiB

4 years ago
  1. (defvar dotfiles/font "Fira Code")
  2. (defvar dotfiles/font-size 96)
  3. (set-face-attribute 'default nil :font dotfiles/font :height dotfiles/font-size)
  4. (set-face-attribute 'fixed-pitch nil :font dotfiles/font :height dotfiles/font-size)
  5. (set-face-attribute 'variable-pitch nil :font dotfiles/font :height dotfiles/font-size)
  6. (defhydra hydra-text-scale (:timeout 4)
  7. "Scale"
  8. ("j" text-scale-increase "Increase")
  9. ("k" text-scale-decrease "Decrease")
  10. ("f" nil "Finished" :exit t))
  11. (dotfiles/leader
  12. "tf" '(hydra-text-scale/body :which-key "Font"))
  13. (use-package linum-relative
  14. :custom (linum-relative-backend 'display-line-numbers-mode)
  15. :config (linum-relative-global-mode))
  16. (dotfiles/leader
  17. "tl" '(linum-relative-global-mode :which-key "Lines"))
  18. (use-package rainbow-delimiters
  19. :hook (prog-mode . rainbow-delimiters-mode))
  20. (use-package doom-themes
  21. :init (load-theme 'doom-moonlight t))
  22. (use-package doom-modeline
  23. :custom (doom-modeline-height 16)
  24. :config (doom-modeline-mode 1))
  25. (dotfiles/leader
  26. "tt" '(load-theme t t :which-key "Theme"))
  27. (when (display-graphic-p)
  28. (use-package fira-code-mode
  29. :hook (prog-mode org-mode)))
  30. (dotfiles/leader
  31. "tg" '(global-fira-code-mode :which-key "Ligatures"))
  32. (use-package dashboard
  33. :custom (dashboard-center-content t)
  34. (dashboard-set-init-info t)
  35. (dashboard-set-file-icons t)
  36. (dashboard-set-heading-icons t)
  37. (dashboard-set-navigator t)
  38. (dashboard-startup-banner 'logo)
  39. (dashboard-projects-backend 'projectile)
  40. (dashboard-items '((projects . 5)
  41. (recents . 5)
  42. (agenda . 5 )))
  43. :config (dashboard-setup-startup-hook))
  44. (setq dashboard-navigator-buttons
  45. `(;; First row.
  46. ((,(all-the-icons-fileicon "brain" :height 1.1 :v-adjust 0.0)
  47. "Brain"
  48. "Knowledge base"
  49. (lambda (&rest _) (browse-url "http://localhost:8080"))))
  50. ;; Second row.
  51. ((,(all-the-icons-material "public" :height 1.1 :v-adjust 0.0)
  52. "Homepage"
  53. "Personal website"
  54. (lambda (&rest _) (browse-url "https://chrishayward.xyz"))))
  55. ;; Third row.
  56. ((,(all-the-icons-faicon "university" :height 1.1 :v-adjust 0.0)
  57. "Athabasca"
  58. "Univeristy login"
  59. (lambda (&rest _) (browse-url "https://login.athabascau.ca/cas/login"))))
  60. ;; Fourth row.
  61. ((,(all-the-icons-faicon "book" :height 1.1 :v-adjust 0.0)
  62. "Bookshelf"
  63. "Vitalsource bookshelf"
  64. (lambda (&rest _) (browse-url "https://online.vitalsource.com"))))))
  65. (setq initial-buffer-choice
  66. (lambda ()
  67. (get-buffer "*dashboard*")))