2019-02-19 09:41:45 +01:00
|
|
|
;;; oni-projectile.el --- Projectile configuration -*- lexical-binding: t; -*-
|
|
|
|
|
|
|
|
;; Copyright (C) 2019 Tom Willemse
|
|
|
|
|
|
|
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
|
|
|
;; Keywords: local
|
2019-02-28 08:43:16 +01:00
|
|
|
;; Version: 20190227233727
|
|
|
|
;; Package-Requires: (projectile ivy oni-data-dir)
|
2019-02-19 09:41:45 +01:00
|
|
|
|
|
|
|
;; 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 this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
;;; Commentary:
|
|
|
|
|
|
|
|
;; Projectile configuration.
|
|
|
|
|
|
|
|
;;; Code:
|
|
|
|
|
2019-02-28 08:43:16 +01:00
|
|
|
(require 'oni-data-dir)
|
2019-02-19 09:41:45 +01:00
|
|
|
(require 'projectile)
|
|
|
|
|
|
|
|
(setq projectile-known-projects-file
|
2019-02-28 08:43:16 +01:00
|
|
|
(oni-data-dir-locate "projectile-bookmarks.eld"))
|
2019-02-19 09:41:45 +01:00
|
|
|
|
|
|
|
(setq projectile-mode-line-prefix " P")
|
|
|
|
|
2019-02-28 08:43:16 +01:00
|
|
|
(setq projectile-cache-file (oni-data-dir-locate "projectile.cache"))
|
2019-02-19 09:41:45 +01:00
|
|
|
|
|
|
|
(setq projectile-completion-system 'ivy)
|
|
|
|
|
|
|
|
(add-to-list 'projectile-project-root-files "yarn.lock")
|
|
|
|
(add-to-list 'projectile-project-root-files "fabfile.py")
|
|
|
|
|
|
|
|
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
|
|
|
|
|
|
|
|
;;;###autoload(with-eval-after-load 'projectile (require 'oni-projectile))
|
|
|
|
|
|
|
|
;;;###autoload
|
|
|
|
(projectile-mode)
|
|
|
|
|
|
|
|
(provide 'oni-projectile)
|
|
|
|
;;; oni-projectile.el ends here
|