diff options
author | Kaiden Fey <kookie@spacekookie.de> | 2020-09-21 15:24:07 +0200 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2020-09-21 15:24:07 +0200 |
commit | 41f17e23e5518f366a1750131efbfab4370cad08 (patch) | |
tree | ed1aebeedc17f3021b74ae41570725517d78f2ec /modules/workstation/emacs/init.el | |
parent | f80843dd45d7acd563d0a5b014cec3a2ea686fc2 (diff) | |
parent | 651956fe613dbbe5dd160dab66fc4f18fc753f20 (diff) |
Merge branch 'master' of git.spacekookie.de:git/libkookie into master
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r-- | modules/workstation/emacs/init.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el index 4becf18a850..28b8146f632 100644 --- a/modules/workstation/emacs/init.el +++ b/modules/workstation/emacs/init.el @@ -6,6 +6,8 @@ (require 'magit) +(require 'multiple-cursors) + (require 'org) (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) @@ -116,6 +118,7 @@ ;; Better completion handling with lsp-mode (require 'company-lsp) (push 'company-lsp company-backends) +(setq lsp-ui-doc-position 'top) (setq lsp-ui-doc-max-width 45) (setq lsp-ui-doc-max-height 10) @@ -270,6 +273,14 @@ (global-set-key (kbd "C-M-<up>") 'move-section-up) (global-set-key (kbd "C-M-<down>") 'move-section-down) +;;; Multiple cursors bindings +(global-set-key (kbd "C-H-c C-H-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) + + + ;;; Org mode bindings replicated here to make it easier for me (define-key org-mode-map "\C-c\C-o" 'org-open-at-point-in-current-window) (define-key org-mode-map "\C-S-<up>" nil) |