More emacs configuration tweaks (multiple-cursor on click, minimap, code folding, ensime eval overlays)
Click for multiple-cursors
(global-unset-key (kbd "M-<down-mouse-1>")) (global-set-key (kbd "M-<mouse-1>") 'mc/add-cursor-on-click)
dotspacemacs-additional-packages '(helm-dash key-chord pig-mode mmm-mode minimap origami ansible)
A-zwhich maps to
æin Colemak) to the basic fold operations.
(eval-after-load 'origami '(progn (defun rb-show-only (buffer point) (interactive (list (current-buffer) (point))) (progn (origami-show-only-node buffer point) (minimap-new-minimap))) (defun rb-toggle-rec (buffer point) (interactive (list (current-buffer) (point))) (progn (origami-recursively-toggle-node buffer point) (minimap-new-minimap))) (define-key evil-normal-state-map "æ" 'rb-show-only) (define-key evil-normal-state-map "Z" 'origami-toggle-node) (define-key evil-visual-state-map "Z" 'origami-toggle-node) (define-key evil-insert-state-map "C-Z" 'origami-toggle-node) (define-key evil-normal-state-map "z" 'rb-toggle-rec) (define-key evil-visual-state-map "z" 'rb-toggle-rec) (define-key evil-insert-state-map "C-z" 'rb-toggle-rec) )))
For some reason just advising the functions with after didn't work, this is not great but does work. I left the Z bindings as they are, since I have not used them yet, and will probably delete them if I keep not using them.
Execution overlays in Ensime (Scala)
C-c C-v C-r(thing of it as extended command, eval, region to remember), given an open inferior Scala interpreter. Symbol prettify does not apply to overlays, so you need to customise the arrow used therein.