[emacs] Assimilate multiple-cursors 1.4.0-47-g6a7c3c0
[~bandali/configs] / init.org
index d148363..536e25d 100644 (file)
--- a/init.org
+++ b/init.org
@@ -1098,11 +1098,13 @@ TODO: break this giant source block down into individual org sections.
                         (set-window-configuration wnd))))
         (error "no more than 2 files should be marked"))))
   :bind (:map dired-mode-map
-              ("e" . dired-ediff-files)
-              ("E" . dired-toggle-read-only)
-              ("z" . (lambda ()
-                       (interactive)
-                       (a/dired-start-process "zathura")))))
+              ("e"  . dired-ediff-files)
+              ("E"  . dired-toggle-read-only)
+              ("\\" . dired-hide-details-mode)
+              ("z"  . (lambda ()
+                        (interactive)
+                        (a/dired-start-process "zathura"))))
+  :hook (dired-mode . dired-hide-details-mode))
 
 (use-package eldoc
   :when (version< "25" emacs-version)
@@ -1891,6 +1893,17 @@ Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]].
   :bind ("C-=" . er/expand-region))
 #+end_src
 
+** multiple-cursors
+
+#+begin_src emacs-lisp
+(use-package multiple-cursors
+  :bind (("C-c M c"       . mc/edit-lines)
+         ("C-c M n"       . mc/mark-next-like-this)
+         ("C-c M p"       . mc/mark-previous-like-this)
+         ("C-c M a"       . mc/mark-all-like-this)
+         ("C-S-<mouse-1>" . mc/add-cursor-on-click)))
+#+end_src
+
 * Email
 :PROPERTIES:
 :CUSTOM_ID: email
@@ -1912,7 +1925,6 @@ Also see [[https://www.emacswiki.org/emacs/rebox2][rebox2]].
 
 (use-package gnus
   :bind (("C-c m" . gnus)
-         ("C-c M" . gnus-unplugged)
          ("s-m"   . gnus)
          ("s-M"   . gnus-unplugged))
   :init