what sets frame title prefix?

15 views
Skip to first unread message

tom_...@pobox.com

unread,
Oct 25, 2016, 7:59:36 PM10/25/16
to Emacs Prelude
I'm running the Prelude config on GNU Emacs 24.4.1 on Cinnamon (a GNOME-based desktop) on a Debian-based distro. Prelude seems to be setting the titles of all frames to "emacs Prelude - <buffer name/>". That's not a problem in itself, since my frames are plenty wide. The problem is that Cinnamon (as well as most desktops of which I'm aware) wants to recycle frame titles for use on panel items[1], and my panel items are usually so small that all I can see on them (without hovering) is "emacs ...". So I'd like to restore the default (IIRC) Emacs behavior, that frame title == buffer name.

However, when I `grep` my Prelude fork for 'emacs Prelude', or merely for strings containing both those words (and in that order), I fail to recognize anywhere that prefix is being applied to the frame titles. So where is this prefix being set? or am I missing something?

[1]: Apologies if this is overkill, but it's been awhile since I've coded GUIs, so I'm not sure what these desktop elements *should* (canonically) be called. By "panel" I mean the strip at bottom of screen (by default) that contains the desktop main menu (at left, by default), the system tray (at right, by default), and the other ... panel items. By "panel item" I mean a rectangular tab-like thing that represents an open window (or "frame" in Emacs-speak); the number and size of panel items varies with the number of windows the user has currently open.

Henry

unread,
Oct 31, 2016, 1:44:03 PM10/31/16
to emacs-...@googlegroups.com
You can resolve by creating the file ~/.emacs.d/personal/frame-title.el, and adding the following code to it:

;; Don't include 'Prelude' or 'emacs' in frame title, due to space limitations.
;; This is modified version of code in core/prelude-ui.el

(setq frame-title-format
      '("" (:eval (if (buffer-file-name)
              (abbreviate-file-name (buffer-file-name))
            "%b"))))


--
You received this message because you are subscribed to the Google Groups "Emacs Prelude" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emacs-prelude+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages