scratch: autoupdate default-directory in header-line

This commit is contained in:
Henrik Lissner 2016-04-13 16:14:45 -04:00
parent f212d0bb46
commit 9565bae1f9

View File

@ -210,7 +210,7 @@ Examples:
(let ((dir (or dir (narf/project-root)))) (let ((dir (or dir (narf/project-root))))
(with-current-buffer (get-buffer-create "*scratch*") (with-current-buffer (get-buffer-create "*scratch*")
(setq default-directory dir) (setq default-directory dir)
(setq header-line-format (concat "" dir))))) (setq header-line-format '(:eval (concat "" default-directory))))))
;;;; Global Defuns ;;;;;;;;;;;;;;;;;;;;; ;;;; Global Defuns ;;;;;;;;;;;;;;;;;;;;;