Skip to content

Commit

Permalink
Ensure utf-8 separator is used in terminal mode
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
f-fr committed Jan 11, 2016
1 parent 4b3265e commit 9a69b43
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions themes/smart-mode-line-light-powerline-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions themes/smart-mode-line-powerline-theme.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 9a69b43

Please sign in to comment.