diff options
author | Thanos Apollo <[email protected]> | 2023-06-27 05:31:28 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-06-27 05:31:28 +0300 |
commit | 45aafb10fa7435df23bdc53cc6ec977d82f4f4bd (patch) | |
tree | ea248a4b8f595fb653c282ab3ef539c0d0b65991 | |
parent | 5ba21168f593c849ea3e0f98a821156d0013db3d (diff) |
Fixes: Update info and archives removing chatgpt for gptel
-rwxr-xr-x | emacs.org | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -5,7 +5,7 @@ #+STARTUP: overview * System Information -My name and email address +Set my name and email address #+begin_src emacs-lisp (setq user-full-name "Thanos Apollo" user-mail-address "[email protected]") @@ -90,28 +90,27 @@ Request the following packages: pdf-tools org-auto-tangle sly - chatgpt org-download eshell-git-prompt eshell-vterm hackernews - circe)) + circe + gptel)) #+end_src ** Installation & activation Set ~package-archives~, and install packages #+begin_src emacs-lisp (setq package-archives '(("melpa" . "https://melpa.org/packages/") - ("org" . "https://orgmode.org/elpa/") ("elpa" . "https://elpa.gnu.org/packages/") - ("jcs-elpa" . "https://jcs-emacs.github.io/jcs-elpa/packages/"))) - ; Activate all the packages + ("nongnu" . "https://elpa.nongnu.org/nongnu/"))) + ;; Activate all the packages (package-initialize) - ; Fetch the list of packages available + ;; Fetch the list of packages available (unless package-archive-contents (package-refresh-contents)) - ; Install the missing packages + ;; Install the missing packages (dolist (package my-package-list) (unless (package-installed-p package) (package-install package))) @@ -673,7 +672,9 @@ Fonts and basic appearance settings for each device ("https://torrentfreak.com/feed" torrentfreak) ("https://www.youtube.com/feeds/videos.xml?channel_id=UCM6SlP9fiwPIjhkWmbg8Ojg" - video liberated-programmer))) + video liberated-programmer) + ("https://odysee.com/$/rss/@seytonic:c" + video seytonic))) #+end_src ** Watch Videos Create function to watch videos using ~mpv~ @@ -794,6 +795,7 @@ Create function to watch videos using ~mpv~ ** Keybindings #+begin_src emacs-lisp (define-key 'thanos/applications-map (kbd "e") 'emms) + (define-key emms-playlist-mode-map (kbd "A") 'emms-add-directory-tree) #+end_src * Eshell First let's set ~eshell-visual-commands~ @@ -1107,8 +1109,9 @@ Set aliases for emacs functions and ~PATH~ #+end_src * Chatgpt #+begin_src emacs-lisp - (setq openai-key (password-store-get "chatgpt/api")) - (define-key 'thanos/applications-map (kbd "c") 'chatgpt) + (require 'gptel) + (define-key 'thanos/applications-map (kbd "c") 'gptel-send) + (setq gptel-api-key (password-store-get "chatgpt/api")) #+end_src * StumpWM #+begin_src emacs-lisp |