diff options
author | William Carroll <wpcarro@gmail.com> | 2020-08-14T13·53+0100 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-08-20T10·26+0100 |
commit | 7e2dcc97cc98e22207c38026731b21472259dd18 (patch) | |
tree | c179f04198ae00f7da8e92d1fb59ce28b2bc86f5 /emacs/.emacs.d/wpc | |
parent | 56b503c573317532ef250a47fb075fd699c35ead (diff) |
Drop support for wpc/find-file
Cleaning things up...
Diffstat (limited to 'emacs/.emacs.d/wpc')
-rw-r--r-- | emacs/.emacs.d/wpc/functions.el | 8 | ||||
-rw-r--r-- | emacs/.emacs.d/wpc/wpc-dired.el | 2 |
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) |