In eshell, use cat as pager and emacsclient as editor

This commit is contained in:
2021-01-15 12:29:06 -06:00
parent 467c45705c
commit 9b94939c42
+5
View File
@@ -113,6 +113,11 @@
"Filter list lst to only those elements matching condp." "Filter list lst to only those elements matching condp."
(delq nil (mapcar (lambda (x) (and (funcall condp x) x)) lst))) (delq nil (mapcar (lambda (x) (and (funcall condp x) x)) lst)))
(add-hook 'eshell-mode-hook
(lambda ()
(setenv "PAGER" "cat"))
(setenv "EDITOR" "emacsclient")))
(let ((site-dir (expand-file-name "~/.doom.d/site.d/"))) (let ((site-dir (expand-file-name "~/.doom.d/site.d/")))
(let ((configs (filter (lambda (name) (let ((configs (filter (lambda (name)
(not (or (string-match "~$" name) (not (or (string-match "~$" name)