mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Prefer setq-local in eshell
* lisp/eshell/em-cmpl.el (eshell-cmpl-initialize): * lisp/eshell/em-dirs.el (eshell-dirs-initialize): * lisp/eshell/em-glob.el (eshell-glob-initialize, eshell-glob-regexp): * lisp/eshell/em-hist.el (eshell-hist-initialize): * lisp/eshell/em-prompt.el (eshell-prompt-initialize): * lisp/eshell/em-rebind.el (eshell-rebind-initialize) (eshell-setup-input-keymap): * lisp/eshell/em-script.el (eshell-script-initialize): * lisp/eshell/em-smart.el (eshell-smart-initialize): * lisp/eshell/em-term.el (eshell-term-initialize, eshell-exec-visual): * lisp/eshell/em-tramp.el (eshell-tramp-initialize): * lisp/eshell/em-unix.el (eshell-unix-initialize, eshell/diff): * lisp/eshell/esh-arg.el (eshell-arg-initialize): * lisp/eshell/esh-cmd.el (eshell-cmd-initialize): * lisp/eshell/esh-io.el (eshell-get-target): * lisp/eshell/esh-mode.el (eshell-mode): * lisp/eshell/esh-var.el (eshell-var-initialize): Prefer setq-local.
This commit is contained in:
parent
f365eb2e05
commit
78cdf4c762
16 changed files with 90 additions and 107 deletions
|
|
@ -170,9 +170,9 @@ The options are `begin', `after' or `end'."
|
|||
(unless eshell-non-interactive-p
|
||||
;; override a few variables, since they would interfere with the
|
||||
;; smart display functionality.
|
||||
(set (make-local-variable 'eshell-scroll-to-bottom-on-output) nil)
|
||||
(set (make-local-variable 'eshell-scroll-to-bottom-on-input) nil)
|
||||
(set (make-local-variable 'eshell-scroll-show-maximum-output) t)
|
||||
(setq-local eshell-scroll-to-bottom-on-output nil)
|
||||
(setq-local eshell-scroll-to-bottom-on-input nil)
|
||||
(setq-local eshell-scroll-show-maximum-output t)
|
||||
|
||||
(add-hook 'window-scroll-functions 'eshell-smart-scroll-window nil t)
|
||||
(add-hook 'window-configuration-change-hook 'eshell-refresh-windows)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue