about summary refs log tree commit diff
path: root/configs/shared/emacs/.emacs.d/wpc/functions.el
diff options
context:
space:
mode:
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."