Drop support for wpc/find-file

Cleaning things up...
This commit is contained in:
William Carroll 2020-08-14 14:53:59 +01:00
parent 56b503c573
commit 7e2dcc97cc
2 changed files with 1 additions and 9 deletions

View file

@ -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)

View file

@ -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)