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

  ;; The following code means you get a menu if you hit "C-c p" and wait
  (after-load 'guide-key
    (add-to-list 'guide-key/guide-key-sequence "C-c p"))

  ;; Shorter modeline
  (after-load 'projectile
    (setq-default
     projectile-mode-line
     '(:eval
       (if (file-remote-p default-directory)
           " Pr"
         (format " Pr[%s]" (projectile-project-name)))))))


(provide 'init-projectile)

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

  ;; The following code means you get a menu if you hit "C-c p" and wait
  (after-load 'guide-key
    (add-to-list 'guide-key/guide-key-sequence "C-c p"))

  ;; Shorter modeline
  (after-load 'projectile
    (setq-default
     projectile-mode-line
     '(:eval
       (if (file-remote-p default-directory)
           " Proj"
         (format " Proj[%s]" (projectile-project-name)))))))


(provide 'init-projectile)

Change projectile modeline lighter and use non-aliased mode name
Change projectile modeline lighter and use non-aliased mode name

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