Emacs 糟糕:信息太多 [英] Emacs dired: too much information

查看:15
本文介绍了Emacs 糟糕:信息太多的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用 Emacs,一切都很好,但是有关我目录中每个文件的信息太全面了.我怎么能告诉它只显示文件名(可能是人类可读格式的文件大小)?我尝试了诸如 dired-listing-switches 之类的选项,但没有任何运气.

I'm trying to use Emacs and everything is fine, but the information about every file in my directory is too comprehensive. How can I tell it to show only file name (and maybe filesize in human readable format)? I tried options like dired-listing-switches but without any luck.

推荐答案

您可以通过使用 Emacs 的 ls 仿真而不是直接使用 ls 来减少显示的信息量.

You can reduce the amount of information displayed by using Emacs' ls emulation instead of allowing it to use ls directly.

要启用 ls 仿真,请将以下代码添加到您的启动文件(可能是 .emacs 或 .emacs.d/init.el):

To enable ls emulation, add the following code to your startup file (probably .emacs or .emacs.d/init.el):

(require 'ls-lisp)
(setq ls-lisp-use-insert-directory-program nil)

然后您可以使用 M-x Customize-group RET ls-lisp RET 自定义显示.具体来说,Ls Lisp Verbosity"设置可用于禁用许多列.没有明显的方法可以将其归结为文件名和大小,但您当然可以摆脱所有者/组/链接数列.

You can then customise the display with M-x customize-group RET ls-lisp RET. Specifically, the "Ls Lisp Verbosity" setting can be used to disable a number of columns. There's no obvious way to get it down to just the filename and size, but you can certainly get rid of the owner/group/link-count columns.

这篇关于Emacs 糟糕:信息太多的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆