do not use "use-package" for stuff we want to load unconditionally

This commit is contained in:
Grigory Shipunov 2020-06-08 01:03:54 +02:00
parent 47bab6f824
commit af2d6382f3
No known key found for this signature in database
GPG key ID: 77BB6C3E4771EE7C

28
init.el
View file

@ -109,7 +109,14 @@
(load-theme 'leuven t) (load-theme 'leuven t)
;; better M-x ;; ido does most of what I need, and built in!
(require 'ido)
;; we want it everywhere and want fancy matching
(setq ido-enable-flex-matching t
ido-everywhere t)
(ido-mode 1)
;; better M-x (ido based)
(straight-use-package 'smex) (straight-use-package 'smex)
(smex-initialize) (smex-initialize)
(global-set-key (kbd "M-x") 'smex) (global-set-key (kbd "M-x") 'smex)
@ -121,14 +128,12 @@
(use-package calendar (use-package calendar
:init (setq calendar-week-start-day 1)) :init (setq calendar-week-start-day 1))
;; CC mode ;; CC mode default styles
(use-package cc-mode
:init
(setq c-default-style '((java-mode . "java") (setq c-default-style '((java-mode . "java")
(awk-mode . "awk") (awk-mode . "awk")
(c-mode . "linux") (c-mode . "linux")
(c++-mode . "stroustrup") (c++-mode . "stroustrup")
(other . "linux")))) (other . "linux")))
(use-package tex-site (use-package tex-site
:defer t :defer t
@ -192,10 +197,9 @@
'((scheme . t) '((scheme . t)
(emacs-lisp .t) (emacs-lisp .t)
(python . t) (python . t)
(C . t)))) (C . t)))
:config
(use-package org-tempo (require 'org-tempo))
:after org)
(use-package magit (use-package magit
:straight t :straight t
@ -246,12 +250,6 @@
:init :init
(setq geiser-active-implementations '(racket))) (setq geiser-active-implementations '(racket)))
(use-package ido
:config
(setq ido-enable-flex-matching t
ido-everywhere t)
(ido-mode 1))
;; throw away all the list-of-custom-shit! ;; throw away all the list-of-custom-shit!
(setq custom-file "~/.emacs.d/custom.el") (setq custom-file "~/.emacs.d/custom.el")
(load custom-file 'noerror) (load custom-file 'noerror)