From 68395b29f965c4e76d0b4e1ce6739358063a070e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 17 Jan 2020 19:06:09 +0000 Subject: [PATCH] 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. --- configs/shared/.emacs.d/wpc/functions.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/configs/shared/.emacs.d/wpc/functions.el b/configs/shared/.emacs.d/wpc/functions.el index 33e256be5..2ef82d54b 100644 --- a/configs/shared/.emacs.d/wpc/functions.el +++ b/configs/shared/.emacs.d/wpc/functions.el @@ -31,6 +31,12 @@ (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) + (evil-window-vsplit) + (find-file filename)) + (defun wpc/find-or-create-js-test () (->> buffer-file-name (s-chop-suffix ".js") @@ -83,12 +89,6 @@ (evil-window-vsplit) (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 () "Jumps to a React store or component's parent file. Useful for store or index file." (interactive)