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
|
||||
|
||||
*** Smart mode-line
|
||||
*** Spaceline
|
||||
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package smart-mode-line
|
||||
:after
|
||||
org
|
||||
(use-package spaceline
|
||||
:config
|
||||
(add-to-list 'sml/replacer-regexp-list
|
||||
'("^~/Projects/" ":Proj:")
|
||||
t)
|
||||
(add-to-list 'sml/replacer-regexp-list
|
||||
'("^~/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))
|
||||
(setq powerline-default-separator 'wave)
|
||||
(require 'spaceline-config)
|
||||
(spaceline-emacs-theme)
|
||||
(spaceline-helm-mode))
|
||||
#+END_SRC
|
||||
|
||||
*** Minions
|
||||
|
@ -166,9 +166,8 @@
|
||||
s
|
||||
sass-mode
|
||||
secretaria
|
||||
smart-mode-line
|
||||
smart-mode-line-powerline-theme
|
||||
smartparens
|
||||
spaceline
|
||||
sphinx-doc
|
||||
spinner
|
||||
sx
|
||||
|
Loading…
Reference in New Issue
Block a user