fixed rust support
This commit is contained in:
parent
9b234723f2
commit
d24aa00c2f
2 changed files with 24 additions and 12 deletions
|
@ -51,9 +51,9 @@
|
||||||
(elpaca elpaca-use-package
|
(elpaca elpaca-use-package
|
||||||
(elpaca-use-package-mode))
|
(elpaca-use-package-mode))
|
||||||
|
|
||||||
;; Wait for elpaca
|
;; Wait for elpaca ;
|
||||||
(message "Waiting for elpaca")
|
(message "Waiting for elpaca")
|
||||||
;;(elpaca-wait)
|
;(elpaca-wait)
|
||||||
|
|
||||||
(setq crafted-emacs-home "~/.local/share/crafted-emacs")
|
(setq crafted-emacs-home "~/.local/share/crafted-emacs")
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@
|
||||||
(let ((src (concat user-emacs-directory "init.org"))
|
(let ((src (concat user-emacs-directory "init.org"))
|
||||||
(tgt (concat user-emacs-directory "init.el")))
|
(tgt (concat user-emacs-directory "init.el")))
|
||||||
(when (file-newer-than-file-p src tgt)
|
(when (file-newer-than-file-p src tgt)
|
||||||
|
(message "tangling init.org")
|
||||||
(delete-file tgt)
|
(delete-file tgt)
|
||||||
(org-babel-tangle-file src tgt "emacs-lisp")
|
(org-babel-tangle-file src tgt "emacs-lisp")
|
||||||
;; this is a good time to check if the crafted-emacs repo is fresh
|
;; 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)
|
(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-package-config" crafted-emacs-home))
|
||||||
(load (expand-file-name "modules/crafted-early-init-config" crafted-emacs-home))
|
(load (expand-file-name "modules/crafted-early-init-config" crafted-emacs-home))
|
||||||
|
|
||||||
|
|
22
init.org
22
init.org
|
@ -105,6 +105,17 @@ then load it.
|
||||||
(load custom-file nil :nomessage))
|
(load custom-file nil :nomessage))
|
||||||
#+END_SRC
|
#+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
|
** Utility Functions
|
||||||
|
|
||||||
|
|
||||||
|
@ -1067,7 +1078,7 @@ gicrisf has [[https://github.com/gicrisf/ox-zola][created a package]] to export
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
#+RESULTS:
|
#+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
|
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
|
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
|
;; configure denote
|
||||||
(use-package denote
|
(use-package denote
|
||||||
:ensure t
|
:ensure t
|
||||||
:config (progn
|
:init
|
||||||
(setq denote-directory (file-name-concat (expand-file-name "~") "Dropbox/denote"))
|
(setq denote-directory (file-name-concat (expand-file-name "~") "Dropbox/denote"))
|
||||||
(setq denote-dired-directories
|
(setq denote-dired-directories
|
||||||
(list denote-directory
|
(list denote-directory
|
||||||
(expand-file-name "~/Documents/denote"))))
|
(expand-file-name "~/Documents/denote")))
|
||||||
:hook (dired-mode . denote-dired-mode-in-directories)
|
:hook (dired-mode . denote-dired-mode-in-directories)
|
||||||
:bind (
|
:bind (
|
||||||
("<leader> n d" . (lambda () (interactive) (dired denote-directory)))
|
("<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 "gzip" nil "*snam-install*" t "-d" (concat rust-analyzer ".gz"))
|
||||||
(call-process "chmod" nil "*snam-install*" t "+x" rust-analyzer)
|
(call-process "chmod" nil "*snam-install*" t "+x" rust-analyzer)
|
||||||
(message "rust-analyzer installed at %s" 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
|
(use-package rustic
|
||||||
:ensure t
|
: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.
|
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
|
** NEXT Add support for zola blogposts writing in org-mode
|
||||||
:LOGBOOK:
|
:LOGBOOK:
|
||||||
CLOCK: [2024-08-15 Thu 13:47]
|
CLOCK: [2024-08-15 Thu 13:47]--[2024-08-16 Fri 00:57] => 11:10
|
||||||
:END:
|
:END:
|
||||||
|
|
||||||
see [[https://github.com/gicrisf/ox-zola][ox-zola]] for exporting org-mode to zola markdown.
|
see [[https://github.com/gicrisf/ox-zola][ox-zola]] for exporting org-mode to zola markdown.
|
||||||
|
|
Loading…
Reference in a new issue