summaryrefslogtreecommitdiff
path: root/emacs/inits/15-project-mgmt.el
blob: bca959744ba295475bb0c5e349cd5ccfbbd20b04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; Time-stamp: <2020-01-26 16:41:24 (tslil@bison)>

(use-package projectile
  :ensure t
  :bind (("C-c p" . projectile-switch-project)
         ("C-c f" . projectile-find-file-dwim))
  :config
  (projectile-mode 1)

  (defadvice projectile-project-root (around ignore-remote first activate)
    (unless (file-remote-p default-directory) ad-do-it))

  (setq projectile-completion-system 'ivy
        projectile-mode-line-prefix ""
        ;; projectile-mode-line-function '(lambda ()
        ;;                                  (format " ¶[%s]"
        ;;                                          (projectile-project-name)))
        project-mode-line-function '(lambda () " ¶")
        ))

(use-package magit
  :ensure t
  :bind (("C-x g" . magit-status)))