dired-k

https://github.com/syohex/emacs-dired-k.git

git clone 'git://github.com/syohex/emacs-dired-k.git'
25

dired-k.el travis badge melpa badge melpa stable badge

dired-k.el highlights dired buffer like k.

(This may works only default dired setting)

screenshot

k.zsh style

dired-k

git status –short style

dired-k-git-style

direx version

direx-k

Installation

You can install dired-k from MELPA with package.el.

Commands

dired-k

Highlight dired buffer by following parameters.

Customization

dired-k-style(Default nil)

View like k.zsh if this value is nil. View like git status --short if this value is 'git.

dired-k-human-readable(Default nil)

Set non-nil if you add -h or --human-readable option to dired-listing-switches.

Sample Configuration

dired-k

(require 'dired-k)
(define-key dired-mode-map (kbd "K") 'dired-k)

;; You can use dired-k alternative to revert-buffer
(define-key dired-mode-map (kbd "g") 'dired-k)

;; always execute dired-k when dired buffer is opened
(add-hook 'dired-initial-position-hook 'dired-k)

direx-k

(require 'direx-k)

(global-set-key (kbd "C-\\") 'direx-project:jump-to-project-root-other-window)
(define-key direx:direx-mode-map (kbd "K") 'direx-k)