Browse Source

Add find-file advices

master
Maxime Wack 3 years ago
parent
commit
bbd15f6474
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      projectorg.el

+ 3
- 0
projectorg.el View File

@@ -93,6 +93,9 @@ And switch to a perspective for the project."
(persp-kill proj)))


(advice-add 'find-file :before 'projectorg/add-to-project-list) ; For every file opened, check if belongs to a project and add that project to the list of projects
(advice-add 'find-file-other-window :before 'projectorg/add-to-project-list)

(provide 'projectorg)

;;; projectorg.el ends here

Loading…
Cancel
Save