summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-06-27 05:31:28 +0300
committerThanos Apollo <[email protected]>2023-06-27 05:31:28 +0300
commit45aafb10fa7435df23bdc53cc6ec977d82f4f4bd (patch)
treeea248a4b8f595fb653c282ab3ef539c0d0b65991
parent5ba21168f593c849ea3e0f98a821156d0013db3d (diff)
Fixes: Update info and archives removing chatgpt for gptel
-rwxr-xr-xemacs.org25
1 files changed, 14 insertions, 11 deletions
diff --git a/emacs.org b/emacs.org
index 707f7d0..1defc68 100755
--- a/emacs.org
+++ b/emacs.org
@@ -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