From 9453a80ebf5f3c9d3ef9991f8ddee083f9dbdfca Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Tue, 28 May 2019 15:27:31 +0900 Subject: [PATCH] Update some term-mode cofnigs --- emacs.el | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/emacs.el b/emacs.el index 5e9268a..66f5465 100644 --- a/emacs.el +++ b/emacs.el @@ -1624,12 +1624,11 @@ found, otherwise returns nil." (add-hook 'term-mode-hook (lambda () ;; Stop current line highlighting - (set (make-local-variable (defvar hl-line-range-function)) - (lambda () '(0 . 0))) - (set (make-local-variable 'scroll-margin) - 0) - (set-variable 'term-buffer-maximum-size 20480) + (set-variable 'hl-line-range-function (lambda () '(0 . 0)) t) + (set-variable 'scroll-margin 0 t) )) +(set-variable 'term-buffer-maximum-size 20480) +(set-variable 'term-suppress-hard-newline t) (add-hook 'Man-mode-hook (lambda () @@ -2117,8 +2116,8 @@ and search from projectile root (if projectile is available)." (safe-require-or-eval 'projectile) (projectile-project-p)) (projectile-with-default-dir (projectile-project-root) - (compilation-start command-args - 'grep-mode)) + (compilation-start command-args + 'grep-mode)) (compilation-start command-args 'grep-mode))) @@ -2136,8 +2135,8 @@ and search from projectile root (if projectile is available)." (if (safe-require-or-eval 'projectile) (projectile-with-default-dir (or (projectile-project-root) default-directory) - (compilation-start command-args - 'grep-mode)) + (compilation-start command-args + 'grep-mode)) (compilation-start command-args 'grep-mode))))