From d419ddddc89616dc5a5d6c5793df70bbb6aaca8f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 19 Feb 2019 00:41:45 -0800 Subject: Add ‘oni-projectile’ --- oni-projectile.el | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 oni-projectile.el (limited to 'oni-projectile.el') diff --git a/oni-projectile.el b/oni-projectile.el new file mode 100644 index 0000000..9c5d491 --- /dev/null +++ b/oni-projectile.el @@ -0,0 +1,52 @@ +;;; oni-projectile.el --- Projectile configuration -*- lexical-binding: t; -*- + +;; Copyright (C) 2019 Tom Willemse + +;; Author: Tom Willemse +;; Keywords: local +;; Version: 20190219003930 +;; Package-Requires: (projectile ivy) + +;; 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 . + +;;; Commentary: + +;; Projectile configuration. + +;;; Code: + +(require 'projectile) + +(setq projectile-known-projects-file + (concat user-emacs-directory "data/projectile-bookmarks.eld")) + +(setq projectile-mode-line-prefix " P") + +(setq projectile-cache-file + (concat user-emacs-directory "data/projectile.cache")) + +(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 -- cgit v1.2.3-54-g00ecf