summaryrefslogtreecommitdiffstats
path: root/lisp/init-editing.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/init-editing.el')
-rw-r--r--lisp/init-editing.el31
1 files changed, 14 insertions, 17 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el
index 9ba858a..3099ffa 100644
--- a/lisp/init-editing.el
+++ b/lisp/init-editing.el
@@ -2,28 +2,25 @@
;;; Commentary:
;;; Code:
-;; use zap-up-to-char instead of zap-to-char
-(use-package misc
- :bind ("M-z" . zap-up-to-char))
-
;; enable subword-mode in prog-mode
(use-package subword
:diminish subword-mode
:hook ((prog-mode . subword-mode)))
-;; quick access to calculator
-(use-package calc
- :bind ("C-c @" . quick-calc))
-
-(use-package crux
- :ensure t
- :bind (("M-j" . crux-top-join-line)
- ("C-c n" . crux-rename-file-and-buffer)
- ("C-c w" . crux-kill-buffer-truename)
- ("C-c d" . crux-duplicate-current-line-or-region)
- ("C-c C-o" . crux-open-with)
- ("C-x C-r" . crux-recentf-find-file)
- ("C-x C-o" . crux-recentf-find-directory)))
+;; M-z runs zap-up-to-char instead of zap-to-char
+(global-set-key (kbd "M-z") 'zap-up-to-char)
+
+;; C-c @ opens a simple calculator
+(global-set-key (kbd "C-c @") 'quick-calc)
+
+;; M-j joins the next line to this
+(global-set-key (kbd "M-j") (lambda () (interactive) (join-line -1)))
+
+;; C-c d duplicates the current line or region
+(global-set-key (kbd "C-c d") 'duplicate-dwim)
+
+;; C-c n renames visited file
+(global-set-key (kbd "C-c n") 'rename-visited-file)
;; C-x k kills current buffer
(global-set-key (kbd "C-x k") 'kill-current-buffer)