summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-01-09 14:22:23 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-01-09 14:22:23 +0000
commit4da0cef92f655dfdc06fa487024c114f8541c13c (patch)
tree4c7ae38d22a83fb3997f132d82046da826b67857
parent041ed694a1bd633dbe1e561b55d2d55353bc6f7a (diff)
tmux: Show time in status bar
Also, do not show time in emacs when running in tmux.
-rw-r--r--emacs/init.el2
-rw-r--r--tmux/conf1
2 files changed, 2 insertions, 1 deletions
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"