all repos — nixfiles @ 604b55aac4676abb5be423b56c3964d9b4967119

System and user configuration, managed by nix and home-manager

Emacs: Add a margin to ensure the next/previous line is always visible

Alan Pearce
commit

604b55aac4676abb5be423b56c3964d9b4967119

parent

fe9f97e2738ba591b8fc2d70f59067d5bd152fe3

1 file changed, 3 insertions(+), 2 deletions(-)

jump to
M emacs/init.elemacs/init.el
@@ -1009,7 +1009,7 @@ :defer t
:config (use-package quack)) (use-package slime - :commands (slime) + :commands (slime) :config (progn (let ((ql-slime-helper (expand-file-name "~/quicklisp/slime-helper.el"))) (if (file-exists-p ql-slime-helper)
@@ -1065,7 +1065,7 @@ (use-package cc-mode
:init (progn (add-hook 'c-mode-common-hook #'electric-indent-mode)) :config (progn - (setq c-default-style '((java-mode . "java") + (setq c-default-style '((java-mode . "java") (awk-mode . "awk") (other . "k&r")) c-basic-offset 4)
@@ -1148,6 +1148,7 @@ (abbreviate-file-name (buffer-file-name))
"%b")))) (setq scroll-conservatively 100 ; Keep the cursor position when scrolling + scroll-margin 1 scroll-preserve-screen-position nil) (when menu-bar-mode