summaryrefslogtreecommitdiffstats
path: root/lisp/ravi-init-navigation.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ravi-init-navigation.el')
-rw-r--r--lisp/ravi-init-navigation.el21
1 files changed, 9 insertions, 12 deletions
diff --git a/lisp/ravi-init-navigation.el b/lisp/ravi-init-navigation.el
index a71f5dd..610b0a7 100644
--- a/lisp/ravi-init-navigation.el
+++ b/lisp/ravi-init-navigation.el
@@ -1,4 +1,4 @@
-;;; ravi-init-navigation.el --- navigation utilities
+;;; ravi-init-navigation.el --- navigation utilities -*- lexical-binding: t; -*-
;; Copyright (C) 2013
@@ -138,19 +138,16 @@
:bind ("s-." . imenu-anywhere))
(use-package expand-region
- :config
- (progn
- (bind-key "C-=" 'er/expand-region)))
+ :bind ("C-=" . 'er/expand-region))
(use-package multiple-cursors
- :bind (("C-S-c C-S-c" . mc/edit-lines)
-
- ("C->" . mc/mark-next-like-this)
+ :bind (("C->" . mc/mark-next-like-this)
("C-<" . mc/mark-previous-like-this)
("C-c C-<" . mc/mark-all-like-this))
- :commands (mc/mark-more-like-this-extended)
+ :commands (mc/mark-more-like-this-extended mc/edit-lines)
:init
(setq mc/list-file (ravi/emacs-file "past/mc-lists.el"))
+ (bind-key (if (xterm-kitty-in-use) "C-C C-C" "C-S-c C-S-c") #'mc/edit-lines)
(with-eval-after-load "region-bindings-mode"
(bind-key "a" 'mc/mark-all-like-this region-bindings-mode-map)
(bind-key "p" 'mc/mark-previous-like-this region-bindings-mode-map)
@@ -247,7 +244,8 @@
:bind (("C-a" . mwim-beginning)
("C-e" . mwim-end)))
-(use-package ialign)
+(use-package ialign
+ :commands ialign)
;; Use current line for region-based commands if no region selected
(use-package whole-line-or-region
@@ -269,7 +267,8 @@
;; grep and friends
-(use-package wgrep)
+(use-package wgrep
+ :defer t)
(if (executable-find "ag")
;; Prefer the silver-searcher if available
@@ -379,7 +378,5 @@
(require 'midnight)
-;; to do: add zeal-at-point
-
(provide 'ravi-init-navigation)
;;; ravi-init-navigation.el ends here