shell: move deactivation of smooth-scrolling to shell layer
This commit is contained in:
parent
a5be67bf10
commit
4ed2229c5c
|
@ -1726,12 +1726,10 @@ Open junk file using helm, with `prefix-arg' search in junk files"
|
|||
:config
|
||||
(progn
|
||||
(setq scroll-margin 5)
|
||||
;; add hooks here only for emacs built-in packages
|
||||
;; add hooks here only for emacs built-in packages that are not owned
|
||||
;; by a layer.
|
||||
(spacemacs/add-to-hooks 'spacemacs//unset-scroll-margin
|
||||
'(messages-buffer-mode-hook
|
||||
eshell-mode-hook
|
||||
comint-mode-hook
|
||||
term-mode-hook))))
|
||||
'(messages-buffer-mode-hook))))
|
||||
|
||||
(unless dotspacemacs-smooth-scrolling
|
||||
;; deactivate smooth-scrolling advices
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
xterm-color
|
||||
shell
|
||||
shell-pop
|
||||
smooth-scrolling
|
||||
term
|
||||
eshell
|
||||
eshell-z
|
||||
|
@ -321,6 +322,12 @@ is achieved by adding the relevant text properties."
|
|||
"ast" 'shell-pop-ansi-term
|
||||
"asT" 'shell-pop-term))))
|
||||
|
||||
(defun shell/post-init-smooth-scrolling ()
|
||||
(spacemacs/add-to-hooks 'spacemacs//unset-scroll-margin
|
||||
'(eshell-mode-hook
|
||||
comint-mode-hook
|
||||
term-mode-hook)))
|
||||
|
||||
(defun shell/init-term ()
|
||||
(defun term-send-tab ()
|
||||
"Send tab in term mode."
|
||||
|
|
Loading…
Reference in a new issue