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.

80 lines
2.6 KiB

4 years ago
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. (use-package fira-code-mode
  28. :hook (prog-mode org-mode))
  29. (dotfiles/leader
  30. "tg" '(global-fira-code-mode :which-key "Ligatures"))
  31. (use-package dashboard
  32. :custom (dashboard-center-content t)
  33. (dashboard-set-init-info t)
  34. (dashboard-set-file-icons t)
  35. (dashboard-set-heading-icons t)
  36. (dashboard-set-navigator t)
  37. (dashboard-startup-banner 'logo)
  38. (dashboard-projects-backend 'projectile)
  39. (dashboard-items '((projects . 5)
  40. (recents . 5)
  41. (agenda . 5 )))
  42. :config (dashboard-setup-startup-hook))
  43. (setq dashboard-navigator-buttons
  44. `(;; First row.
  45. ((,(all-the-icons-fileicon "brain" :height 1.1 :v-adjust 0.0)
  46. "Brain"
  47. "Knowledge base"
  48. (lambda (&rest _) (browse-url "http://localhost:8080"))))
  49. ;; Second row.
  50. ((,(all-the-icons-material "public" :height 1.1 :v-adjust 0.0)
  51. "Homepage"
  52. "Personal website"
  53. (lambda (&rest _) (browse-url "https://chrishayward.xyz"))))
  54. ;; Third row.
  55. ((,(all-the-icons-faicon "university" :height 1.1 :v-adjust 0.0)
  56. "Athabasca"
  57. "Univeristy login"
  58. (lambda (&rest _) (browse-url "https://login.athabascau.ca/cas/login"))))
  59. ;; Fourth row.
  60. ((,(all-the-icons-faicon "book" :height 1.1 :v-adjust 0.0)
  61. "Bookshelf"
  62. "Vitalsource bookshelf"
  63. (lambda (&rest _) (browse-url "https://online.vitalsource.com"))))))
  64. (setq initial-buffer-choice
  65. (lambda ()
  66. (get-buffer "*dashboard*")))