Re-order functions.el module

Move `wpc/find-file-split` directly below `wpc/find-file`.

TODO: This module is quite old and served as a bit of a dumping grounds for me
for a long time. As such, I think I should consider deleting dead code and
moving some of these functions to other modules.
This commit is contained in:
William Carroll 2020-01-17 19:06:09 +00:00
parent fa640ed8a3
commit 68395b29f9

View file

@ -31,6 +31,12 @@
(call-interactively #'counsel-projectile-find-file) (call-interactively #'counsel-projectile-find-file)
(call-interactively #'find-file)))) (call-interactively #'find-file))))
(defun wpc/find-file-split (filename)
"Creates a window split and then edits `filename'."
(interactive)
(evil-window-vsplit)
(find-file filename))
(defun wpc/find-or-create-js-test () (defun wpc/find-or-create-js-test ()
(->> buffer-file-name (->> buffer-file-name
(s-chop-suffix ".js") (s-chop-suffix ".js")
@ -83,12 +89,6 @@
(evil-window-vsplit) (evil-window-vsplit)
(call-interactively #'yas-new-snippet)) (call-interactively #'yas-new-snippet))
(defun wpc/find-file-split (filename)
"Creates a window split and then edits `filename'."
(interactive)
(evil-window-vsplit)
(find-file filename))
(defun wpc/jump-to-parent-file () (defun wpc/jump-to-parent-file ()
"Jumps to a React store or component's parent file. Useful for store or index file." "Jumps to a React store or component's parent file. Useful for store or index file."
(interactive) (interactive)