Fork me on GitHub
#spacemacs
<
2017-07-06
>
claudiu08:07:21

Hi. Anyone has any ideea how I can search a term from clipboard. ? In vim i pressed / then typed or shift+ins to paste. In space macs can only type, insert does not work.

donyorm09:07:43

@claudiu Ctrl-y pastes in emacs, at least outside of evil mode (like the mini-buffer)

donyorm09:07:07

so use / + Ctrl-y to search for what's in your clipboard

practicalli-johnny10:07:50

@achikin you could try add-hook. For example I use (add-hook 'markdown-mode-hook 'turn-on-orgtbl). This runs the function turn-on-orgtbl when I have a buffer in markdown-mode. So you could try something like (add-hook 'smartparens-mode-hook (lambda () (define-key minor-mode-map (kbd "TAB") 'sp-indent-adjust-sexp)) You might need to unbind an existing keybinding in the major mode first, examples are in this article: http://emacsredux.com/blog/2013/09/25/removing-key-bindings-from-minor-mode-keymaps/

claudiu15:07:07

@donyorm Thank you. That did the trick 🙂