background preloader

Emacs

Facebook Twitter

Org-mode

Manuel emacs partiellement traduit. Emacs Screencast: Artist Mode. Emacs. Ce tutorial est destiné aux gens souhaitant se familiariser avec GNU Emacs.

Emacs

Si vous avez davantage de questions, vous pouvez les poser sur forum dans le conti ens.forum.informatique.editeurs.emacs. Pour savoir comment poster sur forum et le lire, lisez la documentation à ce sujet. Un aide-mémoire des principales commandes d'emacs est également disponible. Généralités. Programming in Emacs Lisp. Category Code. Circular Lists. Assume you want to replace all occurences of ‘foo’ with ‘bar’, ‘baz’, ‘quux’, and so on. You want to cycle through the replacements: (let ((master '("bar" "baz" "quux")) (items)) (while (search-forward "foo" nil t) (replace-match (or (car items) (car (setq items master)))) (setq items (cdr items)))) The code above has a master list of replacements and a working copy called ‘items’.

It will use the first item in the list of items, or get a copy of the master list and use that. Then it shortens the list by one item and loops.