aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorAdrian Kummerlaender2020-06-19 22:30:50 +0200
committerAdrian Kummerlaender2020-06-19 22:30:50 +0200
commitcf8075b7b2f5cd049c0a0ef46b9c8627daab4d09 (patch)
tree99f15191dc84d18d06b54a5216600c6fe1054dee /gui
parent6b2444207e68ff54714a1cf75a3786607e7646b1 (diff)
downloadnixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.tar
nixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.tar.gz
nixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.tar.bz2
nixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.tar.lz
nixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.tar.xz
nixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.tar.zst
nixos_home-cf8075b7b2f5cd049c0a0ef46b9c8627daab4d09.zip
Add basic dired customization to Emacs
Diffstat (limited to 'gui')
-rw-r--r--gui/conf/init.el31
1 files changed, 22 insertions, 9 deletions
diff --git a/gui/conf/init.el b/gui/conf/init.el
index 297ef6a..baa8a57 100644
--- a/gui/conf/init.el
+++ b/gui/conf/init.el
@@ -54,6 +54,19 @@
(load-library "custom-runtime-env")
(load-library "akr-theme")
+(use-package evil
+ :ensure t
+ :init
+ (setq evil-search-module 'evil-search)
+ :config
+ (evil-mode 1))
+
+(use-package evil-leader
+ :ensure t
+ :config
+ (global-evil-leader-mode 1)
+ (evil-leader/set-leader ","))
+
(use-package minions
:ensure t
:config
@@ -67,21 +80,21 @@
(setq doom-modeline-vcs-max-length 24)
(setq doom-modeline-minor-modes t))
-(use-package hydra
- :ensure t)
+(setq dired-listing-switches "-Bahl --group-directories-first")
-(use-package evil
+(use-package all-the-icons-dired
:ensure t
- :init
- (setq evil-search-module 'evil-search)
:config
- (evil-mode 1))
+ (add-hook 'dired-mode-hook 'all-the-icons-dired-mode))
-(use-package evil-leader
+(use-package dired-subtree
:ensure t
:config
- (global-evil-leader-mode 1)
- (evil-leader/set-leader ","))
+ (evil-define-key 'normal dired-mode-map
+ (kbd "TAB") 'dired-subtree-toggle))
+
+(use-package hydra
+ :ensure t)
(use-package darkroom
:ensure t