summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-12-10 14:03:45 +0100
committerAlan Pearce2019-12-10 14:03:45 +0100
commit9571aa431d05971bba9899fd404c2f420f490605 (patch)
treeba7ccfa096b04bd5bc9df39babd56fe37da98aa4 /user
parent581d41b82efbd534eba36a7906078361ee6d3f85 (diff)
downloadnixfiles-9571aa431d05971bba9899fd404c2f420f490605.tar.lz
nixfiles-9571aa431d05971bba9899fd404c2f420f490605.tar.zst
nixfiles-9571aa431d05971bba9899fd404c2f420f490605.zip
Revert "Emacs: remove relative-buffers"
This reverts commit 34e6a0cc0ce0103a2ee01edd2421c415af28be4a.

This isn't only used in the modeline, but also for buffer-selection
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/init.el6
-rw-r--r--user/settings/emacs.nix1
2 files changed, 7 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index 10312ec5..219ec068 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -151,6 +151,12 @@ With two prefix arguments, write out the day and month name."
             (which-key-mode +1)
             (which-key-setup-side-window-right-bottom)))
 
+;;; Modeline
+
+(use-package relative-buffers
+  :defer 2
+  :custom ((global-relative-buffers-mode t)))
+
 ;;; Minibuffer
 
 (setq enable-recursive-minibuffers t
diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix
index b2b29c09..a67b1fe0 100644
--- a/user/settings/emacs.nix
+++ b/user/settings/emacs.nix
@@ -152,6 +152,7 @@ in
       projectile-ripgrep
       quickrun
       rainbow-mode
+      relative-buffers
       restclient
       ripgrep
       rjsx-mode