summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2014-04-20 15:17:36 +0200
committerGravatar Tom Willemse2014-04-20 15:17:36 +0200
commit77cef53b30b6261a6d0c4fda85c4af5175b58901 (patch)
tree5bd90579d859420cfc291350f4418c10f707f114
parent910c2019cb63fdf349b8f4f2c8b6dc18374e7bf6 (diff)
downloademacs-77cef53b30b6261a6d0c4fda85c4af5175b58901.tar.gz
emacs-77cef53b30b6261a6d0c4fda85c4af5175b58901.zip
Move scrolling position setting to init.org
-rw-r--r--.emacs.d/init.el2
-rw-r--r--.emacs.d/init.org11
2 files changed, 11 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 2d2b7bd..5ecadbd 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -910,8 +910,6 @@ from myaethon2.core.decorators import (
;;;; Unconditional settings
-(setq scroll-preserve-screen-position t)
-
;; Can't be put in an eval-after-load or such because by then it will
;; be too late.
(setq elnode-do-init nil)
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index 6694270..d3e9f9e 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -236,6 +236,17 @@
(setq window-combination-resize t)
#+END_SRC
+** Keep the cursor steady when scrolling
+
+ When scrolling through the buffer with, for example, {{{key(C-v)}}}
+ or {{{key(M-v)}}}, I find it much more intuitive to have the cursor
+ stay in the relative screen position from before. Otherwise I get
+ confused every time.
+
+ #+BEGIN_SRC emacs-lisp
+ (setq scroll-preserve-screen-position t)
+ #+END_SRC
+
* Add org-mode appointments to the diary
Diary offers reminders, which can be useful when scheduling