From 6c98308c92f1b399df435a258f044a0dceff660b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Wed, 27 Apr 2022 19:17:59 -0700 Subject: my-settings: more of the same --- emacs/custom/my-settings.el | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/emacs/custom/my-settings.el b/emacs/custom/my-settings.el index a49239a..40ecf48 100644 --- a/emacs/custom/my-settings.el +++ b/emacs/custom/my-settings.el @@ -47,18 +47,15 @@ user-mail-address "franck@fcuny.net" add-log-mailing-address "franck@fcuny.net") -(require 'savehist) -(setq savehist-file (expand-file-name "var/history" user-emacs-directory)) -(setq history-length 1000) -(setq history-delete-duplicates t) -(setq savehist-save-minibuffer-history t) +(customize-set-variable 'savehist-file (expand-file-name "var/history" user-emacs-directory)) +(customize-set-variable 'history-length 1000) +(customize-set-variable 'history-delete-duplicates t) +(customize-set-variable 'savehist-save-minibuffer-history t) (add-hook 'after-init-hook #'savehist-mode) -(require 'midnight) -(add-hook 'after-init-hook #'midnight-mode) +(add-hook 'after-init-hook 'midnight-mode) -(require 'saveplace) -(setq save-place-forget-unreadable-files t) +(customize-set-variable 'save-place-forget-unreadable-files t) (add-hook 'after-init-hook #'save-place-mode) (unless (and (fboundp 'server-running-p) -- cgit 1.4.1