From b08c4e0c3fbc13ee8cedc1e43de92008b72a3a39 Mon Sep 17 00:00:00 2001 From: xeruf <27jf@pm.me> Date: Thu, 14 Oct 2021 15:53:28 +0200 Subject: [PATCH] config/doom: add dired-ranger --- .config/doom/config.el | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.config/doom/config.el b/.config/doom/config.el index 7cb49d8..1546d94 100644 --- a/.config/doom/config.el +++ b/.config/doom/config.el @@ -343,6 +343,9 @@ Version 2019-11-04 2021-02-16" org-ascii-text-width 999999 ) + (require 'ox-extra) + (ox-extras-activate '(ignore-headlines)) + (require 'ox-latex) (add-to-list 'org-latex-classes '("shortreport" "\\documentclass[oneside]{memoir} \\chapterstyle{article}" ("\\chapter{%s}" . "\\chapter*{%s}") @@ -351,9 +354,6 @@ Version 2019-11-04 2021-02-16" ("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}" . "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))) - - (require 'ox-extra) - (ox-extras-activate '(ignore-headlines)) ) ;; https://discord.com/channels/406534637242810369/406554085794381833/814175445004189706 ;; Fix xdg-open after setting process-connection-type @@ -406,8 +406,9 @@ Version 2019-11-04 2021-02-16" (map! :map dired-mode-map :n "RET" 'dired-find-file-dwim + :n "r" 'ranger :leader - :desc "Dragon marks" "d" + :desc "Dragon marked files" "d" (lambda () (interactive) (dragon (s-join " " (dired-get-marked-files)))) :localleader :desc "Compress/Extract" "c" 'dired-do-compress @@ -417,11 +418,13 @@ Version 2019-11-04 2021-02-16" :desc "Open image-dired" "i" (lambda () (interactive) (image-dired buffer-file-name)) :desc "Open image externally" "I" 'image-dired-dired-display-external - ) - (map! :map wdired-mode-map + :desc "Start ranger" "r" 'ranger + :map wdired-mode-map :n "RET" (lambda () (interactive) (progn (wdired-exit) (dired-find-file-dwim))) + :map ranger-mode-map + :n "r" 'ranger ) )