Adding some emacs configs, syncthing on sway, etc

This commit is contained in:
2024-08-29 19:19:23 -07:00
parent 753ef8d1e6
commit 24737b5d6e
6 changed files with 53 additions and 21 deletions

View File

@@ -20,7 +20,7 @@
(setq browse-url-browser-function 'eww-browse-url)
(set-face-attribute 'default nil :font "Terminus" :height 130 :weight 'regular)
(set-face-attribute 'default nil :font "Terminus" :height 200 :weight 'regular)
(set-face-attribute 'fixed-pitch nil :font "Terminus" :height 1.0 :weight 'regular)
(set-face-attribute 'variable-pitch nil :font "Terminus" :height 1.0 :weight 'bold)
@@ -162,10 +162,19 @@
(add-to-list 'org-structure-template-alist '("clj" . "src clojure")))
(defun opal/elfeed-open-in-firefox ()
"Open the current Elfeed entry link in Firefox."
(interactive)
(let ((link (elfeed-entry-link (elfeed-search-selected :single))))
(if link
(browse-url-firefox link)
(message "No link to open."))))
(use-package elfeed
:ensure t
:bind
("C-c f" . elfeed) ;; Open Elfeed
(("C-c e" . elfeed)
("C-c f" . opal/elfeed-open-in-firefox))
:config
;; Set your feeds
(setq elfeed-feeds
@@ -183,6 +192,7 @@
("https://multipolarista.com/rss" news politics)
("https://www.telesurenglish.net/feed/" news politics)
("https://theintercept.com/feed/" news politics)
("https://www.dropsitenews.com/feed" news politics)
;; Tech
("https://landchad.net/rss.xml" tech)
@@ -205,10 +215,26 @@
(setq elfeed-search-filter "@1-month-ago +unread")
;; Update feeds automatically when entering Elfeed search mode
(add-hook 'elfeed-search-mode-hook 'elfeed-update))
(add-hook 'elfeed-search-mode-hook 'elfeed-update)
;; Evil keybindings for Elfeed
(evil-define-key 'normal elfeed-search-mode-map
"o" 'opal/elfeed-open-in-firefox ;; Open link in Firefox
"gr" 'elfeed-update ;; Refresh feeds
"q" 'quit-window)) ;; Quit Elfeed
(setq create-lockfiles nil)
;; Make sure eww opens in it's own buffer
(after! eww
(set-popup-rule! "^\\*eww\\*" :ignore t))
(setq erc-server "irc.libera.chat"
erc-nick "opalvault"
erc-user-full-name "Opal"
erc-track-shorten-start 8
erc-autojoin-channels-alist '(("irc.libera.chat" "#systemcrafters" "#emacs" "#nyxt" "#guix"))
erc-kill-buffer-on-part t
erc-auto-query 'bury
erc-hide-list '("JOIN" "PART" "QUIT"))