Closed mfaerevaag closed 7 years ago
Yeah, this will be useful.
This is what i have on my dotspacemacs/user-config
;; Display Visited File's Path in the Frame Title
(setq frame-title-format
'((:eval (if (buffer-file-name)
(abbreviate-file-name (buffer-file-name))
"%b"))))
This seems to be handled by: https://github.com/syl20bnr/spacemacs/pull/5924 ?
It seems so. Should we wait for an answer into the documentation of the feature, before we close this?
It's available here (develop branch): https://github.com/syl20bnr/spacemacs/blob/develop/doc/DOCUMENTATION.org#frame-title
We should close this.
Thanks! Done
Hi everybody !
I just update yesterday my .spacemacs config file (I'm on developer branch) and I tried to setup dotspacemacs-frame-title-format
to change default value but nothing happen after reload/restart Spacemacs.
I want to display file path, so is I set dotspacemacs-frame-title-format "%a"
in .spacemacs but it doesn't works.
If I manually eval `(spacemacs/title-prepare dotspacemacs-frame-title-format)', it works.
Until a solution, I restore that snippet and this works :
;; Display Visited File's Path in the Frame Title
(setq frame-title-format
'((:eval (if (buffer-file-name)
(abbreviate-file-name (buffer-file-name))
"%b"))))
Best regards.
I had the same issue as @PrestanceDesign, changing dotspacemacs-frame-title-format
didn't change the title from the default, even after restart.
Has it just not hit master
yet?
Do most people in the community just follow develop
? I would but I'm having a problem with org-plus-contrib
over there.
You can set a custom frame title for spacemacs using dotspacemacs-frame-title-format
inside dotspacemacs/init
like below (reference)
Spacemacs documentation: https://develop.spacemacs.org/doc/DOCUMENTATION.html#title
dotspacemacs-frame-title-format "%b - Spacemacs"
Ehancement
I suggest setting the
frame-title-format
to something more useful, as Emacs Prelude does here.In the screenshot below I have two Emacs instances. The one to the left with the
frame-title-format
set (see code in screenshot) and the other one as vanilla Spacemacs.I am not familiar enough with Spacemacs to dare post a pull-request. Though, if someone where to say insert a
spacemacs//set-frame-title-format
the same manner asspacemacs//removes-gui-elements
I would be happy to make a PR! 😄PS. Just started using Spacemacs... Thank you ❤️