Save Place with saveplace, now in a use-package

This commit is contained in:
MitchMarq42 2022-09-07 06:09:59 -08:00
parent 36ff6dc034
commit 20b6ea4e1f
2 changed files with 7 additions and 5 deletions

View File

@ -101,11 +101,6 @@
;; Speed up scrolling down (why is this even a thing?) ;; Speed up scrolling down (why is this even a thing?)
(setq auto-window-vscroll nil) (setq auto-window-vscroll nil)
;; save place in all files
(save-place-mode t)
(defvar save-place-file
(expand-file-name "file-position-save" backup-directory))
;; Display "labmda" as λ ;; Display "labmda" as λ
(global-prettify-symbols-mode 1) (global-prettify-symbols-mode 1)

View File

@ -23,6 +23,13 @@
(use-package savehist (use-package savehist
:straight (:type built-in) :straight (:type built-in)
:init (savehist-mode)) :init (savehist-mode))
;; save place in all files
(use-package saveplace
:straight (:type built-in)
:init (save-place-mode t)
:custom
(save-place-file
(expand-file-name "file-position-save" backup-directory)))
;; Visualize whitespace. In a very chill and invisible way. ;; Visualize whitespace. In a very chill and invisible way.
(use-package whitespace (use-package whitespace
:straight (:type built-in) :straight (:type built-in)