 
 (setq user-emacs-directory (getenv "USER_DIRECTORY"))
 (setq pacakge-user-dir     (getenv "PACKAGE_DIR"))
+(setq user-init-file       (getenv "INITFILE"))
+
 ;; (setq default-directory    (getenv "DEFAULT_DIRECTORY"))
+
+;;; Separate customization form init file 
+(setq custom-file (concat (file-name-as-directory user-emacs-directory) "custom.el"))
+(load custom-file 'noerror)
+
 
 (setq package-archives
       '(

(unless (file-exists-p org-wiki-location)
  (mkdir org-wiki-location))


(defun test-sandbox ()
  "Test if the sandbox is working."
  (interactive)
  (switch-to-buffer "*scratch*")
  (insert (concat "user-emacs-directory = "  user-emacs-directory "\n" ))
  (insert (concat "user-init-file = "        user-init-file "\n" ))
  (insert (concat "package-user-dir = "      package-user-dir "\n" ))
  
  )

;;; Print Sandbox environment variables to check if it works.
(test-sandbox)

(require 'org-wiki)

;;; Open the sandbox sample wiki 
(org-wiki-index)
(org-toggle-inline-images)

	;;("popkit" . "http://elpa.popkit.org/packages/")
	("melpa" . "https://melpa.org/packages/")
	
	;; ("org"       . "http://orgmode.org/elpa/")
	("gnu"       . "http://elpa.gnu.org/packages/")

	;; ("marmalade" .  "http://marmalade-repo.org/packages/")
