aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/eshell
diff options
context:
space:
mode:
authorStefan Kangas2019-10-08 16:42:05 +0200
committerStefan Kangas2019-10-08 16:44:48 +0200
commit759ba8d1d4553acc14ee5db552f69e08d268aa95 (patch)
treec4e0ecb2fd0afc98574c77773cd08f1144fe56a6 /lisp/eshell
parent6469f9cd9290c2ed3317b1fd4fbb4288295b327f (diff)
downloademacs-759ba8d1d4553acc14ee5db552f69e08d268aa95.tar.gz
emacs-759ba8d1d4553acc14ee5db552f69e08d268aa95.zip
Add some more commands to eshell-visual-commands
* lisp/eshell/em-term.el (eshell-visual-commands): Add some more commonly used commands.
Diffstat (limited to 'lisp/eshell')
-rw-r--r--lisp/eshell/em-term.el26
1 files changed, 10 insertions, 16 deletions
diff --git a/lisp/eshell/em-term.el b/lisp/eshell/em-term.el
index dea90405ad7..36a26e9346b 100644
--- a/lisp/eshell/em-term.el
+++ b/lisp/eshell/em-term.el
@@ -53,22 +53,21 @@ which commands are considered visual in nature."
53(defcustom eshell-term-load-hook nil 53(defcustom eshell-term-load-hook nil
54 "A list of functions to call when loading `eshell-term'." 54 "A list of functions to call when loading `eshell-term'."
55 :version "24.1" ; removed eshell-term-initialize 55 :version "24.1" ; removed eshell-term-initialize
56 :type 'hook 56 :type 'hook)
57 :group 'eshell-term)
58 57
59(defcustom eshell-visual-commands 58(defcustom eshell-visual-commands
60 '("vi" ; what is going on?? 59 '("vi" ; what is going on??
61 "screen" "top" ; ok, a valid program... 60 "screen" "tmux" "top" "htop" ; ok, a valid program...
62 "less" "more" ; M-x view-file 61 "less" "more" ; M-x view-file
63 "lynx" "ncftp" ; w3.el, ange-ftp 62 "lynx" "links" "ncftp" ; eww, ange-ftp
64 "pine" "tin" "trn" "elm") ; GNUS!! 63 "mutt" "pine" "tin" "trn" "elm") ; GNUS!!
65 "A list of commands that present their output in a visual fashion. 64 "A list of commands that present their output in a visual fashion.
66 65
67Commands listed here are run in a term buffer. 66Commands listed here are run in a term buffer.
68 67
69See also `eshell-visual-subcommands' and `eshell-visual-options'." 68See also `eshell-visual-subcommands' and `eshell-visual-options'."
70 :type '(repeat string) 69 :type '(repeat string)
71 :group 'eshell-term) 70 :version "27.1")
72 71
73(defcustom eshell-visual-subcommands 72(defcustom eshell-visual-subcommands
74 nil 73 nil
@@ -89,8 +88,7 @@ because git shows logs and diffs using a pager by default.
89See also `eshell-visual-commands' and `eshell-visual-options'." 88See also `eshell-visual-commands' and `eshell-visual-options'."
90 :type '(repeat (cons (string :tag "Command") 89 :type '(repeat (cons (string :tag "Command")
91 (repeat (string :tag "Subcommand")))) 90 (repeat (string :tag "Subcommand"))))
92 :version "24.4" 91 :version "24.4")
93 :group 'eshell-term)
94 92
95(defcustom eshell-visual-options 93(defcustom eshell-visual-options
96 nil 94 nil
@@ -111,8 +109,7 @@ always uses a pager for output.
111See also `eshell-visual-commands' and `eshell-visual-subcommands'." 109See also `eshell-visual-commands' and `eshell-visual-subcommands'."
112 :type '(repeat (cons (string :tag "Command") 110 :type '(repeat (cons (string :tag "Command")
113 (repeat (string :tag "Option")))) 111 (repeat (string :tag "Option"))))
114 :version "24.4" 112 :version "24.4")
115 :group 'eshell-term)
116 113
117;; If you change this from term-term-name, you need to ensure that the 114;; If you change this from term-term-name, you need to ensure that the
118;; value you choose exists in the system's terminfo database. (Bug#12485) 115;; value you choose exists in the system's terminfo database. (Bug#12485)
@@ -121,8 +118,7 @@ See also `eshell-visual-commands' and `eshell-visual-subcommands'."
121See `term-term-name' in term.el for more information on how this is 118See `term-term-name' in term.el for more information on how this is
122used." 119used."
123 :version "24.3" ; eterm -> term-term-name = eterm-color 120 :version "24.3" ; eterm -> term-term-name = eterm-color
124 :type 'string 121 :type 'string)
125 :group 'eshell-term)
126 122
127(defcustom eshell-escape-control-x t 123(defcustom eshell-escape-control-x t
128 "If non-nil, allow <C-x> to be handled by Emacs key in visual buffers. 124 "If non-nil, allow <C-x> to be handled by Emacs key in visual buffers.
@@ -130,16 +126,14 @@ See the variables `eshell-visual-commands',
130`eshell-visual-subcommands', and `eshell-visual-options'. If 126`eshell-visual-subcommands', and `eshell-visual-options'. If
131this variable is set to nil, <C-x> will send that control 127this variable is set to nil, <C-x> will send that control
132character to the invoked process." 128character to the invoked process."
133 :type 'boolean 129 :type 'boolean)
134 :group 'eshell-term)
135 130
136(defcustom eshell-destroy-buffer-when-process-dies nil 131(defcustom eshell-destroy-buffer-when-process-dies nil
137 "If non-nil, term buffers are destroyed after their processes die. 132 "If non-nil, term buffers are destroyed after their processes die.
138WARNING: Setting this to non-nil may result in unexpected 133WARNING: Setting this to non-nil may result in unexpected
139behavior for short-lived processes, see bug#18108." 134behavior for short-lived processes, see bug#18108."
140 :version "25.1" 135 :version "25.1"
141 :type 'boolean 136 :type 'boolean)
142 :group 'eshell-term)
143 137
144;;; Internal Variables: 138;;; Internal Variables:
145 139