summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-07-28 23:28:48 +0100
committerjao <jao@gnu.org>2022-07-28 23:28:48 +0100
commita5e70559266fcc1e3230ad0de23e88d54d7f6083 (patch)
tree7f0dd686cefba502eaca9956bece89b033196655
parent38d3a12d36945bde8293cbfe03c21003139d317c (diff)
downloadelibs-a5e70559266fcc1e3230ad0de23e88d54d7f6083.tar.gz
elibs-a5e70559266fcc1e3230ad0de23e88d54d7f6083.tar.bz2
more conservative scrolling in term (to no avail)
-rw-r--r--init.el18
1 files changed, 12 insertions, 6 deletions
diff --git a/init.el b/init.el
index 989a674..3bf30b1 100644
--- a/init.el
+++ b/init.el
@@ -1070,11 +1070,17 @@
;;;; redisplay escape hatch
(setq max-redisplay-ticks 2250000)
;;;; scrolling
-(setq scroll-preserve-screen-position 'always
- scroll-conservatively most-positive-fixnum
- scroll-margin 4
- scroll-step 2
- redisplay-skip-fontification-on-input t)
+(if window-system
+ (setq scroll-preserve-screen-position 'always
+ scroll-conservatively most-positive-fixnum
+ scroll-margin 0
+ scroll-step 2
+ redisplay-skip-fontification-on-input t)
+ (setq scroll-preserve-screen-position nil
+ scroll-conservatively 0
+ scroll-margin 0
+ scroll-step 1
+ redisplay-skip-fontification-on-input nil))
;;; Windows
;;;; splitting and switch
@@ -2211,7 +2217,7 @@
(require 'paren)
(show-paren-mode t)
(setq show-paren-context-when-offscreen t
- show-paren-when-point-inside-paren t)
+ show-paren-when-point-inside-paren nil)
(use-package paredit
:ensure t