domtronn / spaceline-all-the-icons.el

A Spaceline Mode Line theme using All The Icons for Emacs
MIT License
235 stars 25 forks source link

Perspective Mode Segment #14

Open domtronn opened 7 years ago

domtronn commented 7 years ago

(Quoted from @jwintz #7)

Another remark: I'm using persp-mode for perspectives, and seems not to be handled by spaceline-all-the-icons, but is in space line, so I am confused. And in order for it not to mess up the modeline, it needs to be require'd before the ui stuff (which is where I have the spaceline-all-the-icons) setup. Window numbering however forks just fine ;-)

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Worspaces requirements
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(prolusion/require-package 'persp-mode)
(prolusion/require-package 'window-numbering)
(prolusion/require-package 'all-the-icons)

;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Workspaces setup
;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(when (display-graphic-p)
  (window-numbering-mode +1))

(when (display-graphic-p)
  (setq persp-auto-save-fname (expand-file-name "prolusion-perspective" prolusion-save-dir))
  (setq persp-save-dir prolusion-save-dir)
  (setq persp-nil-name (all-the-icons-octicon "dash" :height 0.9 :v-adjust 0.0))
  (custom-set-variables
   '(persp-auto-resume-time -1)
   '(persp-auto-save-opt 0)
   '(persp-keymap-prefix (kbd "C-c w")))
  (persp-mode +1))
domtronn commented 7 years ago

Very much so, I'm aiming to recreate all behaviours of spaceline segments within this theme with modifications for icons (obviously), however, I don't personally use persp-mode and therefore I'm not very familiar with it... So it may take me a little time to familiarise myself and come up with a segment implementation.

Any ideas/information/PRs are more than welcome :)