From d4a81b1088b0fd8d3f140018bcc7adbbdac696b8 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Tue, 12 Dec 2017 22:49:18 +0100 Subject: [PATCH] git: Disable pager globally --- .emacs.d/lisp/init-eshell.el | 8 +++++--- .gitconfig | 9 +++++++++ 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.emacs.d/lisp/init-eshell.el b/.emacs.d/lisp/init-eshell.el index a3e1f0a5..60fa2331 100644 --- a/.emacs.d/lisp/init-eshell.el +++ b/.emacs.d/lisp/init-eshell.el @@ -145,9 +145,11 @@ (dolist (p '("abook" "alsamixer" "cmus" "fzf" "htop" "mpsyt" "mpv" "mutt" "ncdu" "newsbeuter" "pinentry-curses" "ranger" "watch" "wifi-menu")) (add-to-list 'eshell-visual-commands p)) (setq eshell-visual-subcommands - '(("git" "log" "diff" "show" - "l" "lol" "d" "dc") ; aliases - ("sudo" "wifi-menu") ; Arch Linux + ;; Some Git commands use a pager by default. + ;; Either invoke the subcommands in a term ("visual") or configure Git + ;; to disable the pager globally. + ;; '(("git" "log" "diff" "show") + '(("sudo" "wifi-menu") ; Arch Linux ("sudo" "vi" "visudo")))) ;;; Alias management possibilities: diff --git a/.gitconfig b/.gitconfig index ab4f1ef1..27781027 100644 --- a/.gitconfig +++ b/.gitconfig @@ -42,3 +42,12 @@ suppresscc = author # sendemail.confir = auto aliasfiletype = mutt # aliasesfile = ~/.mutt.d/aliases + +[core] +pager = cat + +[man] +viewer = catman + +[man "catman"] +cmd = man -P cat \ No newline at end of file