From b830566b73d8c6593254a6497d931a68aa86d8bb Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Mon, 15 May 2023 21:53:37 -0400 Subject: Use Projectile for project management --- init.el | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 08af089..933eac8 100644 --- a/init.el +++ b/init.el @@ -327,9 +327,10 @@ ;; --------------------------------------------------------------------- -;;; File Management -;; ---------------- -;; Everything to do with file or directory management goes here. +;;; File, project, & repository management +;; --------------------------------------- +;; This section contains everything to do with file, project, & repo +;; management. This includes `magit' and `projectile'. ;; --------------------------------------------------------------------- ;; --------------------------------- @@ -366,6 +367,21 @@ (setq create-lockfiles nil) +;; --------------------------------- +;; Project management +;; ------------------ +;; `Projectile' provides features +;; for operating on a project level. +;; --------------------------------- + +(use-package projectile + :straight t + :config + (projectile-mode) + (setq projectile-project-search-path '("~/Projects")) + :bind-keymap ("C-c p" . projectile-command-map)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3 From 1063f4a6a462cb5644e5a8d6b2c2c6970e269515 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Mon, 15 May 2023 22:25:35 -0400 Subject: Add `projectile-known-files.eld` and `projectile.cache` to `.gitignore` --- .gitignore | 2 ++ init.el | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'init.el') diff --git a/.gitignore b/.gitignore index fd7c680..5399f41 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,6 @@ auto-save-list/ eln-cache/ +projectile.cache +projectile-known-projects.eld straight/ .org-id-locations diff --git a/init.el b/init.el index 933eac8..35fe8cc 100644 --- a/init.el +++ b/init.el @@ -378,7 +378,9 @@ :straight t :config (projectile-mode) - (setq projectile-project-search-path '("~/Projects")) + (setq projectile-project-search-path '("~/Projects") + projectile-known-projects-file "~/.emacs.d/projectile-known-projects.eld" + projectile-cache-file "~/.emacs.d/projectile.cache") :bind-keymap ("C-c p" . projectile-command-map)) -- cgit v1.2.3 From 12f6f9d7a6f68457fda1a26b4ff0e37ea028ac45 Mon Sep 17 00:00:00 2001 From: Mountain Man <43313373+MountainMan1312@users.noreply.github.com> Date: Tue, 16 May 2023 00:13:59 -0400 Subject: Use `magit` for git stuff --- init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 35fe8cc..7c95bf1 100644 --- a/init.el +++ b/init.el @@ -384,6 +384,20 @@ :bind-keymap ("C-c p" . projectile-command-map)) +;; --------------------------------- +;; `Magit' - A git porcelain +;; ------------------------- +;; Magit provides a state-of-the-art +;; interface for managing `git' +;; repositories. +;; --------------------------------- + +(use-package magit + :straight t + :custom + (magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1)) + + ;; --------------------------------------------------------------------- -- cgit v1.2.3