Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem defining custom segments #91

Open
sync0 opened this issue Jul 18, 2018 · 0 comments
Open

Problem defining custom segments #91

sync0 opened this issue Jul 18, 2018 · 0 comments

Comments

@sync0
Copy link

sync0 commented Jul 18, 2018

Thank you for such awesome package!

I defined some minor modes to edit text in different laguanges, but I am having trouble defining a simple custom segment to display the value of my variable language-active that takes values such as English, French, etc. This is the segment's code:

 (defun language-segment (language-active)
     "Display the active (human) language."
     (when (boundp 'language-active)
              (format "%s" language-active))) 

Likewise, my configuration for spaceline-all-the-icons is this:

     (use-package spaceline-all-the-icons
       :after spaceline
       :config
       (progn
         (setq spaceline-all-the-icons-icon-set-bookmark 'heart
               spaceline-all-the-icons-icon-set-modified 'toggle
               spaceline-all-the-icons-icon-set-dedicated 'pin
               spaceline-all-the-icons-highlight-file-name t
               spaceline-all-the-icons-hide-long-buffer-path t)
         (spaceline-toggle-all-the-icons-bookmark-on)
         (spaceline-toggle-all-the-icons-dedicated-on)
         (spaceline-all-the-icons--setup-anzu)
         (spaceline-all-the-icons-theme 'language-segment)))

Somehow, nothing shows up----neither an error nor my desired segment with the word English or whatever is active. Have you any idea how to fix this?

Best,

sync0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant