Kaynağa Gözat

update title format for xterm

pull/1/head
10sr 12 yıl önce
ebeveyn
işleme
f073685a5e
1 değiştirilmiş dosya ile 15 ekleme ve 8 silme
  1. +15
    -8
      emacs.el

+ 15
- 8
emacs.el Dosyayı Görüntüle

@@ -249,20 +249,27 @@ drill-instructor.el"
`(,@args "\007"))))))
(defun my-set-terminal-title ()
""
(set-terminal-title (abbreviate-file-name (or buffer-file-name
(set-terminal-title "["
user-login-name
"@"
system-name
":"
(abbreviate-file-name (or buffer-file-name
default-directory))
" | "
(number-to-string (length
(buffer-list-not-start-with-space)))
" buffers in "
(frame-parameter nil 'name)
" ["
"]["
invocation-name
" "
emacs-version
" "
(symbol-name system-type)
"] "))
"]["
"FRAME:"
(frame-parameter nil 'name)
":"
(number-to-string (length
(buffer-list-not-start-with-space)))
"]"
))
(add-hook 'buffer-file-changed-functions
(lambda (p c)
(my-set-terminal-title)))


Yükleniyor…
İptal
Kaydet