Revert "emacs: find file in project if in project" This reverts commit 7ea5b52b7ad8f36f7d46796ba581aa1314a5fb25.
1 file changed, 1 insertion(+), 7 deletions(-)
changed files
M user/settings/emacs/post-init.el → user/settings/emacs/post-init.el
@@ -847,12 +847,6 @@ (with-eval-after-load 'evil-ex (evil-ex-define-cmd "pb" #'project-switch-to-buffer) (evil-ex-define-cmd "psw[itch]" #'project-switch-project)))) -(defun my/project-or-not-find-file (&optional include-all) - (interactive "P") - (if (project-current nil) - (call-interactively #'project-find-file) - (call-interactively #'find-file))) - (defun ap/consult-ghq-switch-project (dir) "Append a slash to avoid project.el remembering two different paths for the same project."@@ -1085,7 +1079,7 @@ "bk" #'kill-buffer "dd" #'dired "e" '(:keymap envrc-command-map :package envrc) "fs" #'save-buffer - "ff" #'my/project-or-not-find-file + "ff" #'find-file "fw" #'write-file "fd" #'my/delete-file-and-buffer "fr" #'crux-rename-file-and-buffer