summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/my-settings.el15
1 files 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)