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.

85 lines
3.2 KiB

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