[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-surround ee19b598ca 019/175: Merge pull request #8 fr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-surround ee19b598ca 019/175: Merge pull request #8 from cofi/master |
Date: |
Mon, 9 Oct 2023 13:01:00 -0400 (EDT) |
branch: elpa/evil-surround
commit ee19b598caace997bc4b6c5e90e08830e220fd9e
Merge: b40d2b6542 9f2917cfe2
Author: Tim Harper <timcharper@gmail.com>
Commit: Tim Harper <timcharper@gmail.com>
Merge pull request #8 from cofi/master
Mention the new buffer local surround pairs in the readme
---
README.md | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
diff --git a/README.md b/README.md
index b1f5e97043..7c069a7782 100644
--- a/README.md
+++ b/README.md
@@ -32,6 +32,35 @@ or this (trigger char and calling a function):
You can add new by adding them to `surround-pairs-alist`.
For more information do: `C-h v surround-pairs-alist`.
+`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)))
+
+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
+present), so you can do this:
+
+ (add-hook 'emacs-lisp-mode-hook (lambda ()
+ (push '(?` . ("`" . "'"))
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
+example to remove all default pairs:
+
+ (setq-default surround-pairs-alist '())
+
+or to add a pair that surrounds with two ` if you enter ~:
+
+ (setq-default surround-pairs-alist (cons '(?~ ("``" . "``"))
+ surround-pairs-alist))
+
## Usage examples ##
Here are some usage examples (taken from
- [nongnu] elpa/evil-surround 6270ab1830 121/175: Fix repeat when pair is determined by function, (continued)
- [nongnu] elpa/evil-surround 6270ab1830 121/175: Fix repeat when pair is determined by function, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 61e4a4aa5c 124/175: try out new logo scale, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 55c820083a 116/175: Use ‘evil-surround’ as :group for customizable variables, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 01eb3c0e4f 142/175: Remove apparently-unnecessary run-at-time, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 191ad92fb8 155/175: Add support for surrounding with function calls in prefix form, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 4706987bc0 151/175: fix make emacs, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ee61a65200 144/175: Fix repeating tag changes, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 78b2958546 164/175: Update maintainer for NonGNU ELPA, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround bd98f7f549 175/175: Return an empty range from evil-surround-edit, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ea14078cb2 171/175: Make car + cdr safe for delete overlays, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround ee19b598ca 019/175: Merge pull request #8 from cofi/master,
ELPA Syncer <=
- [nongnu] elpa/evil-surround 9f2917cfe2 018/175: Mention the buffer local surround pairs in the readme., ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround c42ddb5d1d 023/175: add autoloads, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 31cc1da60c 026/175: Merge pull request #14 from milkypostman/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 0c503fc994 033/175: Merge branch 'master' of https://github.com/lyro/evil-surround, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 8b59d17d5c 038/175: Merge pull request #32 from Silex/master, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 77e7cd8de0 045/175: bring back the evil-Surround-region; make it work with yS, also, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 6f290e0270 048/175: Implement block-wise surround, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7a2e79d7a8 039/175: Fix forgotten leftovers when renaming, ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 72d35afc40 051/175: Fix surrounding with invalid chars, like ESC (Fix #51), ELPA Syncer, 2023/10/09
- [nongnu] elpa/evil-surround 7cad34b28a 005/175: 'S' causes normal region to end up on it's own line, as in surround.vim, ELPA Syncer, 2023/10/09