From d24aa00c2f6c303f6d49bec1e8a2859f2f4d0d67 Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Sun, 22 Sep 2024 01:19:43 +0200 Subject: [PATCH] fixed rust support --- early-init.el | 8 +++++--- init.org | 28 +++++++++++++++++++--------- 2 files changed, 24 insertions(+), 12 deletions(-) diff --git a/early-init.el b/early-init.el index 0c23efa..fd7639f 100644 --- a/early-init.el +++ b/early-init.el @@ -51,9 +51,9 @@ (elpaca elpaca-use-package (elpaca-use-package-mode)) -;; Wait for elpaca +;; Wait for elpaca ; (message "Waiting for elpaca") -;;(elpaca-wait) +;(elpaca-wait) (setq crafted-emacs-home "~/.local/share/crafted-emacs") @@ -77,6 +77,7 @@ (let ((src (concat user-emacs-directory "init.org")) (tgt (concat user-emacs-directory "init.el"))) (when (file-newer-than-file-p src tgt) + (message "tangling init.org") (delete-file tgt) (org-babel-tangle-file src tgt "emacs-lisp") ;; this is a good time to check if the crafted-emacs repo is fresh @@ -92,7 +93,8 @@ (setq crafted-package-installed-predicate #'elpaca-installed-p) -;; Startup Crafted Emacs +;; Startup Crafted Emacsa +(message "start crafted emacs") (load (expand-file-name "modules/crafted-package-config" crafted-emacs-home)) (load (expand-file-name "modules/crafted-early-init-config" crafted-emacs-home)) diff --git a/init.org b/init.org index c78ec53..4c2809a 100644 --- a/init.org +++ b/init.org @@ -105,6 +105,17 @@ then load it. (load custom-file nil :nomessage)) #+END_SRC +*** Load the General + +Needs to load early so the ~:general~ keyword is available for ~use-package~. + +#+BEGIN_SRC emacs-lisp + (use-package general + :ensure t + :demand t) +#+END_SRC + + ** Utility Functions @@ -1067,7 +1078,7 @@ gicrisf has [[https://github.com/gicrisf/ox-zola][created a package]] to export #+END_SRC #+RESULTS: -: [nil 26301 59789 776924 nil elpaca-process-queues nil nil 824000 nil] +: [nil 26302 34728 837190 nil elpaca-process-queues nil nil 651000 nil] It is a wrapper around ~ox-hugo~ to export org files to Zola. It supports most features of it and directs the user to the [[https://ox-hugo.scripter.co/][the hugo @@ -1430,11 +1441,11 @@ We can add a list of queries ;; configure denote (use-package denote :ensure t - :config (progn - (setq denote-directory (file-name-concat (expand-file-name "~") "Dropbox/denote")) - (setq denote-dired-directories - (list denote-directory - (expand-file-name "~/Documents/denote")))) + :init + (setq denote-directory (file-name-concat (expand-file-name "~") "Dropbox/denote")) + (setq denote-dired-directories + (list denote-directory + (expand-file-name "~/Documents/denote"))) :hook (dired-mode . denote-dired-mode-in-directories) :bind ( (" n d" . (lambda () (interactive) (dired denote-directory))) @@ -1673,8 +1684,7 @@ see also [[https://www.masteringemacs.org/article/how-to-get-started-tree-sitter (call-process "gzip" nil "*snam-install*" t "-d" (concat rust-analyzer ".gz")) (call-process "chmod" nil "*snam-install*" t "+x" rust-analyzer) (message "rust-analyzer installed at %s" rust-analyzer))) - (with-eval-after-load 'eglot - (add-to-list 'eglot-server-programs `((rust-mode) rust-analyzer)))) + ) (use-package rustic :ensure t @@ -2202,7 +2212,7 @@ It considerably streamlines managing evil bindings so it should offer enough value but I just removed it, so it'll have to wait a bit. ** NEXT Add support for zola blogposts writing in org-mode :LOGBOOK: -CLOCK: [2024-08-15 Thu 13:47] +CLOCK: [2024-08-15 Thu 13:47]--[2024-08-16 Fri 00:57] => 11:10 :END: see [[https://github.com/gicrisf/ox-zola][ox-zola]] for exporting org-mode to zola markdown.