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

Help Setting up celestial-mode-line alongwith spaceline. #6

Open
High-Flyer opened this issue Dec 7, 2023 · 1 comment
Open

Help Setting up celestial-mode-line alongwith spaceline. #6

High-Flyer opened this issue Dec 7, 2023 · 1 comment

Comments

@High-Flyer
Copy link

High-Flyer commented Dec 7, 2023

Installed "celestial-mode-line" Using Elpaca (use-package) (melpa) on windows,
Primarily Using spaceline for its simplicity to configure:
Emacs version: GNU Emacs 29.1 (build 2, x86_64-w64-mingw32) of 2023-07-31
Within month of using emacs from non programming background. I apologise in advance for any unwanted or unrelated comment.

;; spaceline config:
(use-package spaceline
:ensure t
:config
(require 'spaceline-config)
(setq powerline-default-seperator (quote arrow))
  (spaceline-spacemacs-theme) ;; Just changes the way it looks doesnt changes the colors of the theme.

(setq display-time-format "%H:%M %a,%d %b %Y") ;; default block "%H:%M:%S %a,%d %b %Y"
(display-time)  
)

Tried to insert Celestial modeline:

(use-package spaceline
:ensure t
:config
(require 'spaceline-config)
(setq powerline-default-seperator (quote arrow))
  (spaceline-spacemacs-theme) ;; Just changes the way it looks doesnt changes the colors of the theme.

(setq display-time-format "%H:%M %a,%d %b %Y") ;; default block "%H:%M:%S %a,%d %b %Y"
(display-time)   

;; add to end of global-mode-string
(if (null global-mode-string)
    (setq global-mode-string '("" celestial-mode-line-string))
  (add-to-list 'global-mode-string 'celestial-mode-line-string t))
)

^^ Didnt worked so removed.
and tried inserting at the installer itself,

(use-package 
celestial-mode-line
:config
(setq calendar-longitude 56.130366)
(setq calendar-latitude -106.346771)
(setq calendar-location-name "Some place")
)

Nothing seems to change how spaceline looks at the same using above 2 block didnt even break the config. But am unable to see Celestial modeline.

Final Block some looks like:

(use-package celestial-mode-line
  :ensure t
  :config
  (setq calendar-longitude "38.2")
  (setq calendar-latitude "15.3")
  (setq calendar-location-name "Home")

;; add to end of global-mode-string
  (if (null global-mode-string)
      (setq global-mode-string '("" celestial-mode-line-string))
    (add-to-list 'global-mode-string 'celestial-mode-line-string t))
)

Above config throwing an error:
Warning (emacs): Error loading "celestial-mode-line" autoloads: (void-variable lunar-phases)

At a time only one place I inserted above lines so theres no scope of conflit, made sure no error in messages before heading to next Block.
I tested 'M-x lunar-phases' command its working fine showing the phases in accordcance with my local time.

Even M-x showing no celestial packages installed, though elpaca saying its installed.
Please Help me to configure this alongside spaceline. Very wonderful and pleasant plugin.

Respect and Warm Regards o7

@High-Flyer
Copy link
Author

High-Flyer commented Dec 11, 2023

Ok i think i manage to get it working.
final block looks like;

(setq calendar-longitude 38.203)
(setq calendar-latitude 15.305)
(setq calendar-location-name "Someplace")
(use-package celestial-mode-line
  :config
  ;; add to end of global-mode-string
  (if (null global-mode-string)
      (setq global-mode-string '("" celestial-mode-line-string))  ;; this means "" represents global modeline celestial-mode-line-string is right to that so celestial will show at extreme right after global modeline.
    (add-to-list 'global-mode-string 'celestial-mode-line-string t))
  (celestial-mode-line-start-timer))

Now for the error Warning (emacs): Error loading "celestial-mode-line" autoloads: (void-variable lunar-phases)
Visit the package installation path, for me it was > ~/.emacs.d/elpaca/builds/celestial-mode-line in there just edit this file celestial-mode-line-autoloads.el search for only text string lunar-phases comment out or just delete it.
Alternately just put inside the 2 commas like this > "lunar-phases"
Did work for me Though i dunno it does broke something or not. Thats was my newbie solution.

I Apologise if something basics i dont understand. Keeping this so anyone else newbie like me can be benefitted by this.

Feel free to close this keeping it opened just any input or insight whenever u sees this. :)
Thank you very much for the package I just loved it.

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