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.

92 lines
2.9 KiB

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