]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): Set user-init-file.
authorRichard M. Stallman <rms@gnu.org>
Thu, 6 Jan 1994 04:28:36 +0000 (04:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 6 Jan 1994 04:28:36 +0000 (04:28 +0000)
lisp/startup.el

index ea5a1651d516485ffb09867798dc87b9bca86d21..b48b742da7d9d2fed250b7f7bbd2a4ee174d8d8d 100644 (file)
@@ -262,17 +262,23 @@ this variable, if non-nil; 2. `~/.emacs'; 3. `default.el'.")
           (function
            (lambda ()
              (if init-file-user
-                 (progn (load (if (eq system-type 'vax-vms)
-                                  "sys$login:.emacs"
-                                (concat "~" init-file-user "/.emacs"))
-                              t t t)
-                        (or inhibit-default-init
-                            (let ((inhibit-startup-message nil))
-                              ;; Users are supposed to be told their rights.
-                              ;; (Plus how to get help and how to undo.)
-                              ;; Don't you dare turn this off for anyone
-                              ;; except yourself.
-                              (load "default" t t)))))))))
+                 (progn
+                   (setq user-init-file 
+                         (cond 
+                          ((eq system-type 'ms-dos)
+                           (concat "~" init-file-user "/_emacs"))
+                          ((eq system-type 'vax-vms) 
+                           "sys$login:.emacs")
+                          (t 
+                           (concat "~" init-file-user "/.emacs"))))
+                   (load user-init-file t t t)
+                   (or inhibit-default-init
+                       (let ((inhibit-startup-message nil))
+                         ;; Users are supposed to be told their rights.
+                         ;; (Plus how to get help and how to undo.)
+                         ;; Don't you dare turn this off for anyone
+                         ;; except yourself.
+                         (load "default" t t)))))))))
       (if init-file-debug
          ;; Do this without a condition-case if the user wants to debug.
          (funcall inner)