diff options
Diffstat (limited to '.config')
-rw-r--r-- | .config/emacs/bd-default.el | 33 | ||||
-rw-r--r-- | .config/emacs/bd-mode-and-themes.el | 27 | ||||
-rw-r--r-- | .config/emacs/bd-wm.el | 15 | ||||
-rw-r--r-- | .config/emacs/init.el | 9 |
4 files changed, 43 insertions, 41 deletions
diff --git a/.config/emacs/bd-default.el b/.config/emacs/bd-default.el index 23fcf26..e9fb34f 100644 --- a/.config/emacs/bd-default.el +++ b/.config/emacs/bd-default.el @@ -20,6 +20,9 @@ ;;;; functions +(defun clamp (lower-bound upper-bound value) + (max lower-bound (min value upper-bound))) + (defun request-sudo () "Uses TRAMP to edit currently opened file as root." (interactive) @@ -44,14 +47,19 @@ open URL at point." (global-unset-key (kbd "C-z")) (global-unset-key (kbd "C-x C-z")) ; terrible binding -(global-set-key (kbd "C-z =") 'text-scale-increase) -(global-set-key (kbd "C-z -") 'text-scale-decrease) +(global-set-key (kbd "C-c =") 'text-scale-increase) +(global-set-key (kbd "C-c -") 'text-scale-decrease) (setopt inhibit-startup-message t) (menu-bar-mode -1) (tool-bar-mode -1) (scroll-bar-mode -1) + (require 'display-line-numbers) +(global-display-line-numbers-mode) +(global-visual-line-mode t) +(setopt display-line-numbers-type 'relative) +(global-hl-line-mode 1) (global-auto-revert-mode 1) (winner-mode 1) @@ -79,7 +87,7 @@ open URL at point." ;;;; built-in packages (use-package newsticker :demand t - :bind (("C-z C-n" . newsticker-show-news) + :bind (("C-c C-n" . newsticker-show-news) :map newsticker-treeview-item-mode-map ("C-j" . rip-video)) :custom @@ -87,9 +95,8 @@ open URL at point." (newsticker-automatically-mark-items-as-old nil) (newsticker-url-list '(("Ambrose and Elsewhere" "https://jamesenge.com/engeblog/feed" nil nil nil) ("James Enge Mastodon" "https://mastodon.sdf.org/@jamesenge.rss" nil nil nil) - ("Book Reviews | Tales From the Magician's Skull" "https://goodman-games.com/tftms/category/book-reviews/feed" nil nil nil) - ("Arch Linux: Recent news updates" "https://archlinux.org/feeds/news/" nil nil nil) - ("Parabola GNU/Linux-libre: Recent news updates" "https://www.parabola.nu/feeds/news/" nil nil nil) + ("Tales From the Magician's Skull" "https://goodman-games.com/tftms/category/book-reviews/feed" nil nil nil) + ("Parabola GNU/Linux-libre" "https://www.parabola.nu/feeds/news/" nil nil nil) ("suckless.org news" "https://suckless.org/atom.xml" nil nil nil) ("Mental Outlaw" "https://vid.puffyan.us/feed/channel/UC7YOGHUfC1Tb6E4pudI9STA" nil nil nil) ("Luke Smith" "https://vid.puffyan.us/feed/channel/UC2eYFnH61tmytImy1mTYvhA" nil nil nil) @@ -98,6 +105,16 @@ open URL at point." ("Protesilaos Stravrou" "https://yewtu.be/feed/playlist/PL8Bwba5vnQK14z96Gil86pLMDO2GnOhQ6" nil nil nil))) ;; may require ./newsticker/groups to be cleared (newsticker-groups '("Feeds" - ("READING" "Ambrose and Elsewhere" "James Enge Mastodon" "Book Reviews | Tales From the Magician's Skull") - ("TECH" ("GNU/Linux" "Arch Linux: Recent news updates" "Parabola GNU/Linux-libre: Recent news updates") "suckless.org news") + ("READING" "James Enge Mastodon" "Tales From the Magician's Skull" "Ambrose and Elsewhere") + ("TECH" "Parabola GNU/Linux-libre" "suckless.org news") ("VIDEO" "Mental Outlaw" "Luke Smith" "Brent Westbrook" "Bugswriter" "Protesilaos Stravrou")))) + +(use-package eww + :demand t + :custom + (eww-auto-rename-buffer 'title)) + +(use-package image-dired + :bind (("C-c d" . dired-jump)) + :custom + (dired-listing-switches "-alh")) diff --git a/.config/emacs/bd-mode-and-themes.el b/.config/emacs/bd-mode-and-themes.el index f83f740..a5471ae 100644 --- a/.config/emacs/bd-mode-and-themes.el +++ b/.config/emacs/bd-mode-and-themes.el @@ -116,12 +116,6 @@ ;; custom function to remove mode line from images (add-hook 'image-mode-hook 'disable_mode_line) -(global-display-line-numbers-mode) -(global-visual-line-mode t) -(setq display-line-numbers-type 'relative) -;; required for other customizations later in themes. -(global-hl-line-mode 1) - ;;;; true transparency ;; (add-to-list 'default-frame-alist '(alpha-background . 60)) (add-to-list 'default-frame-alist '(alpha . (90 . 90))) @@ -150,16 +144,17 @@ (add-hook 'modus-themes-after-load-theme-hook #'modus-themes-custom-faces) -(setq modus-themes-italic-constructs t - modus-themes-hl-line '(accented) - modus-themes-subtle-line-numbers t - modus-themes-paren-match '(intense) - modus-themes-region '(bg-only) - modus-themes-syntax '(faint) - modus-themes-mode-line '(borderless) - modus-themes-org-blocks 'gray-background - modus-themes-headings '( - (1 . (rainbow overline)))) +(setopt modus-themes-italic-constructs t + modus-themes-bold-constructs t + modus-themes-hl-line '(accented) + modus-themes-subtle-line-numbers t + modus-themes-paren-match '(intense) + modus-themes-region '(bg-only) + modus-themes-syntax '(faint) + modus-themes-mode-line '(borderless) + modus-themes-org-blocks 'gray-background + modus-themes-headings '( + (1 . (rainbow overline)))) (load-theme 'modus-vivendi t) diff --git a/.config/emacs/bd-wm.el b/.config/emacs/bd-wm.el index ae45e7b..c4468e4 100644 --- a/.config/emacs/bd-wm.el +++ b/.config/emacs/bd-wm.el @@ -39,16 +39,15 @@ dedicated buffer will never be automatically orphaned." (dolist (k '(("s-L" "slock") ("s-B" "icecat") - ("s-<return>" "st") ("s-O" "xdotool type $(grep -v '^#' /home/bdunahu/Personal/scripts/bookmarks.txt | dmenu -i -l 12 | awk '{print $NF}')") ("s-P" "passmenu --type") - ("s-<f2>" "brightnessctl set 1%-") - ("s-<f3>" "brightnessctl set 1%+") - ("s-<f6>" "pactl set-sink-mute @DEFAULT_SINK@ toggle") - ("s-<f7>" "pactl set-sink-volume @DEFAULT_SINK@ -10%") - ("s-<f8>" "pactl set-sink-volume @DEFAULT_SINK@ +5%") - ("s-<f9>" "mpc prev") - ("s-<f11>" "mpc next") + ("<f2>" "brightnessctl set 1%-") + ("<f3>" "brightnessctl set 1%+") + ("<f6>" "pactl set-sink-mute @DEFAULT_SINK@ toggle") + ("<f7>" "pactl set-sink-volume @DEFAULT_SINK@ -10%") + ("<f8>" "pactl set-sink-volume @DEFAULT_SINK@ +5%") + ("<f9>" "mpc prev") + ("<f11>" "mpc next") ("<print>" "flameshot launcher"))) (let ((f (lambda () (interactive) (save-window-excursion diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 0fe8ac8..d446b10 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -7,9 +7,6 @@ (load (expand-file-name "$HOME/.config/emacs/bd-default.el")) -(defun clamp (lower-bound upper-bound value) - (max lower-bound (min value upper-bound))) - (load (expand-file-name "$HOME/.config/emacs/bd-org.el")) (load (expand-file-name "$HOME/.config/emacs/bd-emms.el")) (load (expand-file-name "$HOME/.config/emacs/bd-development.el")) @@ -21,18 +18,12 @@ erc-autojoin-channels-alist '(("irc.libera.chat" "#parabola" "#emacs" "#guix"))) (defalias 'erc 'erc-tls) -;; dired -(setopt dired-listing-switches "-alh") - (use-package vertico :init (vertico-mode) :custom (vertico-cycle t)) -;; dired -(global-set-key (kbd "C-z d") 'dired-jump) - (load (expand-file-name "$HOME/.config/emacs/bd-wm.el")) (load (expand-file-name "$HOME/.config/emacs/bd-mode-and-themes.el")) |