From 57ef5bb24957cb5edf37dadba755f067cd6f82ed Mon Sep 17 00:00:00 2001 From: Geoff Shannon Date: Sun, 11 May 2014 17:01:38 -0700 Subject: [PATCH] Add new prelude custom variable for user-init-file This way the prelude-find-user-init-file can actually take you to a useful file (instead of to init.el) --- core/prelude-core.el | 2 +- core/prelude-custom.el | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/core/prelude-core.el b/core/prelude-core.el index 5832930..def4edc 100644 --- a/core/prelude-core.el +++ b/core/prelude-core.el @@ -553,7 +553,7 @@ This follows freedesktop standards, should work in X servers." (defun prelude-find-user-init-file () "Edit the `user-init-file', in another window." (interactive) - (find-file-other-window user-init-file)) + (find-file-other-window prelude-user-init-file)) (defun prelude-find-shell-init-file () "Edit the shell init file in another window." diff --git a/core/prelude-custom.el b/core/prelude-custom.el index 095b583..ad453e7 100644 --- a/core/prelude-custom.el +++ b/core/prelude-custom.el @@ -64,6 +64,15 @@ Will only occur if prelude-whitespace is also enabled." :type 'boolean :group 'prelude) +(defcustom prelude-user-init-file (concat user-emacs-directory + "personal/") + "Path to your personal customization file. + +Since Prelude recommends you only put personal customizations in +the personal folder." + :type 'string + :group 'prelude) + (provide 'prelude-custom) ;;; prelude-custom.el ends here