diff options
| author | fpi | 2020-10-13 14:53:57 +0200 | 
|---|---|---|
| committer | fpi | 2020-10-14 10:22:59 +0200 | 
| commit | 02a6837efe67fac64d0e93a294e1ba86bb59e297 (patch) | |
| tree | 960a6eaadad75e267c36cbcfd25b6e5efce507ab | |
| parent | Merge branch 'gnus+' into emacs (diff) | |
Add magit to project.el prompt
| -rw-r--r-- | emacs-init.org | 25 | 
1 files changed, 21 insertions, 4 deletions
diff --git a/emacs-init.org b/emacs-init.org index e55cf9a..46372d3 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -23,7 +23,7 @@    - [[#dired][Dired]]    - [[#tramp][Tramp]]    - [[#git][Git]] -  - [[#projectile][Projectile]] +  - [[#projects][Projects]]    - [[#working-with-buffers][Working with buffers]]    - [[#window-configuration][Window configuration]]    - [[#file-encryption][File encryption]] @@ -2816,9 +2816,26 @@ some safe local variable values.  (git-auto-commit-mode . t)  (gac-debounce-interval . 600)  #+end_src -** Projectile - -#+BEGIN_SRC emacs-lisp +** Projects +*** project.el +#+begin_src emacs-lisp +(use-package project +  :init +  (defun fpi/project-magit () +    (interactive) +    (magit-status (project-root (project-current t)))) +  :custom +  (project-switch-commands +   '((?f "Find file" project-find-file) +     (?g "Find regexp" project-find-regexp) +     (?d "Dired" project-dired) +     (?m "Magit" fpi/project-magit) +     (?v "VC-Dir" project-vc-dir) +     (?e "Eshell" project-eshell)))) +#+end_src +*** Projectile +Projectile should be fully replaceable with =project.el=. Though some packages may still use projectile as dependency.. +#+BEGIN_SRC emacs-lisp :tangle no  (use-package projectile    :straight t    :delight '(:eval (concat " " (projectile-project-name)))  | 
