         ; > kill -9 6078 # example
     ; If some session has ".emacs.desktop.lock" that means emacs is still running that session
         ; ~/.emacs-local/sessions/TRY/.emacs.desktop.lock (6078)
-    (server-start) ; run emacs server
 
     ; (evil-leader/set-key
        ; "nn"  'desktop+-load          ;; load session

       ; "ns"  'desktop+-save          ;; create new session
       ; )

    (require 'desktop+)
    (setq nk-session-dir "~/.emacs-local/sessions/")
    (setq-default desktop+-base-dir nk-session-dir)

;; Save last session
     ; (setq desktop-base-file-name "proba_cstm")
     (setq desktop-path (list nk-session-dir))
     (setq desktop-dirname nk-session-dir)
     ; ; (setq desktop-save-mode 1)
     ; (setq desktop-save t)
     ; (desktop-save-mode 1)
     ; ; (desktop-read)
     ; ; (add-hook 'emacs-startup-hook 'desktop-read)
        ; https://www.emacswiki.org/emacs?action=browse;oldid=DeskTop;id=Desktop
        ; http://stackoverflow.com/a/4485083/2450748

    ; (setq nk-session-dir "~/.emacs_local/sessions/")
    ; (setq nk-session-name "PRB3")
    ; (setq-default desktop+-base-dir nk_session-dir)

    (defun nk-create-load-session (session-name session-dir)
        "Load session or create session SESSION-NAME in SESSION-DIR if it doesn't exist."
            " (nk-create-load-session nk-session-dir nk-session-name) "
                " Session directory"
                (setq session-path (concat session-dir session-name))
                (if (file-exists-p session-path);if
                    (progn
                        (message (concat "Session already exists, loading session: " session-path) ) ; then
                        (desktop+-load session-name))
                  (message (concat "Creating new session: " session-name)) ; else
                  (make-directory session-path 'parents)
                  (desktop+-create session-name)))

    (defun nk-load-session (session-name)
        (nk-create-load-session session-name nk-session-dir))

    ; (add-hook 'kill-emacs-hook (lambda () (desktop+-save)))

    ; (defvar desktop+-base-dir "~/.emacs_sessions/"
    ; "Base directory for desktop files.")

    ; Must use M-x, with : it wont call desktop+ functions!
    ; Create new session (desktop+)
        ; M-x desktop+-create

;; workgroups2
    (require 'workgroups2)
    ; (setq wg-prefix-key '(nil))


       )

;; desktop+
    ; (setq server-use-tcp t)
        ; http://www.tychoish.com/posts/running-multiple-emacs-daemons-on-a-single-system/

    ; When you kill emacs, check that all are servers are killed
