summary refs log tree commit diff stats
path: root/emacs/init.el
diff options
context:
space:
mode:
authorAlan Pearce2013-11-01 18:23:22 +0000
committerAlan Pearce2013-11-01 18:23:22 +0000
commit604b55aac4676abb5be423b56c3964d9b4967119 (patch)
treedfc96b02a4985714f1b22365d0b3ce85e280ee11 /emacs/init.el
parentfe9f97e2738ba591b8fc2d70f59067d5bd152fe3 (diff)
downloadnixfiles-604b55aac4676abb5be423b56c3964d9b4967119.tar.lz
nixfiles-604b55aac4676abb5be423b56c3964d9b4967119.tar.zst
nixfiles-604b55aac4676abb5be423b56c3964d9b4967119.zip
Emacs: Add a margin to ensure the next/previous line is always visible
Diffstat (limited to 'emacs/init.el')
-rw-r--r--emacs/init.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/emacs/init.el b/emacs/init.el
index 6a4a121d..bb701b58 100644
--- a/emacs/init.el
+++ b/emacs/init.el
@@ -1009,7 +1009,7 @@ Also returns nil if pid is nil."
   :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 @@ Also returns nil if pid is nil."
   :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 @@ Also returns nil if pid is nil."
                  "%b"))))
 
 (setq scroll-conservatively 100 ; Keep the cursor position when scrolling
+      scroll-margin 1
       scroll-preserve-screen-position nil)
 
 (when menu-bar-mode