(when (maybe-require-package 'projectile)
  (add-hook 'after-init-hook 'projectile-mode)

  ;; Shorter modeline
  (setq-default projectile-mode-line-lighter " Proj")

  (after-load 'projectile
    (define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map))

  (maybe-require-package 'ibuffer-projectile))


(provide 'init-projectile)

(when (maybe-require-package 'projectile)
  (add-hook 'after-init-hook 'projectile-mode)

  ;; Shorter modeline
  (setq-default projectile-mode-line-prefix " Proj")

  (after-load 'projectile
    (define-key projectile-mode-map (kbd "C-c C-p") 'projectile-command-map))

  (maybe-require-package 'ibuffer-projectile))


(provide 'init-projectile)

Use projectile-mode-line-prefix to set projectile mode line
Use projectile-mode-line-prefix to set projectile mode line

projectile-mode-line-lighter is obsolete

baohaojun/emacs.d,benkha/emacs.d,svenyurgensson/emacs.d,blueseason/emacs.d,braveoyster/emacs.d,qianwan/emacs.d,blueabysm/emacs.d,lust4life/emacs.d,mmqmzk/emacs.d,cjqw/emacs.d,sgarciac/emacs.d,arthurl/emacs.d,me020523/emacs.d,kongfy/emacs.d,gsmlg/emacs.d,emuio/emacs.d,kindoblue/emacs.d,krzysz00/emacs.d,purcell/emacs.d,wegatron/emacs.d,dcorking/emacs.d