aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul W. Rankin <pwr@skeletons.cc>2020-12-23 02:03:12 +1000
committerPaul W. Rankin <pwr@skeletons.cc>2020-12-23 02:03:12 +1000
commit8a10a66116797e132b19f57026a1976753d332e9 (patch)
treecb46c0862f9bb076e4b93280415562dcd2380528
parent24d55db236fea2b405d4bdc69b4c33d0f066059c (diff)
downloadbinder-8a10a66116797e132b19f57026a1976753d332e9.zip
Remove fun binder-sidebar-format-header-line
Subsume this into binder-sidebar-refresh
-rw-r--r--binder.el10
1 files changed, 3 insertions, 7 deletions
diff --git a/binder.el b/binder.el
index fe339d8..95aa1ce 100644
--- a/binder.el
+++ b/binder.el
@@ -870,12 +870,6 @@ Used by `binder-sidebar-shrink-window' and `binder-sidebar-enlarge-window'."
(defvar binder--current-fileid nil)
(defvar binder--sidebar-marked nil)
-(defun binder-sidebar-format-header-line ()
- "Format an appropriate window header-line for sidebar."
- (setq header-line-format
- (list :propertize (abbreviate-file-name binder-project-directory)
- 'face 'bold)))
-
(defun binder-sidebar-refresh ()
"Redraw binder sidebar, reading from cache."
(interactive)
@@ -888,7 +882,9 @@ Used by `binder-sidebar-shrink-window' and `binder-sidebar-enlarge-window'."
;; `binder-default-file-extension'.
;;
;; (hack-local-variables)
- (binder-sidebar-format-header-line)
+ (setq header-line-format
+ (list :propertize (abbreviate-file-name binder-project-directory)
+ 'face 'bold))
(let ((x (point)))
(erase-buffer)
(mapc