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.

77 lines
2.4 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. :init (setq linum-relative-backend
  15. 'display-line-numbers-mode)
  16. :config (linum-relative-global-mode))
  17. (dotfiles/leader
  18. "tl" '(linum-relative-global-mode :which-key "Lines"))
  19. (use-package rainbow-delimiters
  20. :hook (prog-mode . rainbow-delimiters-mode))
  21. (use-package doom-themes
  22. :init (load-theme 'doom-moonlight t))
  23. (use-package doom-modeline
  24. :init (doom-modeline-mode 1)
  25. :custom ((doom-modeline-height 16)))
  26. (dotfiles/leader
  27. "tt" '(load-theme t t :which-key "Theme"))
  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. :config
  34. (setq dashboard-center-content t
  35. dashboard-set-init-info t
  36. dashboard-set-file-icons t
  37. dashboard-set-heading-icons t
  38. dashboard-set-navigator t
  39. dashboard-startup-banner 'logo
  40. dashboard-projects-backend 'projectile
  41. dashboard-items '((projects . 5)
  42. (recents . 5)
  43. (agenda . 5 )))
  44. (dashboard-setup-startup-hook))
  45. (setq dashboard-navigator-buttons
  46. `(;; First row.
  47. ((,(all-the-icons-fileicon "brain" :height 1.1 :v-adjust 0.0)
  48. "Brain"
  49. "Knowledge base"
  50. (lambda (&rest _) (browse-url "http://localhost:8080"))))
  51. ;; Second row.
  52. ((,(all-the-icons-material "public" :height 1.1 :v-adjust 0.0)
  53. "Homepage"
  54. "Personal website"
  55. (lambda (&rest _) (browse-url "https://chrishayward.xyz"))))
  56. ;; Third row.
  57. ((,(all-the-icons-faicon "university" :height 1.1 :v-adjust 0.0)
  58. "Athabasca"
  59. "Univeristy login"
  60. (lambda (&rest _) (browse-url "https://login.athabascau.ca/cas/login"))))))
  61. (setq initial-buffer-choice
  62. (lambda ()
  63. (get-buffer "*dashboard*")))