about summary refs log tree commit diff
path: root/emacs/.emacs.d/wpc
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r--emacs/.emacs.d/wpc/functions.el8
-rw-r--r--emacs/.emacs.d/wpc/wpc-dired.el2
2 files changed, 1 insertions, 9 deletions
diff --git a/emacs/.emacs.d/wpc/functions.el b/emacs/.emacs.d/wpc/functions.el
index 2ef82d54bbe1..d9f1a1e96017 100644
--- a/emacs/.emacs.d/wpc/functions.el
+++ b/emacs/.emacs.d/wpc/functions.el
@@ -23,14 +23,6 @@
   (call-interactively #'paredit-reindent-defun)
   (call-interactively #'clojure-align))
 
-(defun wpc/find-file ()
-  "Prefer project-based file-finding if inside of project; otherwise gracefully fallback."
-  (interactive)
-  (with-current-buffer (current-buffer)
-    (if (projectile-project-p)
-        (call-interactively #'counsel-projectile-find-file)
-      (call-interactively #'find-file))))
-
 (defun wpc/find-file-split (filename)
   "Creates a window split and then edits `filename'."
   (interactive)
diff --git a/emacs/.emacs.d/wpc/wpc-dired.el b/emacs/.emacs.d/wpc/wpc-dired.el
index bc3915914bf1..0a3013d30a88 100644
--- a/emacs/.emacs.d/wpc/wpc-dired.el
+++ b/emacs/.emacs.d/wpc/wpc-dired.el
@@ -24,7 +24,7 @@
    "<SPC>" nil ;; This unblocks some of my leader-prefixed KBDs.
    "s" nil ;; This unblocks my window-splitting KBDs.
    "c" #'find-file
-   "f" #'wpc/find-file
+   "f" #'project-find-file
    "-" (lambda () (interactive) (find-alternate-file "..")))
   (general-add-hook 'dired-mode-hook
                     (list (enable dired-hide-details-mode)