aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-lang.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/lisp/init-lang.el')
-rw-r--r--.emacs.d/lisp/init-lang.el30
1 files changed, 15 insertions, 15 deletions
diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el
index 341321a..4d56858 100644
--- a/.emacs.d/lisp/init-lang.el
+++ b/.emacs.d/lisp/init-lang.el
@@ -1,28 +1,28 @@
-(use-package ledger-mode :ensure t :defer t)
-(add-to-list 'auto-mode-alist '("\\.journal\\'" . ledger-mode))
+(when (gx/maybe-require-package 'ledger-mode)
+ (add-to-list 'auto-mode-alist '("\\.journal\\'" . ledger-mode)))
(with-eval-after-load 'ledger-mode
(setq ledger-default-date-format ledger-iso-date-format))
-(use-package go-mode :ensure t :defer t)
-(add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
-(add-hook 'go-mode-hook (lambda () (setq tab-width 4)))
+(when (gx/maybe-require-package 'go-mode)
+ (add-to-list 'auto-mode-alist '("\\.go\\'" . go-mode))
+ (add-hook 'go-mode-hook (lambda () (setq tab-width 4))))
-(use-package go-dlv :ensure t :defer t)
+(gx/maybe-require-package 'go-dlv)
-(use-package eglot :ensure t :defer t)
-(add-hook 'go-mode-hook 'eglot-ensure)
+(when (gx/maybe-require-package 'eglot)
+ (add-hook 'go-mode-hook 'eglot-ensure))
-(use-package realgud :ensure t :defer t)
+(gx/maybe-require-package 'realgud)
-(use-package plantuml-mode :ensure t :defer t)
-(add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
(setq plantuml-jar-path "~/.local/bin/plantuml.jar"
plantuml-default-exec-mode 'jar
org-plantuml-jar-path plantuml-jar-path
org-plantuml-default-exec-mode 'jar)
-(unless (file-readable-p plantuml-jar-path)
- (plantuml-download-jar))
-(with-eval-after-load 'org
- (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)))
+(when (gx/maybe-require-package 'plantuml-mode)
+ (add-to-list 'auto-mode-alist '("\\.plantuml\\'" . plantuml-mode))
+ (unless (file-readable-p plantuml-jar-path)
+ (plantuml-download-jar))
+ (with-eval-after-load 'org
+ (add-to-list 'org-src-lang-modes '("plantuml" . plantuml))))
(provide 'init-lang)