 ;;; Insert some hooks:
 ;;
 ;###############################################################################
-(add-hook 'exwm-update-class-hook  #'pjones:exwm-update-class-hook)
-(add-hook 'exwm-manage-finish-hook #'pjones:exwm-manage-finish-hook)
+(add-hook 'exwm-update-class-hook     #'pjones:exwm-update-class-hook)
+(add-hook 'exwm-manage-finish-hook    #'pjones:exwm-manage-finish-hook)
+(add-hook 'exwm-workspace-switch-hook #'pjones:exwm-workspace-switch-hook)
 
 ;;; exwm-conf.el ends here

          (:eval (pjones:mode-line-status))
          "   " mode-line-buffer-identification
          " ("  mode-name mode-line-process
          ") "  exwm-title))
  ;; Per-application settings:
  (cond
   ((string= exwm-class-name "Surf") t)))

(defun pjones:exwm-update-class-hook ()
  "Hook run when a window's class name changed."
  (exwm-workspace-rename-buffer exwm-class-name))

;###############################################################################
;;
;;; Settings:
;;
;###############################################################################
(custom-set-variables
   ;; Workspace settings:
  '(exwm-workspace-number 4)
  '(exwm-workspace-show-all-buffers t)
  '(exwm-layout-show-all-buffers t)


  '(exwm-manage-force-tiling t)
  '(exwm-floating-border-width 3)
  '(exwm-floating-border-color "#ff52bb")

  ;; Global key bindings:
  '(exwm-input-prefix-keys
