From 9647916d57ed04fe796a0a3bb8e1beeaa72284f1 Mon Sep 17 00:00:00 2001 From: jowj Date: Fri, 8 Feb 2019 11:36:45 -0600 Subject: [PATCH] Added Multiple cursors and global hotkeys. --- applicationConfiguration/.emacs/init.el | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/applicationConfiguration/.emacs/init.el b/applicationConfiguration/.emacs/init.el index 758411d..a902fe3 100644 --- a/applicationConfiguration/.emacs/init.el +++ b/applicationConfiguration/.emacs/init.el @@ -131,7 +131,7 @@ '(org-modules '(org-bbdb org-bibtex org-docview org-gnus org-habit org-info org-irc org-mhe org-rmail org-w3m)) '(package-selected-packages - '(flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode))) + '(multiple-cursors flymake-python-pyflakes pdf-tools weechat jedi python-mode pylint py-autopep8 powershell outline-magic markdown-mode magit flycheck exec-path-from-shell elpygen elpy ein doom-themes csharp-mode))) ;; run emacs as server (connect to it with `emacsclient`) @@ -159,6 +159,13 @@ (require 'py-autopep8) (add-hook 'elpy-mode-hook 'py-autopep8-enable-on-save) +;; Multiple Cursors +(require 'multiple-cursors) +(global-set-key (kbd "C-S-c C-S-c") 'mc/edit-lines) +(global-set-key (kbd "C->") 'mc/mark-next-like-this) +(global-set-key (kbd "C-<") 'mc/mark-previous-like-this) +(global-set-key (kbd "C-c C-<") 'mc/mark-all-like-this) + ;; shell confs (exec-path-from-shell-copy-env "PATH") ; copy PATH from shell