diff options
Diffstat (limited to 'local-lib/persp-conf.el')
| -rw-r--r-- | local-lib/persp-conf.el | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/local-lib/persp-conf.el b/local-lib/persp-conf.el deleted file mode 100644 index f875440..0000000 --- a/local-lib/persp-conf.el +++ /dev/null | |||
| @@ -1,38 +0,0 @@ | |||
| 1 | ;;; persp-conf.el --- configuration for persp-mode | ||
| 2 | ;; Author: jason <jason@zzq.org> | ||
| 3 | ;; Created: 16 Jun 2017 | ||
| 4 | ;; X-URL: https://github.com/Bad-ptr/persp-mode.el | ||
| 5 | ;;; Commentary: | ||
| 6 | ;; | ||
| 7 | ;; Enables different "workspaces" within Emacs. Similar to how a window manager | ||
| 8 | ;; might have several desktops | ||
| 9 | ;; | ||
| 10 | ;; Bindings: | ||
| 11 | ;; * <f8> - Switch between perspectives | ||
| 12 | ;; * <f9>, p - Manage perspectives | ||
| 13 | ;; | ||
| 14 | ;;; Code: | ||
| 15 | (use-package persp-mode | ||
| 16 | :ensure t | ||
| 17 | :bind (([f8] . persp-switch)) | ||
| 18 | :init | ||
| 19 | (setq persp-nil-name "Home" | ||
| 20 | persp-auto-resume-time 0) | ||
| 21 | ;; Adding this so that capturing process is not interrupted with annoying | ||
| 22 | ;; prompts "Kill and Close" etc. | ||
| 23 | (setq persp-kill-foreign-buffer-action nil | ||
| 24 | ;; increase the default name length | ||
| 25 | persp-lighter '(:eval (format (propertize " #%.10s" | ||
| 26 | 'face (let ((persp (get-current-persp))) | ||
| 27 | (if persp | ||
| 28 | (if (persp-contain-buffer-p (current-buffer) persp) | ||
| 29 | 'persp-face-lighter-default | ||
| 30 | 'persp-face-lighter-buffer-not-in-persp) | ||
| 31 | 'persp-face-lighter-nil-persp))) | ||
| 32 | (safe-persp-name (get-current-persp))))) | ||
| 33 | :config | ||
| 34 | ;; Set the persp-mode keymap prefix to <F9>, p | ||
| 35 | (persp-set-keymap-prefix (kbd "<f9> p")) | ||
| 36 | (persp-mode 1)) | ||
| 37 | |||
| 38 | (provide 'persp-conf) | ||