Skip to content

Commit

Permalink
fix(projects): no need of :commands declaration; :general handles it
Browse files Browse the repository at this point in the history
:general bindings will automatically setup autoloads for commands
  • Loading branch information
WarFox committed Apr 9, 2024
1 parent 0943f44 commit e83a5b3
Showing 1 changed file with 8 additions and 30 deletions.
38 changes: 8 additions & 30 deletions lisp/warmacs-projects.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,14 @@

(use-package projectile
:custom
(projectile-switch-project-action #'consult-projectile-recentf)
(projectile-switch-project-action #'consult-projectile-find-file)
(projectile-sort-order #'recently-active)
:init
(setq-default
projectile-cache-file (expand-file-name "projectile.cache"
warmacs-cache-dir)
projectile-known-projects-file (expand-file-name "projectile-bookmarks.eld"
warmacs-cache-dir))
:commands (projectile-ag
projectile-compile-project
projectile-dired
projectile-find-dir
projectile-find-file
projectile-find-tag
projectile-test-project
projectile-grep
projectile-invalidate-cache
projectile-kill-buffers
projectile-multi-occur
projectile-project-root
projectile-recentf
projectile-regenerate-tags
projectile-replace
projectile-replace-regexp
projectile-reset-known-projects
projectile-run-async-shell-command-in-root
projectile-run-shell-command-in-root
projectile-switch-project
projectile-switch-to-buffer
projectile-vc)
(projectile-cache-file (expand-file-name
"projectile.cache"
warmacs-cache-dir))
(projectile-known-projects-file (expand-file-name
"projectile-bookmarks.eld"
warmacs-cache-dir))
:config
(projectile-mode 1)
:general
Expand All @@ -55,6 +33,7 @@
"G" #'projectile-regenerate-tags
"I" #'projectile-invalidate-cache
"k" #'projectile-kill-buffers
"K" #'projectile-reset-known-projects
"l" #'projectile-switch-open-project
"p" #'projectile-switch-project
"r" #'projectile-recentf
Expand All @@ -64,5 +43,4 @@
"T" #'projectile-test-project
"v" #'projectile-vc))


(provide 'warmacs-projects)

0 comments on commit e83a5b3

Please sign in to comment.