Move Projectile config to emacs-config

This commit is contained in:
Tom Willemse 2019-02-19 00:43:08 -08:00
parent 4b39099a75
commit 45ab0967ab

View file

@ -53,7 +53,6 @@
(require 'diminish)
(require 'ivy)
(require 'ivy-hydra)
(require 'projectile)
(require 'shackle)
;;;; Settings
@ -78,12 +77,6 @@
(setq forge-database-file
(concat user-emacs-directory "data/forge-database.sqlite")))
(with-eval-after-load 'projectile
(setq projectile-cache-file
(concat user-emacs-directory "data/projectile.cache")
projectile-known-projects-file
(concat user-emacs-directory "data/projectile-bookmarks.eld")))
(with-eval-after-load 'tramp-cache
(setq tramp-persistency-file-name
(concat user-emacs-directory "data/tramp")))
@ -184,31 +177,6 @@ ORIG-FUN is the function being wrapped, ARGS are the arguments specified"
(add-function :around (symbol-function 'diff-hl-changes-buffer)
#'oni:with-diff-hl-p4-args))
(setq projectile-known-projects-file
(concat user-emacs-directory "data/projectile-bookmarks.eld"))
(with-eval-after-load 'projectile
(setq projectile-mode-line
'(:eval
(if (file-remote-p default-directory)
" P"
(let ((name (projectile-project-name)))
(if (string= "-" name)
""
(format " P[%s]" name)))))))
(setq projectile-cache-file
(concat user-emacs-directory "data/projectile.cache"))
(projectile-mode)
(define-key projectile-mode-map (kbd "C-c p") 'projectile-command-map)
(setq projectile-completion-system 'ivy)
(add-to-list 'projectile-project-root-files "yarn.lock")
(add-to-list 'projectile-project-root-files "fabfile.py")
;; (with-eval-after-load 'server
;; (diminish 'server-buffer-clients
;; (propertize (concat " " (char-to-string #xf233))