about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d/wpc/functions.el
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-05T18·26+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-05T18·26+0000
commit607bf103c32b2b7de7a669fc760852b0b6cb7951 (patch)
tree1f773b15d4e0470f060b3dd955667abfd7b1aba7 /configs/shared/emacs/.emacs.d/wpc/functions.el
parent731faded8ddc845ab5a55f050c9ebc14a85f5c5a (diff)
Parameterizes wpc/find-file function
Supports a filename as a parameter to my wrapped version of
evil-find-file.
Diffstat (limited to 'configs/shared/emacs/.emacs.d/wpc/functions.el')
-rw-r--r--configs/shared/emacs/.emacs.d/wpc/functions.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/functions.el b/configs/shared/emacs/.emacs.d/wpc/functions.el
index d8419ad77157..1905449a615e 100644
--- a/configs/shared/emacs/.emacs.d/wpc/functions.el
+++ b/configs/shared/emacs/.emacs.d/wpc/functions.el
@@ -93,11 +93,11 @@
   (evil-window-vsplit)
   (call-interactively #'yas-new-snippet))
 
-(defun wpc/edit-init-el ()
-  "Creates a window split and then edits the init.el file."
+(defun wpc/find-file-split (filename)
+  "Creates a window split and then edits `filename'."
   (interactive)
   (evil-window-vsplit)
-  (find-file "~/.emacs.d/init.el"))
+  (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."