From 9a69b43365cb86e95445c1545a6ebfb13d96d2cf Mon Sep 17 00:00:00 2001 From: Frank Fischer Date: Mon, 11 Jan 2016 16:45:47 +0100 Subject: [PATCH] Ensure utf-8 separator is used in terminal mode Instead of `powerline-default-separator` one should use `(powerline-current-separator)`, which always returns the utf-8 separator when used in terminal. This gives nice decorations in terminal, too. --- themes/smart-mode-line-light-powerline-theme.el | 6 +++--- themes/smart-mode-line-powerline-theme.el | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/smart-mode-line-light-powerline-theme.el b/themes/smart-mode-line-light-powerline-theme.el index dea99bc..a947db3 100644 --- a/themes/smart-mode-line-light-powerline-theme.el +++ b/themes/smart-mode-line-light-powerline-theme.el @@ -42,11 +42,11 @@ Mimics the appearance of powerline.") (l8 (face-background 'powerline-active2)) (separator-left '(intern (format "powerline-%s-%s" - powerline-default-separator + (powerline-current-separator) (car powerline-default-separator-dir)))) (separator-right '(intern (format "powerline-%s-%s" - powerline-default-separator + (powerline-current-separator) (cdr powerline-default-separator-dir))))) (custom-theme-set-faces 'smart-mode-line-light-powerline @@ -95,7 +95,7 @@ Mimics the appearance of powerline.") `(helm-candidate-number ((t :foreground nil :background nil :inherit sml/filename)))) (custom-theme-set-variables 'smart-mode-line-light-powerline - '(sml/mode-width (if (eq powerline-default-separator 'arrow) 'right 'full)) + '(sml/mode-width (if (eq (powerline-current-separator) 'arrow) 'right 'full)) `(sml/pre-id-separator '("" (:propertize " " face sml/global) diff --git a/themes/smart-mode-line-powerline-theme.el b/themes/smart-mode-line-powerline-theme.el index 20c8ff0..99cf840 100644 --- a/themes/smart-mode-line-powerline-theme.el +++ b/themes/smart-mode-line-powerline-theme.el @@ -42,11 +42,11 @@ Mimics the appearance of powerline.") (l8 (or (face-background 'powerline-active2) "Grey80")) (separator-left '(intern (format "powerline-%s-%s" - powerline-default-separator + (powerline-current-separator) (car powerline-default-separator-dir)))) (separator-right '(intern (format "powerline-%s-%s" - powerline-default-separator + (powerline-current-separator) (cdr powerline-default-separator-dir))))) (custom-theme-set-faces 'smart-mode-line-powerline @@ -95,7 +95,7 @@ Mimics the appearance of powerline.") `(helm-candidate-number ((t :foreground nil :background nil :inherit sml/filename)))) (custom-theme-set-variables 'smart-mode-line-powerline - '(sml/mode-width (if (eq powerline-default-separator 'arrow) 'right 'full)) + '(sml/mode-width (if (eq (powerline-current-separator) 'arrow) 'right 'full)) `(sml/pre-id-separator '("" (:propertize " " face sml/global)