From b673b5800c75ea865322a6eef8561030f66d7041 Mon Sep 17 00:00:00 2001 From: mattkae Date: Mon, 5 Dec 2022 08:16:19 -0500 Subject: Added projects to the dashboard --- .gitignore | 3 ++- init.el | 34 ++++++++++++++++++++++++++++++++-- lisp/general.el | 6 +++--- 3 files changed, 37 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 4dc5bb4..e47ac88 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,5 @@ projects .emacs.desktop.lock projectile.cache ido.last -transient \ No newline at end of file +transient +recentf \ No newline at end of file diff --git a/init.el b/init.el index 670ed17..5c7edd6 100644 --- a/init.el +++ b/init.el @@ -11,6 +11,16 @@ ;; https://stackoverflow.com/questions/31079204/emacs-package-install-script-in-init-file (package-initialize) +(use-package dashboard + :ensure t + :config + (dashboard-setup-startup-hook) + (setq dashboard-projects-backend 'projectile) + (setq dashboard-items '((recents . 5) + (bookmarks . 5) + (projects . 5) + (agenda . 5) + (registers . 5)))) (setq package-list '(highlight-thing tree-sitter-langs tree-sitter eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org)) @@ -65,7 +75,7 @@ '(org-agenda-files (list org-directory)) '(org-directory "~/Documents/org") '(package-selected-packages - '(highlight-thing tree-sitter-langs tree-sitter eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) + '(dashboard highlight-thing tree-sitter-langs tree-sitter eldoc-box company-quickhelp hl-todo python-mode drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) ;;; init.el ends here (custom-set-faces @@ -73,4 +83,24 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - ) + '(org-block ((t (:inherit fixed-pitch)))) + '(org-code ((t (:inherit (shadow fixed-pitch))))) + '(org-document-info ((t (:foreground "dark orange")))) + '(org-document-info-keyword ((t (:inherit (shadow fixed-pitch))))) + '(org-document-title ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro" :height 1.3 :weight:bold)))) + '(org-indent ((t (:inherit (org-hide fixed-pitch))))) + '(org-level-1 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro" :height 1.5 :weight bold)))) + '(org-level-2 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro" :height 1.3 :weight bold)))) + '(org-level-3 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro" :height 1.1)))) + '(org-level-4 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro" :height 1.0)))) + '(org-level-5 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro")))) + '(org-level-6 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro")))) + '(org-level-7 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro")))) + '(org-level-8 ((t (:inherit default :weight normal :foreground "#000000" :font "Source Sans Pro")))) + '(org-link ((t (:foreground "royal blue" :underline t)))) + '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch))))) + '(org-property-value ((t (:inherit fixed-pitch))) t) + '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch))))) + '(org-table ((t (:inherit fixed-pitch :foreground "#83a598")))) + '(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8)))) + '(org-verbatim ((t (:inherit (shadow fixed-pitch)))))) diff --git a/lisp/general.el b/lisp/general.el index 899c983..ec3db4b 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -79,9 +79,9 @@ (setq-default right-fringe-width 20) ;; Initialization screen -(setq inhibit-splash-screen t) -(setq initial-scratch-message "") -(setq initial-major-mode 'text-mode) +;(setq inhibit-splash-screen t) +;(setq initial-scratch-message "") +;(setq initial-major-mode 'text-mode) ;; Better undo functionality ;; TODO: Evil mode is disabled for now -- cgit v1.2.1