summary refs log tree commit diff stats
path: root/user
diff options
context:
space:
mode:
authorAlan Pearce2019-10-07 18:13:54 +0200
committerAlan Pearce2019-10-07 18:13:54 +0200
commit39d1a66d385601915243e964843d07895eb4113d (patch)
treeea5afe2df3e93d107220005b717231a8f773e25b /user
parent6c8b1d4a5df461002aca8a68e9c222d40e264529 (diff)
downloadnixfiles-39d1a66d385601915243e964843d07895eb4113d.tar.lz
nixfiles-39d1a66d385601915243e964843d07895eb4113d.tar.zst
nixfiles-39d1a66d385601915243e964843d07895eb4113d.zip
Emacs: enable dired-git-info, bound to )
Looks like the directory viewer on a VCS website
Diffstat (limited to 'user')
-rw-r--r--user/emacs/.emacs.d/main.el5
-rw-r--r--user/modules/emacs.nix1
2 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/main.el b/user/emacs/.emacs.d/main.el
index 2f6916dd..1aa128bc 100644
--- a/user/emacs/.emacs.d/main.el
+++ b/user/emacs/.emacs.d/main.el
@@ -534,6 +534,11 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
           (lambda ()
             (dired-hide-details-mode)))
 
+(use-package dired-git-info
+  :general (:keymaps 'dired-mode-map
+                     :states 'normal
+                     ")" #'dired-git-info-mode))
+
 ;;; Shells
 
 (use-package eshell
diff --git a/user/modules/emacs.nix b/user/modules/emacs.nix
index eef2e4e8..17c0bf92 100644
--- a/user/modules/emacs.nix
+++ b/user/modules/emacs.nix
@@ -56,6 +56,7 @@ in
       crux
       docker-compose-mode
       dockerfile-mode
+      dired-git-info
       editorconfig
       eink-theme
       eldoc-box