Insert content either from kill-ring or from shell command result at marked point or vertically like rectangular do.
You can use melpa:
M-x package-install RET anyins
or you can pull it from here and you have to add in your emacs config :
(add-to-list 'load-path "/path/to/anyins")
(require 'anyins)
You can map anyins-mode
command to key to start anyins-mode easily :
(global-set-key (kbd "C-c a") 'anyins-mode)
When you turn anyins-mode on, you can press RET to mark point in buffer where you want to insert some contents. After that press ! to insert result from a shell command or press y to insert last entry in kill-ring. q will stop anyins-mode leaving everything untouched.
Newline is used as delimitor to split content to insert and content is inserted in same order of recording.
Keybinding | Description |
---|---|
RET | Mark current point in buffer. |
y | Insert last entry from kill-ring. |
! | Insert shell command result. |
q | Abort anyins-mode. |