 ;; Setting a secondary key binding for saving session as `S-F2` doesn't work
 ;; when emacs is in terminal mode
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
-(when (boundp 'setup-desktop-loaded)
-  (define-key modi-map (kbd "d")  'session-save)) ;; C-x m d (save desktop)
+(define-key modi-map (kbd "d")  'desktop-save-in-desktop-dir) ;; C-x m d (save desktop)
 
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

                    (dired-single-magic-buffer default-directory)))
  )


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Navigation

  ;; binding, eg. while editing .tmux.conf
  ;; (define-key conf-mode-map (kbd "C-c SPC") nil)
  ;; FIXME: "C-c SPC" binding conflicts with default bindings in conf-mode-map
  ;;        org-mode. Need to fix that. For now, ace-jump-mode is bound to a
  ;;        key-chord.
  )
;;         `ace-jump-mode-BINDING' -> `ace-jump-word-mode'
;;     C-u `ace-jump-mode-BINDING' -> `ace-jump-char-mode'
