chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a29709
)
dot/emacs: Put the unqualified hostname in the frame title.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 26 Apr 2020 18:19:11 +0000
(19:19 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 26 Apr 2020 18:19:11 +0000
(19:19 +0100)
dot/emacs
patch
|
blob
|
blame
|
history
diff --git
a/dot/emacs
b/dot/emacs
index 4ece425e30057114f0744d4a74cfaf1ce3c18af4..d6a1f4ceb48874832efa98605381fbaa01b7b60d 100644
(file)
--- a/
dot/emacs
+++ b/
dot/emacs
@@
-617,7
+617,12
@@
;; Other frame fiddling.
-(setq frame-title-format '("Emacs " user-login-name "@" system-name " – %b"))
+(defvar mdw-hostname
+ (if (string-match "\\." system-name)
+ (substring system-name 0 (match-beginning 0))
+ system-name))
+(setq frame-title-format
+ '("Emacs " user-login-name "@" mdw-hostname " – %b"))
;; Global keymap changes.