From c8b3e46ef8124ed2c491e05e46ca44fb4b5003a6 Mon Sep 17 00:00:00 2001 From: Ag Ibragimov Date: Thu, 3 Sep 2020 20:31:24 -0700 Subject: [PATCH] improves find-user-init-file should work with Emacs profile switcher plexus/chemacs --- layers/+spacemacs/spacemacs-defaults/funcs.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/layers/+spacemacs/spacemacs-defaults/funcs.el b/layers/+spacemacs/spacemacs-defaults/funcs.el index a150ae948..3e2b5c1af 100644 --- a/layers/+spacemacs/spacemacs-defaults/funcs.el +++ b/layers/+spacemacs/spacemacs-defaults/funcs.el @@ -729,12 +729,11 @@ variable." -;; adapted from bozhidar -;; http://emacsredux.com/blog/2013/05/18/instant-access-to-init-dot-el/ (defun spacemacs/find-user-init-file () "Edit the `user-init-file', in the current window." (interactive) - (find-file-existing user-init-file)) + (find-file-existing + (expand-file-name "init.el" user-emacs-directory))) (defun spacemacs/find-dotfile () "Edit the `dotfile', in the current window."