summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
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)