about summary refs log tree commit diff stats
path: root/.emacs.d/lisp/init-projectile.el
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2021-09-01 18:43:47 +0100
committerDavid Morgan <djm_uk@protonmail.com>2021-09-01 18:43:47 +0100
commit8f8d172d4c924742d0b7fbdcc2098440d2a77552 (patch)
tree943d52bc91226b3e98446ffef6ee5237d9110fff /.emacs.d/lisp/init-projectile.el
parente49d7c97d404e9d192592dbf62434ee1ff86c774 (diff)
parentd694ee219abdf114d52be9d4ea179ba880855bc6 (diff)
downloaddotfiles-8f8d172d4c924742d0b7fbdcc2098440d2a77552.tar.gz
Merge branch 'master' of github.com:deejayem/dotfiles
Diffstat (limited to '.emacs.d/lisp/init-projectile.el')
-rw-r--r--.emacs.d/lisp/init-projectile.el61
1 files changed, 0 insertions, 61 deletions
diff --git a/.emacs.d/lisp/init-projectile.el b/.emacs.d/lisp/init-projectile.el
deleted file mode 100644
index d314c8b..0000000
--- a/.emacs.d/lisp/init-projectile.el
+++ /dev/null
@@ -1,61 +0,0 @@
-;;; init-projectile.el --- Projectile Configuration File -*- lexical-binding: t -*-
-;;; Commentary:
-;;; Code:
-
-(defcustom projectile-default-dir "~/src"
-  "Starting directory when looking for new projects."
-  :group 'djm
-  :type 'directory)
-
-(defcustom projectile-switch-project-command 'projectile-persp-switch-project
-  "Projectile switch project command."
-  :group 'djm
-  :type 'function)
-
-(use-package projectile
-  :diminish
-  :after smartrep
-  :config
-  (projectile-mode t)
-  (define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
-  (def-projectile-commander-method ?b
-    "consult-buffer"
-    (progn
-      (setq unread-command-events (listify-key-sequence "p "))
-      (consult-buffer)))
-  (def-projectile-commander-method ?B
-    "Switch to project buffer"
-    (projectile-switch-to-buffer))
-  (def-projectile-commander-method ?r
-    "consult-ripgrep"
-    (consult-ripgrep))
-  (def-projectile-commander-method ?p
-    "DWIM"
-    (cond ((> (length (projectile-project-buffer-names)) 4) (projectile-switch-to-buffer))
-          ((> (length (projectile-recentf-files)) 0) (projectile-recentf))
-          (t (projectile-find-file))))
-  (defun projectile-open-new-project (project-root)
-    (interactive (list (read-directory-name "Select project directory: " (file-name-as-directory  projectile-default-dir))))
-    (projectile-add-known-project project-root)
-    (funcall projectile-switch-project-command project-root))
-  (smartrep-define-key projectile-mode-map
-      "C-c p" '(("C-p" . projectile-previous-project-buffer)
-                ("C-n" . projectile-next-project-buffer)))
-  :bind-keymap ("C-c p" . projectile-command-map)
-  :bind
-  (:map projectile-mode-map
-        ("C-c p n" . projectile-open-new-project)
-        ("C-x f" . projectile-recentf))
-  :custom
-  (projectile-switch-project-action 'projectile-commander)
-  (projectile-cache-file (expand-file-name  "projectile.cache" save-dir)))
-
-(use-package perspective
-  :init (persp-mode)
-  :bind ("C-x C-b" . persp-ibuffer)
-  :custom (persp-modestring-short t))
-
-(use-package persp-projectile)
-
-(provide 'init-projectile)
-;;; init-projectile.el ends here