syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.68k stars 4.89k forks source link

Set frame title to something useful #8613

Closed mfaerevaag closed 7 years ago

mfaerevaag commented 7 years ago

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.

frame-title

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 as spacemacs//removes-gui-elements I would be happy to make a PR! 😄

PS. Just started using Spacemacs... Thank you ❤️

jvillasante commented 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"))))
chrissound commented 7 years ago

This seems to be handled by: https://github.com/syl20bnr/spacemacs/pull/5924 ?

mfaerevaag commented 7 years ago

It seems so. Should we wait for an answer into the documentation of the feature, before we close this?

chrissound commented 7 years ago

It's available here (develop branch): https://github.com/syl20bnr/spacemacs/blob/develop/doc/DOCUMENTATION.org#frame-title

We should close this.

mfaerevaag commented 7 years ago

Thanks! Done

prestancedesign commented 6 years ago

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.

ro6 commented 4 years ago

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.

AnweshGangula commented 4 months ago

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"