From 99d0013ea75e95993b5ce2ecc83eaf5ab1e7602d Mon Sep 17 00:00:00 2001 From: John Turner Date: Fri, 21 Oct 2022 22:58:55 -0400 Subject: [PATCH] activate modes at the bottom of init.el or in the assoc init module --- init.el | 22 ++++++++++------------ init/recentf/init-recentf.el | 2 ++ init/savehist/init-savehist.el | 2 ++ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/init.el b/init.el index 2bf6153..584b2ff 100644 --- a/init.el +++ b/init.el @@ -21,18 +21,6 @@ (when (file-exists-p custom-file) (load custom-file)) -(cua-mode 1) -(recentf-mode 1) -(savehist-mode 1) -(save-place-mode 1) -(show-paren-mode 1) -(pixel-scroll-mode 1) -(pixel-scroll-precision-mode 1) -(menu-bar-mode 0) -(scroll-bar-mode 0) -(tool-bar-mode 0) -(tooltip-mode 0) - (let ((config-directory (file-name-concat user-emacs-directory "init"))) (add-to-list 'load-path (file-name-concat config-directory "company")) (add-to-list 'load-path (file-name-concat config-directory "conf-mode")) @@ -96,3 +84,13 @@ (add-to-list 'load-path (file-name-concat local-lisp-directory "man-completion"))) (require 'man-completion) + +(cua-mode 1) +(save-place-mode 1) +(show-paren-mode 1) +(pixel-scroll-mode 1) +(pixel-scroll-precision-mode 1) +(menu-bar-mode 0) +(scroll-bar-mode 0) +(tool-bar-mode 0) +(tooltip-mode 0) diff --git a/init/recentf/init-recentf.el b/init/recentf/init-recentf.el index 293db0d..17617bc 100644 --- a/init/recentf/init-recentf.el +++ b/init/recentf/init-recentf.el @@ -1,4 +1,6 @@ (setq recentf-max-menu-items 25 recentf-max-saved-items 25) +(recentf-mode 1) + (provide 'init-recentf) diff --git a/init/savehist/init-savehist.el b/init/savehist/init-savehist.el index 7e6e311..2089704 100644 --- a/init/savehist/init-savehist.el +++ b/init/savehist/init-savehist.el @@ -8,4 +8,6 @@ (unless (file-exists-p savehist-file) (make-empty-file savehist-file)) +(savehist-mode 1) + (provide 'init-savehist)