summary refs log tree commit diff
path: root/config/init-project.el
blob: c8d638f5bd785d9f7118783b2a1315f65022c100 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
;;; init-project.el --- Configure project -*- lexical-binding: t -*-
;; Author: Franck Cuny <franck@fcuny.net>

;;; Commentary:

;; Configure project

;;; Code:

(require 'init-util)

(use-package project
  :custom
  (project-vc-ignores '("result/" ".direnv/" "target/" ".DS_Store"))
  :config
  (setq project-switch-commands
        '((project-find-file "Find file" f)
          (project-dired "Dired" d)
          (project-eshell "Eshell" e)
          (magit-project-status "Magit" ?m))))

(setq-default project-list-file (user-data "projects.eld"))

(provide 'init-project)

;;; init-project.el ends here