Browse code
bug(emacs): move projectile to right part of emacs config
Showing 1 changed files
... | ... |
@@ -144,7 +144,6 @@ |
144 | 144 |
(use-package magit |
145 | 145 |
:ensure t |
146 | 146 |
:config |
147 |
- (evil-define-key 'normal magit-file-mode-map " a" 'magit) |
|
148 | 147 |
;; TODO: figure this out with transients |
149 | 148 |
;;(magit-define-popup-action 'magit-dispatch-popup ?j "Browse remote" 'browse-at-remote) |
150 | 149 |
'magit-dispatch |
... | ... |
@@ -178,6 +177,7 @@ |
178 | 177 |
"git@git.fiddlerwoaroof.com:dotfiles.git" |
179 | 178 |
"https://git.fiddlerwoaroof.com/git/dotfiles.git")) |
180 | 179 |
|
180 |
+ |
|
181 | 181 |
(defun load-package-configuration (package) |
182 | 182 |
(let* ((local-configs "~/.emacs.d/lisp/configurations/") |
183 | 183 |
(git-configs (concat *dotfiles-repo* |
... | ... |
@@ -187,6 +187,33 @@ |
187 | 187 |
(load conf-file))) |
188 | 188 |
|
189 | 189 |
(load-package-configuration 'evil) |
190 |
+ |
|
191 |
+(use-package projectile |
|
192 |
+ :ensure t |
|
193 |
+ :config |
|
194 |
+ (define-key evil-normal-state-map " h" 'helm-projectile-find-file-dwim) |
|
195 |
+ (setq |
|
196 |
+ ;; projectile-enable-caching t |
|
197 |
+ projectile-generic-command "rg --files -0" |
|
198 |
+ ) |
|
199 |
+ |
|
200 |
+ (projectile-register-project-type |
|
201 |
+ 'clojure '("project.clj") |
|
202 |
+ :compile "lein uberjar" |
|
203 |
+ :test-dir "src/test/") |
|
204 |
+ |
|
205 |
+ (projectile-register-project-type |
|
206 |
+ 'lisp '("*.asd")) |
|
207 |
+ |
|
208 |
+ (projectile-register-project-type |
|
209 |
+ 'npm '("package.json") |
|
210 |
+ :compile "npm install" |
|
211 |
+ :test "npm test" |
|
212 |
+ :run "npm start" |
|
213 |
+ :test-suffix ".spec") |
|
214 |
+ |
|
215 |
+ (define-key evil-normal-state-map "gf" 'project-aware-ffap)) |
|
216 |
+ |
|
190 | 217 |
;; slime depends on fwoar-git-repo |
191 | 218 |
(load-package-configuration 'slime) |
192 | 219 |
(load-package-configuration 'cider) |
... | ... |
@@ -406,32 +433,6 @@ With a prefix ARG invalidates the cache first." |
406 | 433 |
'find-file-at-point) |
407 | 434 |
args)) |
408 | 435 |
|
409 |
-(use-package projectile |
|
410 |
- :ensure t |
|
411 |
- :config |
|
412 |
- (define-key evil-normal-state-map " h" 'helm-projectile-find-file-dwim) |
|
413 |
- (setq |
|
414 |
- ;; projectile-enable-caching t |
|
415 |
- projectile-generic-command "rg --files -0" |
|
416 |
- ) |
|
417 |
- |
|
418 |
- (projectile-register-project-type |
|
419 |
- 'clojure '("project.clj") |
|
420 |
- :compile "lein uberjar" |
|
421 |
- :test-dir "src/test/") |
|
422 |
- |
|
423 |
- (projectile-register-project-type |
|
424 |
- 'lisp '("*.asd")) |
|
425 |
- |
|
426 |
- (projectile-register-project-type |
|
427 |
- 'npm '("package.json") |
|
428 |
- :compile "npm install" |
|
429 |
- :test "npm test" |
|
430 |
- :run "npm start" |
|
431 |
- :test-suffix ".spec") |
|
432 |
- |
|
433 |
- (define-key evil-normal-state-map "gf" 'project-aware-ffap)) |
|
434 |
- |
|
435 | 436 |
|
436 | 437 |
(use-package cl-generic |
437 | 438 |
:ensure t) |