summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/emacs/init.el49
1 files changed, 28 insertions, 21 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el
index 695804e..f3e5f6b 100644
--- a/.config/emacs/init.el
+++ b/.config/emacs/init.el
@@ -176,8 +176,7 @@
(rename-file file (concat (file-name-directory file) new-file))
(revert-buffer)
(message "Renamed %s to %s" file new-file)))))
- :bind ((:map
- dired-mode-map
+ :bind ((:map dired-mode-map
("b" . 'dired-up-directory)
("v" . 'dired-watch-video)
("z" . 'wdired-change-to-wdired-mode)
@@ -498,13 +497,15 @@
("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)
("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.tovima.gr%2Flatest-news%2F&url_selector=a.columns&url_pattern=&content_selector=div.main-content&content_cleanup=div.wrap-facebook%2Cdiv.googlenews&title_cleanup=&limit=&format=Atom" tovima greek news)
("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.tovima.gr%2Fcategory%2Fscience%2F&url_selector=a.columns&url_pattern=&content_selector=div.main-content&content_cleanup=div.wrap-facebook%2Cdiv.googlenews&title_cleanup=&limit=&format=Atom" tovima greek science news)
- ("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.reuters.com%2Fworld%2F&url_selector=a.media-story-card__headline__tFMEu&url_pattern=&content_selector=div.article-body__content__17Yit&content_cleanup=div.article-body__row__dFOPA%2Cdiv.article-body__element__2p5pI%2Cp.text__small__1kGq2&title_cleanup=&limit=&format=Atom" reuters world news)
+ ("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.reuters.com%2Fworld%2F&url_selector=a.media-story-card__headline__tFMEu&url_pattern=&content_selector=article.article__container__2MUeZ&content_cleanup=div.info-content__toolbar__3AkHm%2C+div.article-body__row__dFOPA%2C+div.article__read-next__Kjxdw&title_cleanup=&limit=&format=Atom" reuters world news)
("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.reuters.com%2Fbusiness%2Fhealthcare-pharmaceuticals%2F&url_selector=a.basic-card__title__37xHl&url_pattern=&content_selector=div.article-body__wrapper__3IxHM&content_cleanup=svg.link__new-tab-symbol__3T19s%2C+div.toolbar__container__3kIkw%2C+div.article-body__row__dFOPA+article-body__element__2p5pI&title_cleanup=&limit=&format=Atom" reuters med news)
+ ("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.reuters.com%2Ftechnology%2Fcybersecurity%2F&url_selector=a.media-story-card__headline__tFMEu%2C+a.media-story-card__heading__eqhp9&url_pattern=&content_selector=article.article__container__2MUeZ&content_cleanup=div.info-content__toolbar__3AkHm%2C+svg.link__new-tab-symbol__3T19s%2C+div.article-body__row__dFOPA%2C+div.read-next-tablet-up__container__3MpHN%2C+div.author-bio__multiple-authors__5YGrG%2C+div.article__read-next__Kjxdw&title_cleanup=&limit=&format=Atom" reuters cybersec news)
("https://annas-blog.org/rss.xml" anna piracy)
("https://planet.emacslife.com/atom.xml" emacs emacslife)
("https://localmonero.co/static/rss/the-monero-standard/feed.xml" monero)
("https://devonzuegel.com/feed" devon)
("https://www.addtoany.com/add_to/feed?linkurl=http%3A%2F%2Fwww.thelancet.com%2Frssfeed%2Flancet_online.xml&type=feed&linkname=The%20Lancet%20Online%20First&linknote=" lancet med)
+ ("https://rss-bridge.thanosapollo.org/?action=display&bridge=CssSelectorBridge&home_page=https%3A%2F%2Fwww.wired.com%2Fmost-recent%2F&url_selector=a.SummaryItemHedLink-civMjp&url_pattern=&content_selector=article.main-content&content_cleanup=div.ActionBarWrapperContent-lasBkU&title_cleanup=&limit=&format=Atom" wired tech news)
("https://www.propublica.org/feeds/propublica/main" probublica news)
("http://tools.cdc.gov/podcasts/feed.asp?feedid=183" cdc med)
("http://planet.lisp.org/rss20.xml" lisp planetlisp)
@@ -520,7 +521,11 @@
("https://www.youtube.com/feeds/videos.xml?channel_id=UC6QYFutt9cluQ3uSM963_KQ"
ninja yt med)
("https://www.youtube.com/feeds/videos.xml?channel_id=UC1yNl2E66ZzKApQdRuTQ4tw"
- sabine yt physics)))
+ sabine yt physics)
+ ("https://www.aartaka.me.eu.org/"
+ artyom blog lisp)
+ ("https://nyxt-browser.com/feed"
+ nyxt lisp)))
(defun elfeed-mpv (&optional use-generic-p)
"Play video link with mpv."
@@ -537,7 +542,7 @@
:map elfeed-search-mode-map
("v" . 'elfeed-mpv)
("U" . 'elfeed-update))
- :hook ((elfeed-search-mode . (lambda () (display-line-numbers-mode 0)))))
+ :hook ((elfeed-searchacw-mode . (lambda () (display-line-numbers-mode 0)))))
;; Python
(use-package python-mode
@@ -941,8 +946,8 @@ By default, returns all jabber related buffers format."
:config
(setf gnosis-vc-auto-push t
gnosis-mcq-display-choices nil
- gnosis-image-width nil
- gnosis-image-height nil)
+ gnosis-image-width (if is-zeus nil 150)
+ gnosis-image-height (if is-zeus nil 150))
(gnosis-modeline-mode)
:bind (("C-r" . thanos/gnosis-map)
:map thanos/gnosis-map
@@ -969,19 +974,21 @@ By default, returns all jabber related buffers format."
:defer t
:config
(setf gptel-api-key (password-store-get-field "openai/[email protected]" "api")
- gptel-default-mode 'org-mode)
- (setq-default 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"
- "dolphin-mixtral: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.")
- (epictetus . "You are Epictetus, the stoic philosopher from Nicopolis. Respond concisely as Epictetus.")
- (med . "You are a medical professor within the Emacs. Respond concisely.")
- (code-review . "You are an expert programmer within Emacs reviewing code. Respond concisely")
- (writer . "You are an expert writer and FOSS enthusiast. Improve only the article sections provided as a hacker, do not add extra paragraphs.")))
+ gptel-default-mode 'org-mode
+ 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.")
+ (epictetus . "You are Epictetus, the stoic philosopher from Nicopolis. Respond concisely as Epictetus.")
+ (med . "You are a medical professor within the Emacs. Respond concisely.")
+ (code-review . "You are an expert programmer within Emacs reviewing code. Respond concisely")
+ (writer . "You are an expert writer and FOSS enthusiast. Improve only the article sections provided as a hacker, do not add extra paragraphs."))
+ gptel-model "llama3:latest")
+
+ (gptel-make-ollama "Ollama"
+ :host "localhost:11434"
+ :stream t
+ :models '("llama3:latest" "zephyr:latest" "codellama:latest"
+ "mistral:latest" "mixtral:8x22b" "neural-chat:latest"
+ "dolphin-mixtral:latest" "phi"))
:bind (("C-c g" . 'gptel-send)
:map gptel-mode-map
("C-c h" . 'gptel-menu)))
@@ -992,7 +999,7 @@ By default, returns all jabber related buffers format."
:init (define-prefix-command 'thanos/pass)
:defer t
:config
- (setf password-store-password-length (+ 20 (random 20)))
+ (setf password-store-password-length (+ 20 (random 20)))
:bind (("C-c p" . 'thanos/pass)
:map thanos/pass