From d88a14ba74be1b280539467e6fff254e0140e756 Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Wed, 7 Jun 2023 18:07:21 +0300 Subject: emacs: update feeds, eshell prompt and add stumpwm config --- emacs.org | 132 +++++++++++++++++++++++++++++++++----------------------------- 1 file changed, 70 insertions(+), 62 deletions(-) (limited to 'emacs.org') diff --git a/emacs.org b/emacs.org index 88af450..a16f821 100755 --- a/emacs.org +++ b/emacs.org @@ -154,7 +154,7 @@ Fonts and basic appearance settings for each device (column-number-mode) - (global-display-line-numbers-mode 0) + (global-display-line-numbers-mode 1) (menu-bar--display-line-numbers-mode-relative) ;;Disable line numbers for some modes (dolist (mode '(pdf-view-mode-hook @@ -261,7 +261,9 @@ Fonts and basic appearance settings for each device #+end_src ** All-the-icons #+begin_src emacs-lisp -(add-hook 'dired-mode-hook 'all-the-icons-dired-mode) + (add-hook 'dired-mode-hook 'all-the-icons-dired-mode) + (setq all-the-icons-dired-monochrome 'nil + all-the-icons-dired-v-adjust 0.10) #+end_src * Org ** Org-Roam @@ -605,58 +607,61 @@ Fonts and basic appearance settings for each device #+begin_src emacs-lisp (require 'elfeed) (require 'elfeed-goodies) - (setq elfeed-feeds '(("https://hackaday.com/blog/feed/" - hackaday linux) - ("https://protesilaos.com/news.xml" - protesilaos) - ("https://protesilaos.com/codelog.xml" - proetesilaos) - ("https://guix.gnu.org/feeds/blog.atom" - gnu guix) - ("https://thanosapollo.com/posts/index.xml" - thanos) - ("http://nullprogram.com/feed/" - emacs linux) - ("https://drewdevault.com/blog/index.xml" - sourcehut drewdevault) - ("https://spacepub.space/feeds/videos.xml?videoChannelId=2" - drewdevault youtube) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg" - video dt) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA" - video mental) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCAiiOTio8Yu69c3XnR7nQBQ" - video daviwil) - ("https://videos.lukesmith.xyz/feeds/videos.atom?sort=-publishedAt&isLocal=true" - video luke) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCrc2iv2-G1FZ3VscM3zu2jg" - video zoogirl) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UC0uTPqBCFIpZxlz_Lv1tk_g" - video prot) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCq6VFHwMzcMXbuKyG7SQYIg" - video moist) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UC05XpvbHZUQOfA6xk4dlmcw" - video djware) - ("https://archlinux.org/feeds/news/" - ArchLinux Latest) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCsBjURrPoezykLs9EqgamOA" - fireship video) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCl-J-ovSJhA3or73Q2uVpow" - medicosperf video) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCSuHzQ3GrHSzoBbwrIq3LLA" - naomi video) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCqYPhGiB9tkShZorfgcL2lA" - WhatIveLearned video) - ("http://wikileaks.org/feed" - wikileaks) - ("https://hackernoon.com/feed" - hackernoon) - ("https://sachachua.com/blog/feed/" - sacha emacs) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCtMVHI3AJD4Qk4hcbZnI9ZQ" - video OrdinaeryGamers) - ("https://www.youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w" - video Louis))) + (setq elfeed-feeds + '(("https://hackaday.com/blog/feed/" + hackaday linux) + ("https://protesilaos.com/news.xml" + protesilaos) + ("https://protesilaos.com/codelog.xml" + proetesilaos) + ("https://guix.gnu.org/feeds/blog.atom" + gnu guix) + ("https://thanosapollo.com/posts/index.xml" + thanos) + ("http://nullprogram.com/feed/" + emacs linux) + ("https://drewdevault.com/blog/index.xml" + sourcehut drewdevault) + ("https://spacepub.space/feeds/videos.xml?videoChannelId=2" + drewdevault youtube) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCVls1GmFKf6WlTraIb_IaJg" + video dt) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UC7YOGHUfC1Tb6E4pudI9STA" + video mental) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCAiiOTio8Yu69c3XnR7nQBQ" + video daviwil) + ("https://videos.lukesmith.xyz/feeds/videos.atom?sort=-publishedAt&isLocal=true" + video luke) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCrc2iv2-G1FZ3VscM3zu2jg" + video zoogirl) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UC0uTPqBCFIpZxlz_Lv1tk_g" + video prot) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCq6VFHwMzcMXbuKyG7SQYIg" + video moist) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UC05XpvbHZUQOfA6xk4dlmcw" + video djware) + ("https://archlinux.org/feeds/news/" + ArchLinux Latest) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCsBjURrPoezykLs9EqgamOA" + fireship video) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCl-J-ovSJhA3or73Q2uVpow" + medicosperf video) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCSuHzQ3GrHSzoBbwrIq3LLA" + naomi video) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCqYPhGiB9tkShZorfgcL2lA" + WhatIveLearned video) + ("http://wikileaks.org/feed" + wikileaks) + ("https://hackernoon.com/feed" + hackernoon) + ("https://sachachua.com/blog/feed/" + sacha emacs) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCtMVHI3AJD4Qk4hcbZnI9ZQ" + video OrdinaeryGamers) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UCl2mFZoRqjw_ELax4Yisf6w" + video Louis) + ("https://www.youtube.com/feeds/videos.xml?channel_id=UC1yNl2E66ZzKApQdRuTQ4tw " + video sabine))) #+end_src ** Watch Videos Create function to watch videos using ~mpv~ @@ -689,11 +694,11 @@ Create function to watch videos using ~mpv~ * PDF #+begin_src emacs-lisp -;;Add pdf-isearch-minor-mode hook, otherwise isearch will be buggy -;;Darkmode hook, cause I don't want color or light in my life, I'm a vampire. -(add-hook 'pdf-view-mode-hook 'pdf-isearch-minor-mode) -(add-hook 'pdf-view-mode-hook 'pdf-view-midnight-minor-mode) -(add-to-list 'auto-mode-alist '("\\.pdf\\'" . pdf-view-mode)) + ;;Add pdf-isearch-minor-mode hook, otherwise isearch will be buggy + ;;Darkmode hook, cause I don't want color or light in my life, I'm a vampire. + (add-hook 'pdf-view-mode-hook 'pdf-isearch-minor-mode) + (add-hook 'pdf-view-mode-hook 'pdf-view-midnight-minor-mode) + (add-to-list 'auto-mode-alist '("\\.pdf\\'" . #'pdf-tools-install)) #+end_src * mu4e ** Setting up mail @@ -885,7 +890,7 @@ Set aliases for emacs functions and ~PATH~ #+end_src ** Prompt #+begin_src emacs-lisp - (eshell-git-prompt-use-theme 'powerline) + (eshell-git-prompt-use-theme 'multiline) (eshell-syntax-highlighting-global-mode 1) (setq eshell-highlight-prompt t) @@ -1074,8 +1079,7 @@ Set aliases for emacs functions and ~PATH~ :sasl-username "thanosapollo" :sasl-password ,(password-store-get "liberachat/thanos_apollo") :channels ("#emacs-circe" - "#emacs" - "#systemcrafters")))) + "#emacs")))) #+end_src ** Keybindings #+begin_src emacs-lisp @@ -1086,6 +1090,10 @@ Set aliases for emacs functions and ~PATH~ (setq openai-key (password-store-get "chatgpt/api")) (define-key 'thanos/applications-map (kbd "c") 'chatgpt) #+end_src +* StumpWM +#+begin_src emacs-lisp + (setq stumpwm-shell-program "~/.stumpwm.d/modules/util/stumpish/stumpish") +#+end_src * Misc ** Random functions #+begin_src emacs-lisp -- cgit v1.2.3