From 3c7229443533e781753139e07148f0ba346fbeb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Dom=C3=ADnguez=20Ochoa?= Date: Fri, 21 Sep 2018 14:04:34 +0200 Subject: [PATCH] better scroll --- init.el | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/init.el b/init.el index cd7c55c..8eab335 100644 --- a/init.el +++ b/init.el @@ -39,11 +39,13 @@ mouse-wheel-scroll-amount '(1 ((shift) . 1)) mouse-wheel-progressive-speed nil mouse-wheel-follow-mouse 't - scroll-margin 1 - scroll-conservatively 0 - scroll-up-aggressively 0.01 - scroll-down-aggressively 0.01 +;; scroll-margin 1 + scroll-conservatively 10000 +;; scroll-up-aggressively 0.01 +;; scroll-down-aggressively 0.01 scroll-step 1 + auto-save-interval 1000 + auto-window-vscroll nil backup-by-copying t backup-directory-alist '(("." . "~/.saves")) undo-tree-history-directory-alist '(("." . "~/.undo-tree")) @@ -231,6 +233,7 @@ (point-max)))))) (concat " %" (number-to-string w) "d "))))) + (defun linum-format-func (line) (let ((face (if (= line linum-current-line)