From 34e6edc79af7408025d705353e118463b3571cb6 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Sun, 18 Nov 2018 07:05:46 +0100 Subject: [PATCH] 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. --- configuration.org | 62 +++++------------------------------------------ customizations.el | 3 +-- 2 files changed, 7 insertions(+), 58 deletions(-) diff --git a/configuration.org b/configuration.org index bec4e82..18f0eb1 100644 --- a/configuration.org +++ b/configuration.org @@ -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 diff --git a/customizations.el b/customizations.el index 9375e37..27e70c3 100644 --- a/customizations.el +++ b/customizations.el @@ -166,9 +166,8 @@ s sass-mode secretaria - smart-mode-line - smart-mode-line-powerline-theme smartparens + spaceline sphinx-doc spinner sx