xterm-color comes from use-package

This commit is contained in:
John Doty 2021-08-22 20:06:00 -07:00
parent 54968db079
commit 2f214b4d04

View file

@ -928,11 +928,12 @@
(add-hook 'shell-mode-hook 'my-shell-mode-hook) (add-hook 'shell-mode-hook 'my-shell-mode-hook)
;; xterm-color ;; xterm-color
(require 'xterm-color) (use-package xterm-color :ensure
(progn (add-hook 'comint-preoutput-filter-functions 'xterm-color-filter) :config
(setq comint-output-filter-functions (add-hook 'comint-preoutput-filter-functions 'xterm-color-filter)
(remove 'ansi-color-process-output (setq comint-output-filter-functions
comint-output-filter-functions))) (remove 'ansi-color-process-output
comint-output-filter-functions)))
;; ag ;; ag
(global-set-key (kbd "M-p") 'ag-project-regexp) (global-set-key (kbd "M-p") 'ag-project-regexp)