From a2b0c36e8d1de349aea84a382d05668e60f1f703 Mon Sep 17 00:00:00 2001 From: mattkae Date: Tue, 25 Oct 2022 08:49:11 -0400 Subject: Added the ability to move a line up and down --- README.md | 8 +++++--- init.el | 2 +- lisp/general.el | 4 ++++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5afb65c..5750423 100644 --- a/README.md +++ b/README.md @@ -5,9 +5,11 @@ Emacs configuration file ### General - Jump to symbol: `C-]` or `gd` - Jump back from symbol: `C-o` - -## Web -- Refactor JS/TS: `F2` +- Open project: `s-o` +- Find file in project: `s-p` +- Grep in project: `s-F` +- Refactor : `F2` +- Move line up/down: `M-` ## Per-language Features diff --git a/init.el b/init.el index c8f428a..ceb2776 100644 --- a/init.el +++ b/init.el @@ -66,7 +66,7 @@ '(org-agenda-files (list org-directory)) '(org-directory "~/Documents/org") '(package-selected-packages - '(org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) + '(drag-stuff org-bullets git-gutter-fringe git-gutter vterm-toggle vterm minimap neotree good-scroll counsel ## smartparens xref-js2 eglot json-mode markdown-mode emojify tern rtags cmake-ide cmake-mode tide auctex evil js2-highlight-vars ac-js2 js2-refactor js2-mode flycheck-irony company-irony all-the-icons req-package projectile irony org))) ;;; init.el ends here (custom-set-faces diff --git a/lisp/general.el b/lisp/general.el index 4bbf6f0..6def4b8 100644 --- a/lisp/general.el +++ b/lisp/general.el @@ -237,5 +237,9 @@ ) (add-hook 'vterm-mode-hook 'my-vterm-mode-set-colors) +;; Line movement +(drag-stuff-global-mode) +(drag-stuff-define-keys) + (provide 'general) ;;; general.el ends here -- cgit v1.2.1