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 ;; Moving my Emacs config from separate directory
;; To install packages on non-NixOS systems run `install.el' ;; To install packages on non-NixOS systems run `install.el'
;;; Code: ;;; 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 ;; Stop popups for warning messages, keep in log buffer
(setopt warning-minimum-level :error) (setopt warning-minimum-level :error)
@ -212,9 +218,7 @@
:custom :custom
(appt-display-diary nil) (appt-display-diary nil)
(appt-display-format 'echo) (appt-display-format 'echo)
(appt-display-interval 5) :config
(appt-message-warning-time 15)
:init
(appt-activate +1)) (appt-activate +1))
(add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1))) (add-hook 'prog-mode-hook #'(lambda () (display-line-numbers-mode +1)))

View file

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