fixed rust support

This commit is contained in:
Peter Tillemans 2024-09-22 01:19:43 +02:00
parent 9b234723f2
commit d24aa00c2f
2 changed files with 24 additions and 12 deletions

View file

@ -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))

View file

@ -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 (
("<leader> 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.