LINUX.ORG.RU

Re: Есть ли в Emacs аналог кнопки go back в браузере?

Оно?

(defun switch-to-other-buffer () (interactive) (switch-to-buffer (other-buffer)))

(global-set-key (kbd "C-`") `switch-to-other-buffer)

PartyZan ★★★ ()

Re: Есть ли в Emacs аналог кнопки go back в браузере?

а ещё есть такая мегаштука - mtorus... обязательно её посмотри..

описание:

What is MTorus

MTorus lets you work with several groups of buffers, each group being a separate ring. This grouping can be used to form logically united sets of buffers.

There could be a group for quick edit of the emacs configuration files while you're actually working on some (Ruby/Perl/whatever-) program or it could be all the headers of your C project while all the .c-files make up another group.

Whatever you can think of. You could even make different parts of your buffers (point positions) show up in different groups like when one set of functions spread throughout one (or more) files is responsible for one specific task or like working on a chapter in a LaTeX-document while defining some macros at the top of the file.

Choosing another element in such a group is done by actually cycling through the group (like with e.g. the kill-ring). And since we can cycle in the `other' direction through a collection of those rings we are using a Torus here. (A "group" will usually be referred to as a "ring" from now.)

Of course this is just a basic description of what MTorus can do. :)

Cy6erBr4in ★★★ ()

Re: Есть ли в Emacs аналог кнопки go back в браузере?

Спасибо! Еще очень интересная вещь http://www.emacswiki.org/cgi-bin/wiki/Icicles

Icicles lets you do the following:

* cycle through completion candidates that match your current input
* use a wildcard pattern (regexp) to match completion candidates
* use multiple regexps to match candidates, chaining these filters together like piped ‘grep’ commands
* see all possible complete inputs (pertinent commands, variables, and so on) that match your partial or regexp input – the list is updated dynamically (incrementally) if you change your input
* see all previous inputs that match your partial or regexp input, and selectively reuse them
* match input against completion candidates that do not match a given regexp; that is, complement the set of matches and use the result for subsequent matching
* use multiple regexps to search (and replace) text or to browse targets of compilation listings (e.g. ‘grep’)
* search areas of text that have a certain text property, such as a face
* browse Imenu entries that match your partial or regexp input
* create and use multiple-choice menus; that is, menus where you can choose multiple entries any number of times
* create and use multi-commands – commands that you can use to perform an action on any number of candidate inputs any number of times
* perform set operations (intersection, union,…) on the fly, using sets of completion candidates or other strings
* persistently save and later reuse sets of completion candidates
* complete input piecewise, against multiple completion candidates, in parallel
* complete key sequences, and navigate the key-binding hierarchy (this includes the menu-bar menu hierarchy)

anonymous ()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.