diff options
| author | Tim Harper <timcharper@gmail.com> | 2015-11-13 20:06:00 -0700 |
|---|---|---|
| committer | Tim Harper <timcharper@gmail.com> | 2015-11-13 20:06:00 -0700 |
| commit | f44d52431568066ce99bbf50af17aab10fa425d6 (patch) | |
| tree | 19b235d89e2792ad1b64ba27ded7a8150b095184 | |
| parent | 18a33859d7cddf31b4605414fdb34ea810779e22 (diff) | |
| parent | c99ca440df4710575b42f88c476e8d639283d716 (diff) | |
Merge pull request #63 from jbranso/master
Changed Readme.md
| -rwxr-xr-x | README.md | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -31,37 +31,37 @@ or this (trigger char and calling a function): (?< . surround-read-tag) -You can add new by adding them to `surround-pairs-alist`. -For more information do: `C-h v surround-pairs-alist`. +You can add new by adding them to `evil-surround-pairs-alist`. +For more information do: `C-h v evil-surround-pairs-alist`. -`surround-pairs-alist` is a buffer local variable, which means that you can have +`evil-surround-pairs-alist` is a buffer local variable, which means that you can have different surround pairs in different modes. By default `<` is used to insert a tag, in C++ this may not be useful - but inserting angle brackets is, so you can add this: (add-hook 'c++-mode-hook (lambda () - (push '(?< . ("< " . " >")) surround-pairs-alist))) + (push '(?< . ("< " . " >")) evil-surround-pairs-alist))) Don't worry about having two entries for `<` surround will take the first. Or in Emacs Lisp modes using \` to enter \` ' is quite useful, but not adding a -pair of ` (the default behavior if no entry in `surround-pairs-alist` is +pair of ` (the default behavior if no entry in `evil-surround-pairs-alist` is present), so you can do this: (add-hook 'emacs-lisp-mode-hook (lambda () - (push '(?` . ("`" . "'")) surround-pairs-alist))) + (push '(?` . ("`" . "'")) evil-surround-pairs-alist))) without affecting your Markdown surround pairs, where the default is useful. -To change the default `surround-pairs-alist` you have to use `setq-default`, for +To change the default `evil-surround-pairs-alist` you have to use `setq-default`, for example to remove all default pairs: - (setq-default surround-pairs-alist '()) + (setq-default evil-surround-pairs-alist '()) or to add a pair that surrounds with two ` if you enter ~: - (setq-default surround-pairs-alist (cons '(?~ ("``" . "``")) - surround-pairs-alist)) + (setq-default evil-surround-pairs-alist (cons '(?~ ("``" . "``")) + evil-surround-pairs-alist)) ## Add new supported operators ## You can add support for new operators by adding them to `surround-operator-alist`. |
