summaryrefslogtreecommitdiff
path: root/.config/emacs/bd-default.el
diff options
context:
space:
mode:
authorbd <bdunahu@gmail.com>2024-01-04 18:47:26 -0700
committerbd <bdunahu@gmail.com>2024-01-04 18:47:26 -0700
commit8ec141c3c2b1e5ff80632ca58c7c62cae8f357d0 (patch)
tree6bad9ed6b6c5adbe888b0dc590e50b8e1df9fb4e /.config/emacs/bd-default.el
parentbc930046e3c7413ffb8463904cbd053c1c9d2874 (diff)
Removed all bindings prefixed with C-z, moved more to default.
Diffstat (limited to '.config/emacs/bd-default.el')
-rw-r--r--.config/emacs/bd-default.el33
1 files changed, 25 insertions, 8 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"))