CherrrySzczery · 2022-01-28 07:38
CherrrySzczery · 2022-01-28 07:41
Configuration:
```
(menu-bar-mode 0)
(scroll-bar-mode 0)
(tool-bar-mode 0)
(tooltip-mode 0)
(fringe-mode 0)
(column-number-mode 1)
(setq disabled-command-function nil)
(delete-selection-mode 1)
(show-paren-mode 1)
(electric-pair-mode 1)
(setq display-line-numbers-type 'relative)
(global-display-line-numbers-mode t)
(setq-default indent-tabs-mode t)
(setq-default tab-width 8)
(setq-default c-basic-offset tab-width)
(setq confirm-kill-processes nil)
(setq scroll-margin 4)
(setq scroll-step 1)
(setq inhibit-startup-screen t)
(setq ido-everywhere 1)
(ido-mode 1)
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/"))
(load-theme 'zenburn t)
(setq inferior-lisp-program "sbcl")
(add-hook 'slime-mode-hook
(lambda ()
(unless (slime-connected-p)
(save-excursion (slime)))))
(global-set-key (kbd "M-x") 'smex)
(global-set-key (kbd "M-X") 'smex-major-mode-commands)
(global-set-key (kbd "C-c C-c M-x") 'execute-extended-command)
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages '(magit zenburn-theme smex slime nord-theme)))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
```
The issue appears when margin scroll-margin is different than 0
eli-zaretskii · 2022-01-28 07:56
What is weird? (I cannot see anything in the video you posted.)
CherrrySzczery · 2022-01-28 08:01
Don't you see how the screen is jumping up multiple lines? It should go up one line at a time when I scroll upwards.
andreyorst · 2022-01-28 10:41
add this:
(setq scroll-conservatively 101)
and it should always scroll by one line a time
eli-zaretskii · 2022-01-28 12:28
I see nothing, just a black rectangle.
Is this in `emacs -Q`? And how do you scroll, with what command or key sequence?
[deleted] · 2022-01-28 20:09
How long did you take to produce that code?
I bet it would take me longer to make that code.
nicholas_hubbard · 2022-01-28 22:21
I set mine to a million so I can scroll conservatively indefinitely.
andreyorst · 2022-01-29 05:42
It doesn't matter if you use 101 or a million:
>If the value is greater than 100, redisplay will never recenter point, but will always scroll just enough text to bring point into view, even if you move far away.
>
>A value of zero means always recenter point if it moves off screen.
nicholas_hubbard · 2022-01-29 14:13
oh nice! Ill set it to 101 then.