-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathontop-projectile.el
48 lines (40 loc) · 1.49 KB
/
ontop-projectile.el
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
;;; ontop-projectile.el --- Projectile configuration -*- lexical-binding: t; -*-
;; This file is part of Emacs ONTOP
;; https://github.com/monkeyjunglejuice/emacs.ontop
;;; Commentary:
;; You can also use this file/configuration independently from Emacs ONTOP
;; Load it from anywhere via `(load-file "/path/to/ontop-projectile.el")'.
;;; Code:
;; ____________________________________________________________________________
;;; USE-PACKAGE
;; <https://github.com/jwiegley/use-package>
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package nil))
(eval-when-compile
(require 'use-package))
;; ____________________________________________________________________________
;;; PROJECTILE
;; <https://docs.projectile.mx/projectile/index.html>
;; Drop-in replacement for Emacs'; built-in project management
(use-package projectile
:ensure t
:init
(projectile-mode)
:custom
;; Shorter mode-line
(projectile-mode-line-prefix " P")
;; Don't hide current project
(projectile-current-project-on-switch 'move-to-end)
;; Hide buffers
(projectile-globally-ignored-buffers eon-boring-buffers)
:config
;; Enable sorting
(unless (eon-winp)
(setq projectile-indexing-method 'hybrid ; no Windows support
projectile-sort-order 'recently-active))
:bind-keymap
("C-x p" . projectile-command-map))
;; ____________________________________________________________________________
(provide 'ontop-projectile)
;;; ontop-projectile.el ends here