[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.
This commit is contained in:
parent
8d5b37a12d
commit
8d09d01564
1 changed files with 11 additions and 9 deletions
20
oni-core.el
20
oni-core.el
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; 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
|
||||
|
|
Loading…
Reference in a new issue