Browse Source

cleaner saveplace config

master
Marc 2 years ago
parent
commit
ece9486d98
1 changed files with 5 additions and 1 deletions
  1. 6
      config.org

6
config.org

@ -261,7 +261,11 @@ Restore it to reasonable value after init. Also stop garbage collection during m
(setq custom-safe-themes t) ;; don't ask me if I want to load a theme (setq custom-safe-themes t) ;; don't ask me if I want to load a theme
(setq sentence-end-double-space nil) ;; don't coun two spaces after a period as the end of a sentence. (setq sentence-end-double-space nil) ;; don't coun two spaces after a period as the end of a sentence.
(delete-selection-mode t) ;; delete selected region when typing (delete-selection-mode t) ;; delete selected region when typing
(save-place-mode 1) ;; saves position in file when it's closed
(use-package saveplace
:config
(save-place-mode 1) ;; saves position in file when it's closed
:custom
(save-place-file (concat MY--PATH_USER_LOCAL "places")))
(setq save-place-forget-unreadable-files nil) ;; checks if file is readable before saving position (setq save-place-forget-unreadable-files nil) ;; checks if file is readable before saving position
(global-set-key (kbd "RET") 'newline-and-indent) ;; indent after newline (global-set-key (kbd "RET") 'newline-and-indent) ;; indent after newline
(setq save-interprogram-paste-before-kill t) ;; put replaced text into killring (setq save-interprogram-paste-before-kill t) ;; put replaced text into killring

Loading…
Cancel
Save