Fixed username (in windows-nt) in the final message after loading prelude.

This commit is contained in:
Shanmu Thiagaraja 2013-08-02 20:41:39 +01:00
parent 99a26d88a2
commit 6c1c6ff0da

View file

@ -32,10 +32,11 @@
;; Boston, MA 02110-1301, USA. ;; Boston, MA 02110-1301, USA.
;;; Code: ;;; Code:
(defvar current-user
(getenv
(if (equal system-type 'windows-nt) "USERNAME" "USER")))
(message "Prelude is powering up... Be patient, Master %s!" (message "Prelude is powering up... Be patient, Master %s!" current-user)
(getenv
(if (equal system-type 'windows-nt) "USERNAME" "USER")))
(defvar prelude-dir (file-name-directory load-file-name) (defvar prelude-dir (file-name-directory load-file-name)
"The root dir of the Emacs Prelude distribution.") "The root dir of the Emacs Prelude distribution.")
@ -102,7 +103,7 @@ by Prelude.")
(message "Loading personal configuration files in %s..." prelude-personal-dir) (message "Loading personal configuration files in %s..." prelude-personal-dir)
(mapc 'load (directory-files prelude-personal-dir 't "^[^#].*el$"))) (mapc 'load (directory-files prelude-personal-dir 't "^[^#].*el$")))
(message "Prelude is ready to do thy bidding, Master %s!" (getenv "USER")) (message "Prelude is ready to do thy bidding, Master %s!" current-user)
(prelude-eval-after-init (prelude-eval-after-init
;; greet the use with some useful tip ;; greet the use with some useful tip