summaryrefslogtreecommitdiff
path: root/jakob.org
diff options
context:
space:
mode:
Diffstat (limited to 'jakob.org')
-rw-r--r--jakob.org61
1 files changed, 38 insertions, 23 deletions
diff --git a/jakob.org b/jakob.org
index 28fab58..da3218e 100644
--- a/jakob.org
+++ b/jakob.org
@@ -338,21 +338,21 @@ line."
;; Like in `kill-line', it's better to move point to the other end
;; of the kill before killing.
(let ((opoint (point))
- (delete-whole-line (and kill-whole-line (bolp))))
+ (delete-whole-line (and kill-whole-line (bolp))))
(if arg
- (vertical-motion (prefix-numeric-value arg))
+ (vertical-motion (prefix-numeric-value arg))
(end-of-visual-line 1)
(if (= (point) opoint)
- (vertical-motion 1)
- ;; Skip any trailing whitespace at the end of the visual line.
- ;; We used to do this only if `show-trailing-whitespace' is
- ;; nil, but that's wrong; the correct thing would be to check
- ;; whether the trailing whitespace is highlighted. But, it's
- ;; OK to just do this unconditionally.
- (skip-chars-forward " \t")))
+ (vertical-motion 1)
+ ;; Skip any trailing whitespace at the end of the visual line.
+ ;; We used to do this only if `show-trailing-whitespace' is
+ ;; nil, but that's wrong; the correct thing would be to check
+ ;; whether the trailing whitespace is highlighted. But, it's
+ ;; OK to just do this unconditionally.
+ (skip-chars-forward " \t")))
(delete-region opoint (if (and delete-whole-line (= (following-char) ?\n))
- (1+ (point))
- (point)))))
+ (1+ (point))
+ (point)))))
(bind-key "M-d" #'delete-word)
(bind-key "M-DEL" #'backward-delete-word)
@@ -376,6 +376,14 @@ Configure how the =completing-read= is displayed.
ivy-count-format "")
#+END_SRC
+Diminish the modeline indicator for Ivy.
+
+#+BEGIN_SRC elisp
+ :init
+ (when-all-loaded dim
+ (dim-minor-name 'ivy-mode ""))
+#+END_SRC
+
Enable Ivy globally.
#+BEGIN_SRC elisp
@@ -826,22 +834,13 @@ as `org-src-fontify-natively' is non-nil."
** dim
[[https://www.emacswiki.org/emacs/DelightedModes][Delight]] doesn't work for me, and [[https://github.com/myrjola/diminish.el][diminish]] is sadly lacking in the feature
-department, so I've chosen to clean up my modeline with dim. =use-package= doesn't
-have an equivalent of =:diminish= or =:delight=, so declarations occur here.
+department, so I've chosen to clean up my modeline with dim.
#+BEGIN_SRC elisp
(use-package dim
+ :demand t
:config
- (dim-minor-name 'visual-line-mode "")
-
- (when-all-loaded ivy
- (dim-minor-name 'ivy-mode ""))
-
- (when-all-loaded projectile
- (dim-minor-name 'projectile-mode ""))
-
- (when-all-loaded mpdel
- (dim-minor-name 'mpdel-mode "")))
+ (dim-minor-name 'visual-line-mode ""))
#+END_SRC
* Window Management
@@ -1865,6 +1864,14 @@ Use a more sane prefix key for interacting with =mpdel=.
(setq mpdel-prefix-key (kbd "C-c z"))
#+END_SRC
+Diminish the modeline indicator for mpdel.
+
+#+BEGIN_SRC elisp
+ :init
+ (when-all-loaded dim
+ (dim-minor-name 'mpdel-mode ""))
+#+END_SRC
+
Start =mpdel-mode=. Eh, why stop there? We can start the daemon from here, too.
#+BEGIN_SRC elisp
@@ -1974,6 +1981,14 @@ Preference of hygene. See [[Filesystem]].
projectile-track-known-projects-automatically nil)
#+END_SRC
+Diminish the modeline indicator for Projectile.
+
+#+BEGIN_SRC elisp
+ :init
+ (when-all-loaded dim
+ (dim-minor-name 'projectile-mode ""))
+#+END_SRC
+
Use [[Ivy]] for Projectile commands instead of =ido=.
#+BEGIN_SRC elisp

© 2015 - 2026 Jakob L. Kreuze