dotfiles/.config/emacs/core/earnecore-projects.el

29 lines
705 B
EmacsLisp

;;; earnecore-projects.el --- Project management -*- lexical-binding: t; -*-
;; Copyright (C) 2020-2021 earnest ma
;; SPDX-License-Identifier: MIT
;; Author: earnest ma <me@earne.link>
;;; Commentary:
;;
;;; Code:
(use-package projectile
:general
(general-def
:keymaps 'projectile-command-map "A"
'projectile-add-known-project)
(earnemacs-spc-def
"SPC" 'projectile-find-file
"," 'projectile-switch-to-buffer
"p" '(:keymap projectile-command-map :package projectile :wk "Projectile"))
:config
(projectile-mode +1)
(when (file-directory-p "~/ghq")
(setq projectile-project-search-path '("~/ghq"))))
(provide 'earnecore-projects)
;;; earnecore-projects.el ends here