summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@kelar.org>2025-01-30 21:53:08 -0500
committerAmin Bandali <bandali@kelar.org>2025-01-30 21:53:40 -0500
commit563fb78037f21c6503c6489758e8f0d86173bb7e (patch)
tree50405f1b191cacbf05ec93a04ac206f4da52ca49 /.emacs.d/init.el
parent18c7304155c5d3ccd8c6b0af5e989b87420bf0c7 (diff)
downloadconfigs-563fb78037f21c6503c6489758e8f0d86173bb7e.tar.gz
configs-563fb78037f21c6503c6489758e8f0d86173bb7e.tar.xz
configs-563fb78037f21c6503c6489758e8f0d86173bb7e.zip
Various updates
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el12
1 files changed, 11 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index e852f1c..f1b8bf9 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -219,7 +219,8 @@ plain variables. This means that `setopt' will execute any
(run-with-idle-timer 0.1 nil #'require 'battery)
(with-eval-after-load 'battery
(setopt battery-mode-line-format (format " [%s]" b/battery-format))
- (display-battery-mode))
+ ;; (display-battery-mode -1)
+ )
(run-with-idle-timer 0.5 nil #'require 'winner)
(with-eval-after-load 'winner
@@ -407,6 +408,14 @@ for all frames."
(when (fboundp #'exwm-systemtray--refresh-background-color)
(exwm-systemtray--refresh-background-color 'remap))))
+(defun b/unfill-paragraph-or-region (&optional beg end)
+ "Unfill paragraph, or region (if active)."
+ (interactive "r")
+ (let ((fill-column most-positive-fixnum))
+ (if (use-region-p)
+ (fill-region beg end)
+ (fill-paragraph))))
+
;;; General key bindings
@@ -417,6 +426,7 @@ for all frames."
("C-S-j" . b/join-line-top)
("C-c s c" . b/*scratch*)
("C-c v" . b/invert-default-face)
+ ("C-c q" . b/unfill-paragraph-or-region)
;; evaling and macro-expanding
("C-c e b" . eval-buffer)
("C-c e e" . eval-last-sexp)