Skip to content

Commit

Permalink
Add: Ranger-config, several rebindings to match rest of config
Browse files Browse the repository at this point in the history
  • Loading branch information
ekaschalk committed Nov 7, 2018
1 parent e3802f9 commit 09619c1
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
24 changes: 17 additions & 7 deletions layers/config/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ Redone bindings are disabled by default. Turn on with ~redo-bindings?~ in

** Evil and Core

| Key Binding | Function |
|-------------+------------------------|
| ~Q~ | config/execute-q-macro |
| ~H~ | evil-first-non-blank |
| ~L~ | evil-end-of-line |
| ~0~ | evil-jump-item |
| ~s~ | avy-goto-char-timer |
| Key Binding | Function |
|-------------+----------------------|
| ~Q~ | evil-execute-q-macro |
| ~H~ | evil-first-non-blank |
| ~L~ | evil-end-of-line |
| ~0~ | evil-jump-item |
| ~s~ | avy-goto-char-timer |
| ~_~ | ranger |

** Navigation and Windows

Expand Down Expand Up @@ -76,3 +77,12 @@ Redone bindings are disabled by default. Turn on with ~redo-bindings?~ in
| ~C-RET~ | ivy-call |
| ~C-SPC~ | ivy-dispatching-done |
| ~C-S-SPC~ | ivy-dispatching-call |

** Ranger

| Key Binding | Function |
|-------------+------------------------------|
| ~n~ | dired-create-directory |
| ~E~ | wdired-change-to-wdired-mode |
| ~C-j~ | ranger-travel |
| ~C-e~ | ranger-pop-eshell |
16 changes: 16 additions & 0 deletions layers/config/local/ranger-config/ranger-config.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
(require 'macros)
(require 'ranger)

(provide 'ranger-config)

;;; ranger-config

(setq ranger-deer-show-details nil)

(evil-global-set-key 'normal "_" 'ranger)

(bind-keys :map ranger-mode-map
("n" . dired-create-directory)
("E" . wdired-change-to-wdired-mode)
("C-j" . ranger-travel)
("C-e" . ranger-pop-eshell))
6 changes: 6 additions & 0 deletions layers/config/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
(ivy-config :location local)
(mu4e-config :location local)
(org-config :location local)
(ranger-config :location local)

;; Elsewhere-owned packages for languages
(clojure-config :location local)
Expand Down Expand Up @@ -116,6 +117,10 @@
(use-package org-config
:after org macros))

(defun config/init-ranger-config ()
(use-package ranger-config
:after ranger macros))

;;;; Languages

(defun config/init-clojure-config ()
Expand Down Expand Up @@ -189,6 +194,7 @@

;; A - applications
("ad" deer)
("ar" ranger)

;; B - buffers
("b." spacemacs/buffer-transient-state/body)
Expand Down

0 comments on commit 09619c1

Please sign in to comment.