summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-03-15 16:03:19 +0200
committerThanos Apollo <[email protected]>2024-03-15 17:16:42 +0200
commit8b28bd024d603a851160c090e6f403915b5e7e07 (patch)
treefaa6d8786268ca4cfbf5b210fc06a04d164c2f36 /.emacs.d
parentcb9ee8a56f117e57da1cc45c8773c9cffad936b0 (diff)
emacs: Update rss feeds & gnosis keybindings
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el29
1 files changed, 17 insertions, 12 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 196fe17..b468d2c 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -375,12 +375,12 @@
science)
("http://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.medscape.com%2Findex%2Flist_13470_0&url_selector=a.title&url_pattern=%2Fviewarticle*&content_selector=article&content_cleanup=div.faf-content%2C+div.heading%2C+div.pwHidden&title_cleanup=-+Index&limit=&format=Atom" medscape med)
("http://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fmedfac.mu-sofia.com%2Fen%2Fnews%2F&url_selector=div.news-card&url_pattern=%2F*&content_selector=article.richtext-area&content_cleanup=&title_cleanup=&limit=&format=Atom" musofia med)
- ("http://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.nytimes.com%2Fsection%2Fworld%2F&url_selector=a.css-8hzhxf&url_pattern=&content_selector=div.css-53u6y8&content_cleanup=div.faf-content%2C+div.heading%2C+div.pwHidden&title_cleanup=-+Index&limit=&format=Atom" news world nyt)
("http://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fedition.cnn.com%2Fworld%2Feurope&url_selector=a.container__link--type-article&url_pattern=&content_selector=div.article__content&content_cleanup=&&title_cleanup=-+breaking+news%2C+video%2C+headlines+and+opinion&limit=&format=Atom" news cnn europe)
("http://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fedition.cnn.com%2Fworld%2Famericas&url_selector=a.container__link--type-article&url_pattern=&content_selector=div.article__content&content_cleanup=div.data-uri&title_cleanup=-+breaking+news%2C+video%2C+headlines+and+opinion&limit=&format=Atom" news cnn americas)
("https://annas-blog.org/rss.xml"
anna piracy)
- ("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.bbc.com%2Fnews%2Fworld&url_selector=a.ssrcss-9haqql-LinkPostLink&url_pattern=&content_selector=article.ssrcss-djshh9-ArticleWrapper+&content_cleanup=div.ssrcss-11faxz6-TagShareWrapper%2C+ul.ssrcss-17wa8hx-MetadataStripContainer%2C+div.ssrcss-1qmkvfu-TopicListWrapper+&title_cleanup=&limit=&format=Atom" news bbc world)
+ ("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.theguardian.com%2Feurope&url_selector=a.dcr-lv2v9o&url_pattern=&content_selector=div.article-body-commercial-selector&content_cleanup=figure.dcr-173mewl%2C+div.dcr-ut4tvs&title_cleanup=News%2C+sport+and+opinion+from+the+Guardian%27s+Europe+edition+%7C&limit=&format=Atom" news guardian europe)
+
("https://planet.emacslife.com/atom.xml" emacs emacslife)))
:bind (("C-c a f" . elfeed)
:map elfeed-search-mode-map
@@ -664,12 +664,12 @@
gnosis-mcq-display-choices nil
gnosis-image-width (if is-zeus 300 150)
gnosis-image-height (if is-zeus 300 150))
- :bind (("C-r" . thanos/gnosis-map)
+ :bind (("C-c g" . thanos/gnosis-map)
:map thanos/gnosis-map
("r" . 'gnosis-review)
("a" . 'gnosis-add-note)
("C-d" . 'gnosis-dashboard)
- ("C-a" . 'gnosis-add-deck)
+ ("d" . 'gnosis-add-deck)
("t" . 'gnosis-test-start)))
;; Run vc-pull on startup
@@ -701,13 +701,18 @@
:defer t
:config
(setf gptel-api-key (password-store-get-field "openai/[email protected]" "api")
- gptel-default-mode 'org-mode)
- (setq-default
- gptel-model "llama2:latest"
- gptel-backend (gptel-make-ollama "Ollama"
- :host "zeus:11434"
- :stream t
- :models '("llama2:latest" "zephyr:latest" "codellama:latest")))
+ gptel-default-mode 'org-mode
+ gptel-model "zephyr:latest"
+ gptel-backend (gptel-make-ollama "Ollama"
+ :host "zeus:11434"
+ :stream t
+ :models '("llama2:latest" "zephyr:latest" "codellama:latest"
+ "mistral:latest" "mixtral:latest" "neural-chat:latest"))
+ gptel-directives '((default . "You are a large language model living in Emacs and a helpful assistant. Respond concisely.")
+ (programming . "You are a large language model and a careful programmer. Provide code and only code as output without any additional text, prompt or note.")
+ (writing . "You are a large language model and a writing assistant. Respond concisely.")
+ (chat . "You are a large language model and a conversation partner. Respond concisely.")
+ (med . "You are a medical professor within the Emacs. Respond concisely.")))
:bind (:map gptel-mode-map
("C-c h" . 'gptel-menu)))
@@ -721,7 +726,7 @@
;; Password-store
-
+(require 'password-store)
(defun thanos/pass-launcher ()
"Launch Emacs as a front-end for pass."
(interactive)