68 lines
2.1 KiB
EmacsLisp
68 lines
2.1 KiB
EmacsLisp
;;; init-projectile.el --- -*- lexical-binding: t -*-
|
|
;;
|
|
;; Filename: init-projectile.el
|
|
;; Description: Initialize Projectile
|
|
;; Author: Mingde (Matthew) Zeng
|
|
;; Copyright (C) 2019 Mingde (Matthew) Zeng
|
|
;; Created: Fri Mar 15 09:10:23 2019 (-0400)
|
|
;; Version: 2.0.0
|
|
;; Last-Updated: lun. janv. 13 17:34:30 2020 (+0100)
|
|
;; By: Mikaël Capelle
|
|
;; URL: https://github.com/MatthewZMD/.emacs.d
|
|
;; Keywords: M-EMACS .emacs.d projectile
|
|
;; Compatibility: emacs-version >= 26.1
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;;; Commentary:
|
|
;;
|
|
;; This initializes projectile
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;; This program is free software: you can redistribute it and/or modify
|
|
;; it under the terms of the GNU General Public License as published by
|
|
;; the Free Software Foundation, either version 3 of the License, or (at
|
|
;; your option) any later version.
|
|
;;
|
|
;; This program is distributed in the hope that it will be useful, but
|
|
;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
;; General Public License for more details.
|
|
;;
|
|
;; You should have received a copy of the GNU General Public License
|
|
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
|
|
;;
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;
|
|
;;; Code:
|
|
|
|
(eval-when-compile
|
|
(require 'init-const))
|
|
|
|
;; ProjPac
|
|
(use-package projectile
|
|
:bind
|
|
("C-c p" . projectile-command-map)
|
|
("C-z o" . projectile-find-file)
|
|
("C-z p" . projectile-add-known-project)
|
|
:custom
|
|
(projectile-completion-system 'ivy)
|
|
(projectile-git-submodule-command
|
|
"git submodule --quiet foreach \"echo $sm_path\" | tr '\\n' '\\0'")
|
|
:config
|
|
(projectile-mode 1)
|
|
(setq projectile-indexing-method 'alien)
|
|
(add-to-list 'projectile-globally-ignored-directories "node_modules"))
|
|
;; -ProjPac
|
|
|
|
(use-package counsel-projectile
|
|
:custom
|
|
(projectile-use-git-grep t)
|
|
:config
|
|
(counsel-projectile-mode))
|
|
|
|
(provide 'init-projectile)
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
;;; init-projectile.el ends here
|