From 45b25b8b79dd3ad7233ea9a3b7edc706f992c4ac Mon Sep 17 00:00:00 2001 From: Peter Tillemans Date: Sat, 10 May 2025 19:41:56 +0200 Subject: [PATCH] backup, qwen coder, systemcrafters --- init.org | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/init.org b/init.org index 18c4324..ef0297f 100644 --- a/init.org +++ b/init.org @@ -332,7 +332,7 @@ Mac because the shell initialization scripts have not run yet. :if (or (daemonp) (memq window-system '(mac ns x))) :config (exec-path-from-shell-initialize)) #+END_SRC -** Setup backup directories +** Setup backup directories and other file saving settings Configures where backup files are stored: #+BEGIN_SRC emacs-lisp ;; setup backup directories @@ -341,6 +341,11 @@ Configures where backup files are stored: `(("." . ,(file-name-concat user-emacs-directory "backups")))) #+END_SRC +To avoid losing files when deleting in dired, move them to the trash: + +#+BEGIN_SRC emacs-lisp + (setq delete-by-moving-to-trash t) +#+END_SRC ** Enable integration with the Unix Password Store aka *pass* The *pass* command gives a super practical way to store secrets encrypted using *gpg* and use them in *.envrc* files, batch scripts on the @@ -2722,6 +2727,9 @@ integration in Emacs. (setq gptel-api-key openai-api-key) (gptel-make-gemini "Gemini" :key gemini-api-key :stream t) (gptel-make-anthropic "Claude" :stream t :key anthropic-api-key) + (gptel-make-ollama "Qwen Coder" + :models '(qwen2.5-coder:14b + :description "QWen 2.5 Coder 14b")) ;; define some tools for gptel (gptel-make-tool :function (lambda (url) @@ -3465,6 +3473,18 @@ The commands this package offers: IMSMR the shorten-uri functionality is disabled in the 0x0 service as apparently is was abused too much. +** Systemcrafters live stream + + +#+BEGIN_SRC elisp + (defun systemcrafters () + "Watch SystemCrafters on Twitch" + (interactive) + (message "Watching SystemCrafters on Twitch...") + (shell-command "mpv https://twitch.tv/SystemCrafters")) +#+END_SRC + + * Finishing Touches #+BEGIN_SRC emacs-lisp