From 8d09d0156467f66258456cbc1aab15a7d07c219e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 26 Jul 2021 21:29:13 -0700 Subject: [PATCH] [oni-core] Move enabling of modes to after setting up auto loads This way I can be sure that any files that need to get loaded when these get enabled will be loaded. --- oni-core.el | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/oni-core.el b/oni-core.el index 41227fe..ecbad9e 100644 --- a/oni-core.el +++ b/oni-core.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2021.0726.212703 +;; Version: 2021.0726.213020 ;; Package-Requires: (oni-data-dir oni-embrace oni-hydra expand-region multiple-cursors gcmh diminish ws-butler which-key insert-char-preview dashboard) ;; This program is free software; you can redistribute it and/or modify @@ -224,14 +224,6 @@ _s_: String list" (with-eval-after-load 'ws-butler (diminish 'ws-butler-mode)) (with-eval-after-load 'which-key (diminish 'which-key-mode)) -(electric-indent-mode -1) -(winner-mode) -(recentf-mode) -(gcmh-mode) -(ws-butler-global-mode) -(which-key-mode) -(auto-insert-mode) - (add-to-list 'display-buffer-alist `(,(rx string-start "*" (any ?h ?H) "elp") @@ -272,5 +264,15 @@ _s_: String list" (with-eval-after-load 'vterm (require 'oni-vterm)) (with-eval-after-load 'yasnippet (require 'oni-yasnippet)) +;; Enable any modes that I want to have turned on right away. + +(electric-indent-mode -1) +(winner-mode) +(recentf-mode) +(gcmh-mode) +(ws-butler-global-mode) +(which-key-mode) +(auto-insert-mode) + (provide 'oni-core) ;;; oni-core.el ends here