summaryrefslogtreecommitdiff
path: root/lisp/novice.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/novice.el')
-rw-r--r--lisp/novice.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/novice.el b/lisp/novice.el
index b8747549209..2353edc5719 100644
--- a/lisp/novice.el
+++ b/lisp/novice.el
@@ -90,7 +90,8 @@ to future sessions."
(interactive "CEnable command: ")
(put command 'disabled nil)
(save-excursion
- (set-buffer (find-file-noselect (substitute-in-file-name "~/.emacs")))
+ (set-buffer (find-file-noselect
+ (substitute-in-file-name user-init-file)))
(goto-char (point-min))
(if (search-forward (concat "(put '" (symbol-name command) " ") nil t)
(delete-region
@@ -109,7 +110,8 @@ to future sessions."
(interactive "CDisable command: ")
(put command 'disabled t)
(save-excursion
- (set-buffer (find-file-noselect (substitute-in-file-name "~/.emacs")))
+ (set-buffer (find-file-noselect
+ (substitute-in-file-name user-init-file)))
(goto-char (point-min))
(if (search-forward (concat "(put '" (symbol-name command) " ") nil t)
(delete-region