From 40e994bcc68f2999b0f8c481f292d74031f88b91 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Tue, 11 Apr 2023 08:42:45 +0800 Subject: Update emacs config --- .emacs.d/lisp/init-lang.el | 5 +++-- .gitignore | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.emacs.d/lisp/init-lang.el b/.emacs.d/lisp/init-lang.el index b96fd92..ee24d39 100644 --- a/.emacs.d/lisp/init-lang.el +++ b/.emacs.d/lisp/init-lang.el @@ -11,8 +11,9 @@ org-plantuml-default-exec-mode 'jar) (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 'plantuml + (unless (file-readable-p plantuml-jar-path) + (plantuml-download-jar))) (with-eval-after-load 'org (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)))) diff --git a/.gitignore b/.gitignore index 46d5a30..8d7d951 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ compile_commands.json .cache +*~ -- cgit v1.2.3