https://wikemacs.org/api.php?action=feedcontributions&user=193.90.174.156&feedformat=atomWikEmacs - User contributions [en]2024-03-28T17:04:17ZUser contributionsMediaWiki 1.35.14https://wikemacs.org/index.php?title=Expand_region&diff=2642Expand region2012-04-10T08:59:25Z<p>193.90.174.156: /* Helpful keybindings */</p>
<hr />
<div>{{Package<br />
|name=expand-region<br />
|description=Emacs extension to increase selected region by semantic units.<br />
|author=Magnar Sveen<br />
|maintainer=Magnar Sveen<br />
|source=https://github.com/magnars/expand-region.el<br />
|in_emacs=No<br />
}}<br />
<br />
'''Expand region''' increases the selected region by semantic units. Just keep pressing the key until it selects what you want.<br />
<br />
An example:<br />
<br />
<source lang="lisp"><br />
(setq alphabet-start "abc def")<br />
</source><br />
<br />
With the cursor at the '''c''', it starts by marking the entire word '''abc''', then expand to the contents of the quotes '''abc def''', then to the entire quote '''"abc def"''', then to the contents of the sexp '''setq alphabet-start "abc def"''' and finally to the entire sexp.<br />
<br />
== Basic setup ==<br />
<br />
<source lang="lisp"><br />
(require 'expand-region)<br />
(global-set-key (kbd "C-=") 'er/expand-region)<br />
</source><br />
<br />
== Helpful keybindings ==<br />
<br />
If you expand too far, you can contract the region again by giving a negative prefix.<br />
<br />
== Common Customization ==<br />
<br />
=== Replacing the Region ===<br />
<br />
{{Command|delete-selection-mode}} is sometimes used in conjunction with [[Expand region]]. [[Delete selection]] is a [[minor mode]] that allows you to delete and replace the contents of the current region by simply typing over it.<br />
<br />
== See Also ==<br />
<br />
== Project Pages ==<br />
<br />
* [https://github.com/magnars/expand-region.el GitHub Repo]<br />
<br />
== Tutorial Pages ==<br />
<br />
*[http://emacsrocks.com/e09.html Screencast]<br />
<br />
[[Category:Project Management]][[Category:Convenience]][[Category:Third Party Package]]</div>193.90.174.156https://wikemacs.org/index.php?title=Expand_region&diff=2641Expand region2012-04-10T08:57:33Z<p>193.90.174.156: Fixed repo link</p>
<hr />
<div>{{Package<br />
|name=expand-region<br />
|description=Emacs extension to increase selected region by semantic units.<br />
|author=Magnar Sveen<br />
|maintainer=Magnar Sveen<br />
|source=https://github.com/magnars/expand-region.el<br />
|in_emacs=No<br />
}}<br />
<br />
'''Expand region''' increases the selected region by semantic units. Just keep pressing the key until it selects what you want.<br />
<br />
An example:<br />
<br />
<source lang="lisp"><br />
(setq alphabet-start "abc def")<br />
</source><br />
<br />
With the cursor at the '''c''', it starts by marking the entire word '''abc''', then expand to the contents of the quotes '''abc def''', then to the entire quote '''"abc def"''', then to the contents of the sexp '''setq alphabet-start "abc def"''' and finally to the entire sexp.<br />
<br />
== Basic setup ==<br />
<br />
<source lang="lisp"><br />
(require 'expand-region)<br />
(global-set-key (kbd "C-=") 'er/expand-region)<br />
</source><br />
<br />
== Helpful keybindings ==<br />
<br />
== Common Customization ==<br />
<br />
=== Replacing the Region ===<br />
<br />
{{Command|delete-selection-mode}} is sometimes used in conjunction with [[Expand region]]. [[Delete selection]] is a [[minor mode]] that allows you to delete and replace the contents of the current region by simply typing over it.<br />
<br />
== See Also ==<br />
<br />
== Project Pages ==<br />
<br />
* [https://github.com/magnars/expand-region.el GitHub Repo]<br />
<br />
== Tutorial Pages ==<br />
<br />
*[http://emacsrocks.com/e09.html Screencast]<br />
<br />
[[Category:Project Management]][[Category:Convenience]][[Category:Third Party Package]]</div>193.90.174.156