From 4097004720dd35a1791ac2a2643034bd6bd5ef1e Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 23 Mar 2019 04:48:22 +0100 Subject: [PATCH] More documentation, don't recenter curser while scrolling. --- init.el | 23 +++++++++++++++-------- server/server | 2 +- 2 files changed, 16 insertions(+), 9 deletions(-) diff --git a/init.el b/init.el index 20cf35e..1f7f3c3 100644 --- a/init.el +++ b/init.el @@ -1,5 +1,5 @@ ;;; init.el --- tastytea's Emacs init file. -;;; Time-stamp: <2019-03-22 23:44:16 CET> +;;; Time-stamp: <2019-03-23 04:48:18 CET> ;;; Commentary: ;;; I am using this file with Emacs 26, but most of it will probably work with @@ -87,13 +87,16 @@ ;; Save minibuffer history. (savehist-mode t) -;; Save backups in ~/.emacs.d/ and keep more versions. +;; Save backups in ~/.emacs.d/backups/ and keep more versions. (setq backup-directory-alist `(("." . ,(concat user-emacs-directory "backups")))) -(setq delete-old-versions t - kept-new-versions 6 - ;; kept-old-versions 2 - version-control t) +;; Save auto-saves in ~/.emacs.d/backups/. +(setq auto-save-file-name-transforms + `((".*" ,(concat user-emacs-directory "backups") t))) +(setq delete-old-versions t ; Delete old backups. + kept-new-versions 6 ; Keep 6 newest backups. + backup-by-copying t ; Copy to backup folder. + version-control t) ; Append version numbers to file names. ;; Set some personal information. (setq user-full-name "tastytea" @@ -119,8 +122,11 @@ ;; Scroll 1 line at a time. (setq mouse-wheel-scroll-amount '(1 ((shift) . 1))) +;; Never recenter cursor while scrolling. +(setq scroll-conservatively 101) ;; Scroll before cursor has reached top/bottom. +;; Way too slow with fci-mode and highlight-indent-guides activated. (use-package smooth-scrolling :config (smooth-scrolling-mode 1)) @@ -413,8 +419,9 @@ :after ido :custom (ido-enable-flex-matching t) - (ido-ignore-extensions t) ; Ignore extension like ~ and .o. - (ido-use-virtual-buffers t) ; Keep history of recently opened buffers. + (ido-ignore-extensions t) ; Ignore extension like ~ and .o. + (ido-use-virtual-buffers t) ; Use history of recently opened buffers. + (recentf-max-saved-items 20) ; Keep this number of buffers in history. :config (flx-ido-mode t)) diff --git a/server/server b/server/server index 0ccb661..614df11 100644 --- a/server/server +++ b/server/server @@ -1,2 +1,2 @@ -127.0.0.1:51313 14312 +127.0.0.1:51313 26837 phahw2ohVoh0oopheish7IVie9desh8aequeenei3uo8wahShe%thuadaeNa4ieh \ No newline at end of file