shell: move deactivation of smooth-scrolling to shell layer

This commit is contained in:
syl20bnr 2016-01-08 21:27:26 -05:00
parent a5be67bf10
commit 4ed2229c5c
2 changed files with 10 additions and 5 deletions

View file

@ -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

View file

@ -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."