0

Linux Mint 20

Emacs 26.3

I install packaged dired-k

And set this param in my init.el

'(dired-k-human-readable t)

But it not work in dired mode.

Here example Dired mode

As you can see size of files not show like KB/MB (human readable)

If in shell I use

ls -alFH

The show with human readable format:

 alexei@alexei-nb:~/.emacs.d$ ls -alFh
total 168K
drwx------  8 alexei alexei  12K Mar 27 18:22 ./
drwxrwxr-x 55 alexei alexei 4.0K Mar 27 17:54 ../
drwx------  2 alexei alexei 4.0K Mar 27 19:55 auto-save-list/
-rw-rw-r--  1 alexei alexei  11K Mar 25 23:37 bookmarks
drwxr-xr-x  2 alexei alexei 4.0K Mar 27 18:31 custom/
-rw-r--r--  1 alexei alexei 6.2K Mar 27 19:54 dired-history
drwxr-xr-x 62 alexei alexei 4.0K Mar 27 18:00 elpa/
drwx------  2 alexei alexei 4.0K Mar 16 23:42 eshell/
drwxr-xr-x  9 alexei alexei 4.0K Mar 27 19:54 .git/
-rw-r--r--  1 alexei alexei  341 Mar 19 21:21 .gitignore
-rw-------  1 alexei alexei 8.6K Mar 27 19:54 history
-rw-rw-r--  1 alexei alexei  62K Mar 27 19:54 ido.last
-rw-rw-r--  1 alexei alexei 8.6K Mar 27 19:54 init.el
-rw-r--r--  1 alexei alexei   50 Mar 19 21:18 README.md
-rw-------  1 alexei alexei 1.6K Mar 27 19:54 recentf

But why it's not work in dired mode?

1
0

I found solution. I customize dired-listing-switches.

So here in init.el file:

'(dired-listing-switches "-alFh")

And in dired mode show size in human readable format:

Dired mode in human readable format

1
  • 1
    I think your answer has nothing to do with dired-k (switch h suffices), which means that your question also has nothing to do with dired-k. Please edit the question to reflect this, so other users whom this Q&A might help can more easily find it.
    – Drew
    Mar 27 at 21:06

This site is temporarily in read only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .