Improve comint/term/gud config
- move comint config to its own use-package and setq-default its variables - Pmove variables to hooks where necessary
This commit is contained in:
parent
59ff164ceb
commit
d35275797e
@ -87,24 +87,35 @@
|
|||||||
:defer
|
:defer
|
||||||
:config
|
:config
|
||||||
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
|
(add-to-list 'tramp-remote-path 'tramp-own-remote-path)
|
||||||
(add-to-list 'tramp-remote-path '"/home/adam/asgoldsmith/install/bin/"))
|
(add-to-list 'tramp-remote-path '"/home/adam/asgoldsmith/install/bin/")
|
||||||
|
(setq tramp-default-method "ssh"))
|
||||||
|
|
||||||
|
(use-package comint
|
||||||
|
:config
|
||||||
|
(setq-default comint-scroll-to-bottom-on-input t ; always insert at the bottom
|
||||||
|
comint-scroll-to-bottom-on-output nil ; always add output at the bottom
|
||||||
|
comint-scroll-show-maximum-output t ; scroll to show max possible output
|
||||||
|
;; comint-completion-autolist t ; show completion list when ambiguous
|
||||||
|
comint-input-ignoredups t ; no duplicates in command history
|
||||||
|
comint-completion-addsuffix t ; insert space/slash after file completion
|
||||||
|
comint-buffer-maximum-size 20000 ; max length of the buffer in lines
|
||||||
|
comint-get-old-input (lambda () "") ; what to run when i press enter on a
|
||||||
|
; line above the current prompt
|
||||||
|
comint-input-ring-size 500) ; max shell history size
|
||||||
|
(add-hook 'comint-mode-hook
|
||||||
|
'(lambda () (setq-local show-trailing-whitespace nil))))
|
||||||
|
|
||||||
(use-package term
|
(use-package term
|
||||||
:config
|
:config
|
||||||
(setq tramp-default-method "ssh" ; uses ControlMaster
|
(add-hook 'term-mode-hook
|
||||||
comint-scroll-to-bottom-on-input t ; always insert at the bottom
|
'(lambda () (setq-local
|
||||||
comint-scroll-to-bottom-on-output nil ; always add output at the bottom
|
;if this is t, it breaks shell-command
|
||||||
comint-scroll-show-maximum-output t ; scroll to show max possible output
|
comint-prompt-read-only nil))))
|
||||||
;; comint-completion-autolist t ; show completion list when ambiguous
|
|
||||||
comint-input-ignoredups t ; no duplicates in command history
|
(use-package gud
|
||||||
comint-completion-addsuffix t ; insert space/slash after file completion
|
:config
|
||||||
comint-buffer-maximum-size 20000 ; max length of the buffer in lines
|
(add-hook 'gud-mode-hook
|
||||||
comint-prompt-read-only nil ; if this is t, it breaks shell-command
|
'(lambda () (setq-local comint-prompt-read-only t))))
|
||||||
comint-get-old-input (lambda () "") ; what to run when i press enter on a
|
|
||||||
; line above the current prompt
|
|
||||||
comint-input-ring-size 500 ; max shell history size
|
|
||||||
protect-buffer-bury-p nil)
|
|
||||||
(add-hook 'term-mode-hook'(lambda () (setq-local show-trailing-whitespace nil))))
|
|
||||||
|
|
||||||
;;;; external packages (required)
|
;;;; external packages (required)
|
||||||
(use-package company :quelpa
|
(use-package company :quelpa
|
||||||
|
Loading…
Reference in New Issue
Block a user