Customise use-package behaviour

use-package check for package before init, enable imenu support
This commit is contained in:
Evie Litherland-Smith 2024-07-01 10:13:56 +01:00
parent 6b6aa14a9c
commit 371a5c4c2c
2 changed files with 21 additions and 3 deletions

10
init.el
View file

@ -3,6 +3,12 @@
;; Moving my Emacs config from separate directory
;; To install packages on non-NixOS systems run `install.el'
;;; Code:
;; Customise `use-package' behaviour, must be set before first time
;; it's used
(setopt use-package-check-before-init t
use-package-enable-imenu-support t)
;; Stop popups for warning messages, keep in log buffer
(setopt warning-minimum-level :error)
@ -212,9 +218,7 @@
:custom
(appt-display-diary nil)
(appt-display-format 'echo)
(appt-display-interval 5)
(appt-message-warning-time 15)
:init
:config
(appt-activate +1))
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))

View file

@ -8,6 +8,7 @@
'(
;; Theme
base16-theme
;; UI
all-the-icons
nerd-icons
@ -23,6 +24,7 @@
ace-window
link-hint
diff-hl
;; Completion
cape
consult
@ -35,15 +37,19 @@
marginalia
orderless
vertico
;; Templates
tempel
license-templates
gitignore-templates
;; spell-checking
flyspell-correct
;; password-store
pass
password-store
;; IDE
treesit-auto
flymake-popon
@ -57,33 +63,41 @@
python-docstring
nix-mode
lua-mode
;; Media
emms
;; org-mode
org-roam
org-noter
org-journal
;; org-cite
citar
citar-embark
;; org-mode HTML export
htmlize
;; Projects
ibuffer-project
magit
forge
treemacs
treemacs-nerd-icons
;; Writing
markdown-mode
pandoc-mode
auctex
auctex-latexmk
latex-preview-pane
;; Contacts
bbdb
mu4e
ement
;; RSS feeds
elfeed
elfeed-org