summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2023-02-25 21:36:07 +0800
committerJSDurand <mmemmew@gmail.com>2023-02-25 21:36:07 +0800
commitf0e6ac0875a67b5b7acae8d5a998c58f6899a658 (patch)
treead91acda536e5c1ab14df012bec763ddc998e7af
parenteef0f5cffb74bdce75dc099183a0d2dba84c12d3 (diff)
eshell: Fix typo and change section headings
* eshell-conf.el: Fix a typo in the documentation string of the function eshell/dl, and add some more sections for better structures.
-rw-r--r--eshell-conf.el10
1 files changed, 7 insertions, 3 deletions
diff --git a/eshell-conf.el b/eshell-conf.el
index 02036b7..0884d49 100644
--- a/eshell-conf.el
+++ b/eshell-conf.el
@@ -370,7 +370,7 @@ candidates."
"Choose a link: " candidates nil t))
candidates #'string=))))))))
-;;; convenient ls
+;;; Custom ls
(defvar dir-literal nil)
(defvar show-recursive nil)
@@ -387,13 +387,17 @@ candidates."
(defvar flush-func nil)
(defvar error-func nil)
+;;;; Convenient wrapper
+
(defun eshell/l (&rest args)
"Equivalent with \"dl -alhg ARGS\"."
(eshell/dl "-alhg" (or args ".")))
+;;;; Enhanced command
+
(defun eshell/dl (&rest args)
"My enhanced implementation of \"ls\" in Emacs Lisp, with ARGS.
-See `eshell/l` for the original version.
+See `eshell/ls' for the original version.
I added the option of \"g\" for grouping directories first."
(let ((insert-func 'eshell-buffered-print)
@@ -490,7 +494,7 @@ Sort entries alphabetically across.")
t (expand-file-name default-directory)))
(funcall flush-func))))
-;;; Group directories first in `eshell/ls'
+;;;; Group directories first in `eshell/ls'
(defvar durand-eshell-ls-dirs-first nil
"The variable that controls whether