2015-06-15 09:05:52 +02:00
|
|
|
;;; core-workgroups.el
|
|
|
|
;; see lib/workgroup-defuns.el
|
|
|
|
|
|
|
|
(use-package workgroups2
|
2015-08-10 22:28:47 +02:00
|
|
|
:when window-system
|
2015-06-15 09:05:52 +02:00
|
|
|
:init
|
2015-11-19 05:55:21 -05:00
|
|
|
(setq split-height-threshold 8
|
2015-11-04 01:20:07 -05:00
|
|
|
|
|
|
|
wg-session-file (expand-file-name "wg-default" narf-temp-dir)
|
2015-10-26 01:34:16 -04:00
|
|
|
wg-workgroup-directory (expand-file-name "workgroups" narf-temp-dir)
|
2015-06-15 09:05:52 +02:00
|
|
|
wg-first-wg-name "main"
|
|
|
|
wg-session-load-on-start t
|
|
|
|
wg-mode-line-display-on nil
|
|
|
|
wg-mess-with-buffer-list t
|
2015-11-14 02:41:53 -05:00
|
|
|
wg-emacs-exit-save-behavior 'save ; Options: 'save 'ask nil
|
2015-09-30 13:50:30 -04:00
|
|
|
wg-workgroups-mode-exit-save-behavior 'save
|
2015-10-12 04:31:55 -04:00
|
|
|
wg-log-level 0
|
2015-09-30 13:50:30 -04:00
|
|
|
|
|
|
|
wg-list-display-decor-divider " : "
|
|
|
|
wg-list-display-decor-current-left "["
|
|
|
|
wg-list-display-decor-current-right "]"
|
|
|
|
wg-list-display-decor-previous-left ""
|
|
|
|
wg-list-display-decor-previous-right "")
|
2015-06-15 09:05:52 +02:00
|
|
|
:config
|
|
|
|
(defvar narf/helm-source-wg
|
|
|
|
'((name . "Workgroups")
|
|
|
|
(candidates . wg-workgroup-names)
|
|
|
|
(action . narf/wg-helm-switch-to-workgroup)))
|
|
|
|
|
2015-11-08 17:57:41 -05:00
|
|
|
(defvar narf-wg-frames '())
|
|
|
|
|
2015-06-15 09:05:52 +02:00
|
|
|
(after! projectile
|
2015-11-14 02:41:53 -05:00
|
|
|
;; Create a new workgroup on switch-project
|
2015-06-15 09:05:52 +02:00
|
|
|
(setq projectile-switch-project-action 'narf/wg-projectile-switch-project))
|
|
|
|
|
|
|
|
;; Initialize!
|
|
|
|
(add-hook! after-init
|
|
|
|
(workgroups-mode 1)
|
|
|
|
(diminish 'workgroups-mode)))
|
|
|
|
|
|
|
|
(provide 'core-workgroups)
|
|
|
|
;;; core-workgroups.el ends here
|