         project-name))
     (setq projectile-project-name-function #'modi/projectile-project-name)
 
-    ;; http://emacs.stackexchange.com/a/10187/115
-    (defun modi/kill-non-project-buffers (&optional kill-special)
-      "Kill buffers that do not belong to a `projectile' project.
     (when (executable-find "ag")
       (defconst modi/projectile-ag-command
         (mapconcat 'identity

    ;; (setq projectile-mode-line " ℙ")
    (setq projectile-mode-line "​P")

    (when (fboundp 'ggtags-mode)
      (defun projectile-visit-project-tags-table ()
        "Visit the current project's tags table ONLY IF `ggtags-mode' is not loaded.
If `ggtags-mode' function is defined, “empty” this definition so that it does
nothing.

Doing so prevents prevents the unnecessary call to `visit-tags-table' function
and the subsequent `find-file' call for the `TAGS' file."
        ))
    (defun modi/projectile-project-name (project-root)
      "Return project name after some modification if needed.


      (with-eval-after-load 'ivy
        (setq projectile-completion-system 'ivy)))

    ;; Don't consider my home dir as a project
    (add-to-list 'projectile-ignored-projects `,(concat (getenv "HOME") "/"))

    ;; (setq projectile-enable-caching nil)
    (setq projectile-enable-caching t) ; Enable caching, otherwise
