Merge pull request #370 from shanmuha/master

Fixed username (in windows-nt) in the final message after loading prelud...
This commit is contained in:
Bozhidar Batsov 2013-08-02 15:28:34 -07:00
commit 96e8320286

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