From 5e81144622d66ca011da28fb414d2a8bfe71cc7e Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 6 Jul 2020 20:45:33 +0100 Subject: [PATCH] Misc Emacs improvements I stole these bad-boys from @tazjin's config. --- emacs/.emacs.d/wpc/wpc-misc.el | 3 +++ emacs/.emacs.d/wpc/wpc-ui.el | 3 +++ 2 files changed, 6 insertions(+) diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el index 1483c53af..f8bc2079b 100644 --- a/emacs/.emacs.d/wpc/wpc-misc.el +++ b/emacs/.emacs.d/wpc/wpc-misc.el @@ -20,6 +20,9 @@ " %a %d %b [%U of 52 weeks]")) (display-time-mode 1) +;; Remove the boilerplate in the *scratch* buffer +(setq initial-scratch-message "") + ;; disable custom variable entries from being written to ~/.emacs.d/init.el (setq custom-file "~/.emacs.d/custom.el") (load custom-file 'noerror) diff --git a/emacs/.emacs.d/wpc/wpc-ui.el b/emacs/.emacs.d/wpc/wpc-ui.el index 1243feb0a..cdb210217 100644 --- a/emacs/.emacs.d/wpc/wpc-ui.el +++ b/emacs/.emacs.d/wpc/wpc-ui.el @@ -24,6 +24,9 @@ ;; increase line height (setq-default line-spacing 4) +(when window-system + (setq frame-title-format '(buffer-file-name "%f" ("%b")))) + ;; Ensure that buffers update when their contents change on disk. (global-auto-revert-mode t)