diff options
Diffstat (limited to 'lisp/startup.el')
| -rw-r--r-- | lisp/startup.el | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index a9535eed881..000055f745d 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -850,14 +850,12 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 850 | 850 | ||
| 851 | (when (eq user-init-file t) | 851 | (when (eq user-init-file t) |
| 852 | ;; If we did not find ~/.emacs, try | 852 | ;; If we did not find ~/.emacs, try |
| 853 | ;; ~/.emacs.d/.emacs. | 853 | ;; ~/.emacs.d/init.el. |
| 854 | (let ((otherfile | 854 | (let ((otherfile |
| 855 | (expand-file-name | 855 | (expand-file-name |
| 856 | (file-name-nondirectory user-init-file-1) | 856 | "init" |
| 857 | (file-name-as-directory | 857 | (file-name-as-directory |
| 858 | (expand-file-name | 858 | (concat "~" init-file-user "/.emacs.d"))))) |
| 859 | ".emacs.d" | ||
| 860 | (file-name-directory user-init-file-1)))))) | ||
| 861 | (load otherfile t t) | 859 | (load otherfile t t) |
| 862 | 860 | ||
| 863 | ;; If we did not find the user's init file, | 861 | ;; If we did not find the user's init file, |