Last active
May 22, 2017 14:43
-
-
Save bravosierrasierra/fd8d75710d4f03f6c813158cd65d5093 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;; modeline section | |
;; spaceline/powerline modeline package | |
;; https://github.com/TheBB/spaceline | |
(require 'spaceline-config) | |
(spaceline-spacemacs-theme) | |
(setq spaceline-window-numbers-unicode t) | |
(setq spaceline-workspace-numbers-unicode t) | |
(setq ns-use-srgb-colorspace nil) | |
(setq spaceline-highlight-face-func 'spaceline-highlight-face-evil-state) | |
(if (display-graphic-p) | |
;; (setq powerline-default-separator 'arrow) | |
(setq powerline-default-separator 'wave) | |
(setq powerline-default-separator 'utf-8)) | |
;; ) | |
;; -------------------------------------------------- | |
;;;; window-numbering | |
(use-package window-numbering | |
:ensure t | |
:config | |
(defun window-numbering-install-mode-line (&optional position) | |
"Do nothing, the display is handled by the powerline.") | |
(setq window-numbering-auto-assign-0-to-minibuffer nil) | |
(window-numbering-mode 1) | |
;; make sure neotree is always 0 | |
(defun spacemacs//window-numbering-assign () | |
"Custom number assignment for neotree." | |
(if (and (boundp 'neo-buffer-name) | |
(string= (buffer-name) neo-buffer-name) | |
;; in case there are two neotree windows. Example: when | |
;; invoking a transient state from neotree window, the new | |
;; window will show neotree briefly before displaying the TS, | |
;; causing an error message. the error is eliminated by | |
;; assigning 0 only to the top-left window | |
(eq (selected-window) (window-at 0 0))) | |
0) | |
;; set scratch to 9 | |
;; (if (equal (buffer-name) "*scratch*") 9) | |
) | |
(setq window-numbering-assign-func | |
(lambda () (spacemacs//window-numbering-assign))) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment