Switch from smart-mode-line to spaceline
It looks much more beautiful. With this, i also ditch my header line. Spaceline is really efficient with using modeline space without using that.
This commit is contained in:
parent
ea6f21f305
commit
34e6edc79a
@ -1409,65 +1409,15 @@ Unfortunately, this works only in a graphical mode.
|
|||||||
|
|
||||||
** Eye candy
|
** Eye candy
|
||||||
|
|
||||||
*** Smart mode-line
|
*** Spaceline
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
(use-package smart-mode-line
|
(use-package spaceline
|
||||||
:after
|
|
||||||
org
|
|
||||||
:config
|
:config
|
||||||
(add-to-list 'sml/replacer-regexp-list
|
(setq powerline-default-separator 'wave)
|
||||||
'("^~/Projects/" ":Proj:")
|
(require 'spaceline-config)
|
||||||
t)
|
(spaceline-emacs-theme)
|
||||||
(add-to-list 'sml/replacer-regexp-list
|
(spaceline-helm-mode))
|
||||||
'("^~/Projektek/" ":Proj:")
|
|
||||||
t)
|
|
||||||
(add-to-list 'sml/replacer-regexp-list
|
|
||||||
(list (concat "^" (regexp-quote user-documents-directory))
|
|
||||||
":Doc:")
|
|
||||||
t)
|
|
||||||
(add-to-list 'sml/replacer-regexp-list
|
|
||||||
'("^:Proj:jekyll/gergelypolonkai.github.io/" ":Blog:")
|
|
||||||
t)
|
|
||||||
(add-to-list 'sml/replacer-regexp-list
|
|
||||||
(list "^:Proj:python/" ":Proj:Py:")
|
|
||||||
t)
|
|
||||||
(sml/setup)
|
|
||||||
(require 'cl-lib)
|
|
||||||
(setq-default header-line-format
|
|
||||||
'(""
|
|
||||||
mode-line-mule-info
|
|
||||||
mode-line-client
|
|
||||||
mode-line-modified
|
|
||||||
mode-line-remote
|
|
||||||
mode-line-frame-identification
|
|
||||||
mode-line-buffer-identification
|
|
||||||
sml/pos-id-separator
|
|
||||||
(vc-mode vc-mode)
|
|
||||||
mode-line-position))
|
|
||||||
(delete '(vc-mode vc-mode) mode-line-format)
|
|
||||||
(delete 'mode-line-frame-identification mode-line-format)
|
|
||||||
(delete 'mode-line-buffer-identification mode-line-format)
|
|
||||||
(delete 'mode-line-position mode-line-format)
|
|
||||||
(delete 'mode-line-mule-info mode-line-format)
|
|
||||||
(delete 'mode-line-modified mode-line-format)
|
|
||||||
(delete 'mode-line-client mode-line-format)
|
|
||||||
(delete 'mode-line-remote mode-line-format)
|
|
||||||
;; Add sml/pre-id-separator after mode-line-front-space
|
|
||||||
(let* ((front-space-position (1+ (cl-position 'mode-line-front-space mode-line-format)))
|
|
||||||
(mode-line-rest (nthcdr front-space-position mode-line-format))
|
|
||||||
(mode-line-beg (cl-subseq mode-line-format 0 front-space-position)))
|
|
||||||
(setq-default mode-line-format (nconc mode-line-beg
|
|
||||||
(list sml/pre-id-separator)
|
|
||||||
mode-line-rest))))
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
*** Powerline theme for ~smart-mode-line~
|
|
||||||
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(use-package smart-mode-line-powerline-theme
|
|
||||||
:init
|
|
||||||
(setq-default sml/theme 'powerline))
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
*** Minions
|
*** Minions
|
||||||
|
@ -166,9 +166,8 @@
|
|||||||
s
|
s
|
||||||
sass-mode
|
sass-mode
|
||||||
secretaria
|
secretaria
|
||||||
smart-mode-line
|
|
||||||
smart-mode-line-powerline-theme
|
|
||||||
smartparens
|
smartparens
|
||||||
|
spaceline
|
||||||
sphinx-doc
|
sphinx-doc
|
||||||
spinner
|
spinner
|
||||||
sx
|
sx
|
||||||
|
Loading…
Reference in New Issue
Block a user