diff options
author | William Carroll <wpcarro@gmail.com> | 2020-01-17T19·06+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-01-17T19·06+0000 |
commit | 68395b29f965c4e76d0b4e1ce6739358063a070e (patch) | |
tree | f0af93db449e8a3c4891c8e97571c4602acde529 /configs/shared/.emacs.d/wpc/functions.el | |
parent | fa640ed8a334c72ab5ceefac8f49dd68fe1ba502 (diff) |
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.
Diffstat (limited to 'configs/shared/.emacs.d/wpc/functions.el')
-rw-r--r-- | configs/shared/.emacs.d/wpc/functions.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/configs/shared/.emacs.d/wpc/functions.el b/configs/shared/.emacs.d/wpc/functions.el index 33e256be59bb..2ef82d54bbe1 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) |