Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove spaceline configuration #7

Merged
merged 1 commit into from
Nov 2, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions layers/+window-management/perspectives/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,10 @@
;;; License: GPLv3
(setq perspectives-packages
'(
spaceline
persp-mode
helm
helm-projectile))

(defun perspectives/pre-init-spaceline ()
(spacemacs|use-package-add-hook spaceline-config
:post-config
(progn
(spaceline-define-segment persp-number
(spacemacs/persp-number)
:when (and (bound-and-true-p persp-mode)
(spacemacs/persp-number)))
(setq spaceline-left
(cons '((persp-number workspace-number window-number)
:fallback evil-state
:separator "|"
:face highlight-face)
(cdr spaceline-left))))))

(defun perspectives/init-persp-mode ()
(use-package persp-mode
:no-require t
Expand Down Expand Up @@ -106,25 +90,6 @@ Cancels autosave on exiting perspectives mode."
(propertize string-name 'face 'persp-selected-face)
string-name)))

(defun spacemacs/persp-number ()
"Return the number of the current workspace."
(let* ((num (position (persp-curr-name)
(persp-names-current-frame-fast-ordered)))
(str (if num (int-to-string num))))
(cond
((not (dotspacemacs|symbol-value
dotspacemacs-mode-line-unicode-symbols)) str)
((equal str "0") "➊")
((equal str "1") "➋")
((equal str "2") "➌")
((equal str "3") "➍")
((equal str "4") "➎")
((equal str "5") "❻")
((equal str "6") "➐")
((equal str "7") "➑")
((equal str "8") "➒")
((equal str "9") "➓"))))

(defun spacemacs/persp-switch-by-pos (pos)
"Switch to perspective of position (1-index)."
(let ((persp-to-switch
Expand Down