From cef4e6244290ca48c7f660f56b500868610d42d3 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 16 Jul 2024 08:55:39 +0300 Subject: emacs: Add 0x0 & magit-todos --- .config/emacs/init.el | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 6b58342..14e2366 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -115,7 +115,7 @@ ("\\<\\(NOTE\\):" 1 font-lock-warning-face t)))) (use-package emacs - :ensure t + :ensure nil :config (if is-zeus @@ -630,6 +630,10 @@ (setf magit-display-buffer-function #'magit-display-buffer-same-window-except-diff-v1) :bind (:map project-prefix-map ("g" . 'project-magit))) +(use-package magit-todos + :after magit + :config (magit-todos-mode 1)) + (use-package corfu :ensure t :config @@ -1156,6 +1160,10 @@ By default, returns all jabber related buffers format." (format "qemu-system-x86_64 -enable-kvm -m %s -smp %s -hda %s -vga virtio -device virtio-serial-pci -netdev user,id=vmnic,hostfwd=tcp::2222-:22 -device e1000,netdev=vmnic %s" memory cores image (if iso (concat "-cdrom " iso) ""))))) +(use-package 0x0 + :straight nil + :ensure nil) + ;; Misc Functions ;; ;;;;;;;;;;;;;;;;;;;; @@ -1337,16 +1345,6 @@ Create a temporary frame to execute BODY, which will then be deleted." (interactive) (password-store-copy-field "fastmail.com/thanosapollo@fastmail.com" "smtp")) -(defun thanos/0x0-upload (&optional file) - "Upload FILE, in current directory, to 0x0.st." - (interactive) - (let ((file (or file (completing-read - "Choose a file: " - (seq-filter - (lambda (file) (not (string-prefix-p "." file))) - (directory-files default-directory)))))) - (async-shell-command (format "curl -F'file=@%s' https://0x0.st" file)))) - (require 'server) (unless (server-running-p) (server-start)) -- cgit v1.2.3