commit e0f22974525fd67a8cf55450a2812cd74ba71d4d parent 54afe31d1ba2edbbb656b2e404c028eecd6363ab Author: Vincent Demeester <vincent@sbr.pm> Date: Thu, 9 Apr 2020 12:24:38 +0200 config-shell.el: move generic-term-init Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | tools/emacs/config/config-shells.el | | | 9 | +++++++++ |
M | tools/emacs/config/setup-style.el | | | 9 | --------- |
2 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/tools/emacs/config/config-shells.el b/tools/emacs/config/config-shells.el @@ -272,4 +272,13 @@ using either KUBECONFIG or ~/.kube/config" (add-to-list 'tramp-remote-path "~/.nix-profile/bin") (add-to-list 'tramp-remote-path "~/bin")) +(defun generic-term-init () + (visual-line-mode -1) + (setq-local global-hl-line-mode nil) + (setq-local scroll-margin 0)) + +(add-hook 'term-mode-hook #'generic-term-init) +(add-hook 'shell-mode-hook #'generic-term-init) +(add-hook 'eshell-mode-hook #'generic-term-init) + (provide 'setup-shells) diff --git a/tools/emacs/config/setup-style.el b/tools/emacs/config/setup-style.el @@ -15,15 +15,6 @@ ;; Show buffer position percentage starting from top - (defun generic-term-init () - (visual-line-mode -1) - (setq-local global-hl-line-mode nil) - (setq-local scroll-margin 0)) - - (add-hook 'term-mode-hook #'generic-term-init) - (add-hook 'shell-mode-hook #'generic-term-init) - (add-hook 'eshell-mode-hook #'generic-term-init) - (use-package highlight-numbers :hook (prog-mode . highlight-numbers-mode))