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.

60 lines
1.7 KiB

  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. ;; :config
  30. ;; (global-fira-code-mode))
  31. ;; (use-package fira-code-mode
  32. ;; :hook prog-mode)
  33. (use-package dashboard
  34. :config
  35. (setq dashboard-center-content t
  36. dashboard-set-init-info t
  37. dashboard-set-file-icons t
  38. dashboard-set-heading-icons 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 initial-buffer-choice
  46. (lambda ()
  47. (get-buffer "*dashboard*")))