aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Triguba <hello@eugenetriguba.com>2026-04-25 12:45:45 -0400
committerEugene Triguba <hello@eugenetriguba.com>2026-04-25 12:45:45 -0400
commita6ce2ac2beb56bf20eef77f82fc6696ff9d8d658 (patch)
treeda50e59e49457ab2af24db303baaa361c7373485
parentAdjust emacs config (diff)
downloaddotfiles-a6ce2ac2beb56bf20eef77f82fc6696ff9d8d658.zip
Set emacs frame title to file path
-rw-r--r--.emacs.d/lisp/et-appearance.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/.emacs.d/lisp/et-appearance.el b/.emacs.d/lisp/et-appearance.el
index 5f30f18..3c0935c 100644
--- a/.emacs.d/lisp/et-appearance.el
+++ b/.emacs.d/lisp/et-appearance.el
@@ -20,6 +20,15 @@
;; keybindings with evil mode.
(setq display-line-numbers-type 'relative)
+;; Set the emacs frame title to the full file path.
+;;
+;; Source - https://stackoverflow.com/a/3669681
+;; Posted by Jérôme Radix, modified by community. See post 'Timeline' for change history
+;; Retrieved 2026-04-25, License - CC BY-SA 3.0
+(setq frame-title-format
+ (list (format "%s %%S: %%j " (system-name))
+ '(buffer-file-name "%f" (dired-directory dired-directory "%b"))))
+
(use-package nord-theme
:config
(load-theme 'nord t))