diff --git a/emacs/+window.el b/emacs/+window.el new file mode 100644 index 0000000..7fe745e --- /dev/null +++ b/emacs/+window.el @@ -0,0 +1,17 @@ +;;; window.org.el -*- lexical-binding: t; -*- + +(setq doom-fallback-buffer-name "Doom" + +doom-dashboard-name "Doom Dashboard") + +(setq frame-title-format + '("" + (:eval + (if (s-contains-p org-roam-directory (or buffer-file-name "")) + (replace-regexp-in-string + ".*/[0-9]*-?" "☰ " + (subst-char-in-string ?_ ? buffer-file-name)) + "%b")) + (:eval + (let ((project-name (projectile-project-name))) + (unless (string= "-" project-name) + (format (if (buffer-modified-p) " ♢ %s" " ♦ %s") project-name)))))) diff --git a/emacs/config.el b/emacs/config.el index 108214d..de947fd 100644 --- a/emacs/config.el +++ b/emacs/config.el @@ -23,3 +23,4 @@ (load! "+org") (load! "+company") (load! "+modeline") +(load! "+window")