Skip to content

Commit

Permalink
[fus] defer t
Browse files Browse the repository at this point in the history
  • Loading branch information
pkryger committed Nov 17, 2024
1 parent 3785140 commit f86c191
Show file tree
Hide file tree
Showing 13 changed files with 46 additions and 17 deletions.
1 change: 1 addition & 0 deletions modules/init-company.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
(use-package company
:diminish "CA"
:after (forge)
:defer t
:commands (company-begin-backend
company-abort)
:init
Expand Down
1 change: 1 addition & 0 deletions modules/init-docker.el
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
;;; Code:

(use-package docker
:defer t
:bind ("C-c D" . #'docker))

(use-package dockerfile-mode
Expand Down
5 changes: 4 additions & 1 deletion modules/init-forge.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
(use-package async
:autoload (async-inject-variables))
(use-package ghub
:autoload (ghub-graphql))
:autoload (ghub-graphql)
:defer t)

(require 'cl-lib)

Expand Down Expand Up @@ -50,6 +51,7 @@
:commands (forge-post-submit)
:autoload (forge-post-at-point
forge-current-topic)
:defer t
:init

(defun exordium-forge-markdown-preview ()
Expand Down Expand Up @@ -153,6 +155,7 @@ USERNAME, AUTH, and HOST behave as for `ghub-request'."
:functions (exordium-forge-cleanup-known-repositories--concat
exordium-forge-cleanup-known-repositories--question)
:autoload (forge-sql)
:defer t
:init
(defun exordium-forge-cleanup-known-repositories--question (to-delete &optional number)
"Return a question about deletion of up to NUMBER of TO-DELETE repositories.
Expand Down
2 changes: 2 additions & 0 deletions modules/init-git.el
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ with `exordium-magit-quit-session'."

(use-package smerge-mode
:ensure nil
:defer t
:bind
(:map smerge-mode-map
("C-c ^ d" . #'exordium-smerge-dispatch)))
Expand Down Expand Up @@ -303,6 +304,7 @@ with `exordium-magit-quit-session'."

(use-package ediff
:ensure nil
:defer t
:functions (exordium-ediff-copy-both-to-C)
:autoload (ediff-copy-diff
ediff-get-region-contents)
Expand Down
1 change: 1 addition & 0 deletions modules/init-helm-projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ project's file using completion and show it in another window."

(use-package treemacs-projectile
:after (projectile)
:defer t
:bind
(("C-c e" . #'treemacs)
("C-c E" . #'treemacs-projectile)))
Expand Down
1 change: 1 addition & 0 deletions modules/init-help.el
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
(help-mode . page-break-lines-mode))

(use-package helpful
:defer t
:bind
(;; Note that the built-in `describe-function' includes both functions
;; and macros. `helpful-function' is functions only, so we provide
Expand Down
4 changes: 3 additions & 1 deletion modules/init-look-and-feel.el
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ Set FONT and SIZE if they are passed as arguments."

;;; Expand region
(use-package expand-region
:defer t
:bind
(("C-=" . #'er/expand-region)
("C-M-=" . #'er/contract-region)))
Expand Down Expand Up @@ -279,7 +280,8 @@ Set FONT and SIZE if they are passed as arguments."
;; Propose vlf (Very Large File) as a choice when opening large files
;; (otherwise one can open a file using M-x vlf):
(use-package vlf-setup
:ensure vlf)
:ensure vlf
:defer t)

;; Remove trailing blanks on save
(define-minor-mode delete-trailing-whitespace-mode
Expand Down
9 changes: 9 additions & 0 deletions modules/init-org.el
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
:commands (org-mark-subtree
org-display-inline-images
org-mode)
:defer t
:exordium-force-elpa gnu
:mode (("\\.org\\'" . org-mode))
:bind
Expand Down Expand Up @@ -118,17 +119,20 @@ set to nil."
;;; Show org-mode bullets as UTF-8 characters.
(use-package org-superstar
:after (org)
:defer t
:hook
(org-mode . org-superstar-mode))

(use-package ox-html
:ensure org
:defer t
:after (org)
:if (not exordium-org-export-css))

(use-package ox-html
:ensure org
:after (org)
:defer t
:if exordium-org-export-css
:custom
(org-html-htmlize-output-type 'css
Expand All @@ -139,25 +143,30 @@ set to nil."
(use-package ox-md
:ensure org
:after (org)
:defer t
:if exordium-enable-org-export)

(use-package ox-beamer
:ensure org
:after (org)
:defer t
:if exordium-enable-org-export)

(use-package ox-odt
:ensure org
:after (org)
:defer t
:if exordium-enable-org-export)

(use-package ox-publish
:ensure org
:after (org)
:defer t
:if exordium-enable-org-export)

(use-package ox-gfm
:after (org)
:defer t
:if exordium-enable-org-export)

(provide 'init-org)
Expand Down
1 change: 1 addition & 0 deletions modules/init-prog-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

(use-package flyspell
:ensure nil
:defer t
:if (eq exordium-spell-check :prog)
:diminish 'flyspell-mode
:hook
Expand Down
1 change: 1 addition & 0 deletions modules/init-projectile.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

(use-package projectile
:diminish
:defer t
:bind
(:map projectile-command-map
("." . #'helm-projectile-find-file-dwim))
Expand Down
1 change: 1 addition & 0 deletions modules/init-rtags-helm.el
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
(helm-flycheck))

(use-package helm-flycheck
:defer t
:bind
(:map c-mode-base-map
("C-c r r" . #'exordium-helm-flycheck)
Expand Down
35 changes: 20 additions & 15 deletions modules/init-rtags.el
Original file line number Diff line number Diff line change
Expand Up @@ -137,29 +137,34 @@
(require 'cl-lib)

(use-package rtags
:autoload (rtags-has-diagnostics))
:autoload (rtags-has-diagnostics)
:defer t)
(pcase exordium-complete-mode
(:auto-complete
(exordium-require 'init-autocomplete)
(use-package ac-rtags)
(use-package auto-complete-c-headers))
(use-package ac-rtags
:defer t)
(use-package auto-complete-c-headers
:defer t))
(:company
(use-package company-rtags)))
(use-package company-rtags
:defer t)))


;;; Turn on flycheck support when requested
(when (eq exordium-rtags-syntax-checker :flycheck)
(use-package flycheck-rtags
:init
;; As per: https://github.com/Andersbakken/rtags#rtags-flycheck-integration
(defun exordium--setup-flycheck-rtags ()
(flycheck-select-checker 'rtags)
(setq-local flycheck-highlighting-mode nil)
(setq-local flycheck-check-syntax-automatically nil))
:hook
(c-mode . exordium--setup-flycheck-rtags)
(c++-mode . exordium--setup-flycheck-rtags)
(objc-mode . exordium--setup-flycheck-rtags)))
(use-package flycheck-rtags
:defer t
:init
;; As per: https://github.com/Andersbakken/rtags#rtags-flycheck-integration
(defun exordium--setup-flycheck-rtags ()
(flycheck-select-checker 'rtags)
(setq-local flycheck-highlighting-mode nil)
(setq-local flycheck-check-syntax-automatically nil))
:hook
(c-mode . exordium--setup-flycheck-rtags)
(c++-mode . exordium--setup-flycheck-rtags)
(objc-mode . exordium--setup-flycheck-rtags)))

;;; Key bindings

Expand Down
1 change: 1 addition & 0 deletions modules/init-xml.el
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
;;; Code:
(use-package nxml-mode
:ensure nil
:defer t
;; Automatically close tags when typing </ (electric slash)
:custom
(custom nxml-slash-auto-complete-flag t))
Expand Down

0 comments on commit f86c191

Please sign in to comment.