From 4da0cef92f655dfdc06fa487024c114f8541c13c Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 9 Jan 2022 14:22:23 +0000 Subject: tmux: Show time in status bar Also, do not show time in emacs when running in tmux. --- emacs/init.el | 2 +- tmux/conf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs/init.el b/emacs/init.el index 0ef2e47..83d81d4 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -51,7 +51,7 @@ (auto-save-visited-mode 1) (blink-cursor-mode -1) (column-number-mode 1) -(display-time-mode 1) +(display-time-mode (if (getenv "TMUX") -1 1)) (electric-indent-mode -1) (global-auto-revert-mode 1) (show-paren-mode 1) diff --git a/tmux/conf b/tmux/conf index 49eb21c..7358e20 100644 --- a/tmux/conf +++ b/tmux/conf @@ -4,3 +4,4 @@ set -g base-index 1 set -g escape-time 0 set -g mouse on set -g renumber-windows on +set -g status-right "%R %Z" -- cgit v1.2.3-70-g09d2